var/time
var/dice="1d6"
obj
dice
icon='Dice.dmi'
icon_state="animation"
New()
walk_rand(src,0,5)
spawn(5)
walk(src,0)
var/h = roll(dice)
if(h==1)
icon_state="1"
walk(usr,usr.dir,0.5,2)
usr.moving=1
time=6.5
spawn(time)
walk(usr,0)
usr.moving=0
if(h==2)
icon_state="2"
walk(usr,usr.dir,0.5,2)
usr.moving=1
time=6.5*2
spawn(time)
walk(usr,0)
usr.moving=0
if(h==3)
icon_state="3"
walk(usr,usr.dir,0.5,2)
usr.moving=1
time=6.5*3
spawn(time)
walk(usr,0)
usr.moving=0
if(h==4)
icon_state="4"
walk(usr,usr.dir,0.5,2)
time=6.5*4
spawn(time)
walk(usr,0)
if(h==5)
icon_state="5"
walk(usr,usr.dir,0.5,2)
usr.moving=1
time=6.5*5
spawn(time)
walk(usr,0)
usr.moving=0
if(h==6)
icon_state="6"
walk(usr,usr.dir,0.5,2)
usr.moving=1
time=6.5*6
spawn(time)
walk(usr,0)
usr.moving=0
mob
verb
Dice()
var/obj/dice1 = new /obj/dice
dice1.loc=locate(5,5,1)
Problem description: I'm making a Snakes and Ladders game, my problem is that when a player gets to the end of a raw , he doesnt go up, for example he goes from 1 to 10 then he should go p to 11 but he doesnt, so im struggling with this issue, Thanks
Sorry, this is just a quick edit/redo of your code. Not sure if I made a mistake myself in this, I have company over so I don't wanna waste a lot of time on this.