ID:272604
 
Well, i want to know how could i pick a value from a list in order?.

var/list/Races = list("Saiyajin","Namekian","Human","Majin")
atom
movable
var
race = ""
turf
RaceArrowL
Click()
var/Race = pick(Races)
usr.race = Races[Race]
RaceArrowR
Click()
var/Race = pick(Races)
usr.race = Races[Race]


That's what i got so far, but it doesn't picks values in order, it just picks one random.
Danny Kenobi wrote:
var/list/Races = list("Saiyajin","Namekian","Human","Majin")
> atom
> movable
> var
> race = ""
> turf
> RaceArrowL
> Click()
> var/Race = Races[1] // picks the first race
> usr.race = Race
> Races -= Race // removes the first race from Races list
> RaceArrowR
> Click()
> var/Race = Races[1]
> usr.race = Race
> Races -= Race


I would just pull the first item from the first index.
In response to Xooxer
Thank you very much!
In response to Xooxer
Too bad you can't go back and choose one that you've seen already.
In response to Kaiochao
I just noticed that, but, i did some edits to it and now it works!. Thanks Xooxer! ;]