Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-06-2001, 06:37 AM
LilbrojX LilbrojX is offline
why dont you marry it?
LilbrojX's Avatar
Join Date: Mar 2001
Location: hmm
Posts: 1,465
LilbrojX is on a distinguished road
Send a message via AIM to LilbrojX Send a message via Yahoo to LilbrojX
Unhappy tile detection

I'm confoosed.... I'm making this tight status npc, that has status effects and everything! but I need to know wut the scrpit is for tile detection... a lil help? thanks all
__________________

http://www.dictionary.com/search?q=arrogant
kai is an expert on all things arrogant
Reply With Quote
  #2  
Old 06-06-2001, 06:40 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool do a search

in the search on this messageboard
do a search for
board

board is the array you have to use for updating the tiles on a level....
I am not sure how to use it off the top of my head but there are a few good examples on this forum if you just do a search for it
__________________
Thanks,
-KJL
Reply With Quote
  #3  
Old 06-06-2001, 06:43 AM
LilbrojX LilbrojX is offline
why dont you marry it?
LilbrojX's Avatar
Join Date: Mar 2001
Location: hmm
Posts: 1,465
LilbrojX is on a distinguished road
Send a message via AIM to LilbrojX Send a message via Yahoo to LilbrojX
Talking

thx kjl
__________________

http://www.dictionary.com/search?q=arrogant
kai is an expert on all things arrogant
Reply With Quote
  #4  
Old 06-06-2001, 05:10 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Well basically:
board[x+64*y] (where x and y are the x and y locations of the tile) will return what kind of tlie the tile is...
To change it you can for example use:
board[x+64*y]=tilex+16*tiley; (tilex and tiley can be checked when placing new tiles, it'll appear under the place where pics1.png is drawn if you've got tiles open, just keep your mouse pointer over a tile in that pics1.png and the tilex and tiley should appear)
Then to make the change visible you'd need to do:
updateboard x,y,width height;
And I have such a feeling I'm causing more confusion now then you had before.
__________________

Reply With Quote
  #5  
Old 06-07-2001, 07:42 PM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
bah...im disapointed W-Dragoon, you shouldve asked me ;-)

board[int(x)+64*int(y)]==tilex+tiley*16

just use that...dont worry about what it does ;-) just fill in the blanks...you can use the for if statements and all those other nice things, and for replacing tiles...if you replace a tile you must use

updateboard x,y,width,height

W-Dragoon if you cant figure it out send me the script and i will finish it...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.