ID:175583
 
im making a game that you have to get the board all 1 color,shape,etc... when u use all your turns or win the game,it adds to your wins/loses,then reboots,i found out it restarts ur stats when u reboot,whats anither way to randomly change all the "stones" on the field to different places/colors.
plz help
Kablez-=<()>=-
Ah...seems like your using Zilal 3, right?
for(var/turf/stone/T in world)
T.side = initial(T.side)
In response to Tiko587
yes i am
In response to Garthor
wont work,this what i got for winning:
obj //new obj prototype,
stone //a stone,
icon = 'stones.dmi' //with the 'stone.dmi' icon assigned

Click() //overrides its Click() proc
if (usr.holding)
usr.holding.loc = loc //puts held stone on clicked stone's square
usr.moves++ //increments usr's move number
if (ColorChange(usr.holding)) //if ColorCheck() returns 1 to ColorChange()
usr << "You've won the game in [usr.moves] moves!"
usr.Sc+=5
usr.Wins+=1
world.Reboot()//dont want it
In response to Kablez
Instead of using world.Reboot(), loop through the world and change all the stones to a random colour/shape/whatever. As I can't see all of your code, I can't tell you how to do this; if you don't know, post all of obj/stone and I'll probably be able to tell you. =)