I'm trying to put all my races in a list and make them equal to a number, so when they pick the number they will select the race.
Help...?
ID:160047
![]() Nov 28 2008, 12:07 pm
|
|
![]() Nov 28 2008, 12:16 pm
|
|
//Andre-G1's edited code a would be equal to the index of what the player selects. It would be a lot easier to cut out the Find() and association altogether and say race = input() instead, though. |
mob/verb/Pick() I think something like this is what he meant. |
The method I said uses a regular list by using the position/order of the items in the list to access them. You could build a list with the available numbers to use and use it as a choices list in input(), or have the player type a number (and then check if it's valid).
|
I have a question about something like that to be honest.
Would it work if I did something like: if(index in(1 to 3)) Hum ? |