ID:146553
 
Code:
mob
verb
Use_Self_Propelled_Mower()
if(usr.Mowing)
usr.icon_state = ""
usr.Mowing = 0
else
if(!usr.Mowing)
usr.icon_state = "Mowing"
usr.Mowing = 1
for(var/turf/Grass/G in oview())
if(!G.Cut)
walk_to(src,G)
else
if(G.Cut)
return


Problem description:

I can't figure out how to make it continue going to the un-cut grass if there is any left, it'll cut like 3-5 tiles, then it just stops..


~C
can sumone tell me if thats even possible?
I don't know what you mean, but I think you mean:
mob
verb
Use_Self_Propelled_Mower()
if(usr.Mowing)
usr.icon_state = ""
usr.Mowing = 0
else
if(!usr.Mowing)
usr.icon_state = "Mowing"
usr.Mowing = 1
for(var/turf/Grass/G in oview())
if(!G.Cut)
walk_to(src,G)
else
if(G.Cut)
continue //change
In response to Earth_kai (#1)
It's got to be..., but I can't figure out how to make it to where it'll keep mowing un-cut grass..{EDIT}: This is reply to Earths comment.
In response to Hell Ramen (#2)
That didn't work, it still stops while there is still un-cut grass left.. I'll host it so you can look and see what I mean.