View Single Post
  #2  
Old 10-25-2001, 05:13 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
Re: Arrays and tiles[x,y]

Quote:
Originally posted by Thak2
How would I go about making an array store multiple values for the tiles command?

For example, I tried something like this:
NPC Code:

if (weaponfired) {
this.tilesid= {2047,116};
if (tiles[playerx,playery]==this.tilesid) {
setplayerprop #c,this works;
}
}



Why does this not work? What is the proper way of doing this?
if (this.tilesid=0) message this is right;
if (this.tilesid[0]=2047) message and so is this;
if (this.tilesid[1]=116) and this;
Reply With Quote