Thread: Arrays...?
View Single Post
  #10  
Old 10-17-2001, 03:49 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by Shard_IceFire
=/ I still don't get why you would need them...
say you have prices for different apples

you could do this:

this.appleprices={30,40,50,50}

then call it like this:

players[0].rupees-=this.appleprices[this.appletype];

which would be far more efficient than
having variables for each apple price and
would be easy to customize if you had at
the beginning of a script

Last edited by btedji; 10-17-2001 at 03:51 AM..
Reply With Quote