View Single Post
  #4  
Old 02-01-2004, 02:25 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Quote:
Originally posted by WanDaMan
I use it for weapons where you have to be on specific tile(s).
It goes like:

Or put all the tile values in a variable to make it easier to add and read.
What I usually do with checking if the player is on specific tiles is that i make an array:

NPC Code:
beontiles={0x0,0x1,0x10,0x1FF};



and this in the checking:
NPC Code:

if (tiles[playerx,playery] in beontiles) {
//Do stuff
}

__________________
-Kjetil Valen
Reply With Quote