View Single Post
  #16  
Old 02-25-2002, 04:33 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Lomgren
In your walking script (yes you must make your own), istead of using onwall(x,y) use a for loop to go through all the different tiles in the array, just set flag or something if the current tile is equal to one in the array, and use that to show for onwall.
Argh U DON'T need a for loop
there is a small word called IN

example:
NPC Code:

if (created || playerenters) {
this.testarray={1,2,3,4,5};
this.number=int(random(0,10));
if (this.number in this.testarray) message OMG YEEEEESSSS!!!;
}


__________________
No Webhost at the moment
Reply With Quote