Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Checking for tiles (https://forums.graalonline.com/forums/showthread.php?t=26319)

BARGAD 03-26-2002 09:27 AM

Checking for tiles
 
I was wondering if someone could show me how to check for tiles.. board[index] dosnt seem to work right..

thanks

/CaRnIe

screen_name 03-26-2002 09:36 AM

tiles[x,y]

this will tell u the number of the tile

BARGAD 03-26-2002 09:38 AM

Thanks!!!
*gives screen_name a cookie*

/CaRnIe

screen_name 03-26-2002 09:53 AM

Quote:

Originally posted by BARGAD
Thanks!!!
*gives screen_name a cookie*

/CaRnIe

can i have some mayonaisse instead??

Spanko 03-26-2002 08:10 PM

Or board[x+y*64], which is the more traditional board array. Both serve the same function anyway.

TDO2000 03-26-2002 08:59 PM

Quote:

Originally posted by Spanko
Or board[x+y*64], which is the more traditional board array. Both serve the same function anyway.
but with board you can change the tiles what tiles[x,y] can't do

screen_name 03-26-2002 09:12 PM

Quote:

Originally posted by TDO2000

but with board you can change the tiles what tiles[x,y] can't do

the hell it can't

just do tiles[x,y]=tilenumber;


:D

TDO2000 03-27-2002 01:24 AM

Quote:

Originally posted by screen_name


the hell it can't

just do tiles[x,y]=tilenumber;


:D

um for me this only works with board....

Saga2001 03-27-2002 03:17 AM

Probably because you have to do a updateboard x,y,width,height; command on the place you changed...

BARGAD 03-27-2002 07:02 AM

Thanks for all the help!
:)

/CaRnIe

screen_name 03-27-2002 10:02 AM

Quote:

Originally posted by Saga2001
Probably because you have to do a updateboard x,y,width,height; command on the place you changed...
o yeah, lol, i forgot that u had to update the board before you could see the changes, :P

sorry


All times are GMT +2. The time now is 03:53 AM.

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