Handle snakes and ladders at the end of the loop. Check if the player is standing on any then do the appropriate action.
the one under turfs New()?
There is no loop there. The one on Dice.
In response to Jemai1
where exactly?

like this?

mob
verb
Dice()
var/steps = roll("1d6")
var/obj/dice = new /obj/dice
dice.loc=locate(6,6,1)
for(var/i in 1 to steps)
sleep(6)
dice.icon_state="[steps]"
var/turf/turf = loc
if(turf.next)
loc = turf.next
else
usr<< "You reached the end of the board"
break
if(usr.loc==/turf/four)
usr.loc=locate(/turf/fourteen)
Outside of the loop.
In response to Jemai1
im getting confused can u show it to me :P sry
turf
var/snake_and_ladder

four
snake_and_ladder=/turf/fourteen

mob
verb
Dice()
var/steps = roll("1d6")
var/obj/dice = new /obj/dice( locate(6,6,1) )
for(var/i in 1 to steps)
sleep(6)
dice.icon_state="[steps]"
var/turf/turf = loc
if(turf.next)
Move(turf.next)
else
usr<< "You reached the end of the board"
break
var/turf/turf = loc
if( turf.snake_and_ladder )
Move( locate(turf.snake_and_ladder) )

Like that.
again thanks
i will make sure i give u credit of what uv done for me
I don't really mind but if you insist, thanks.
Page: 1 2 3