turf
freezie
icon = 'item.dmi'
icon_state = "freezie"
density = 0
layer = 100000000000000000000000000000000000000000000000000000000000 0000
Enter()
del src
usr<<"Uh Oh! your frozen!"
world<<"GET HIM!!! [usr] is frozen!!!!"
usr.movable = 0
sleep(70)
usr<<"Run you can move again!!"
usr.movable = 1
im trying to get it to where when u run into it u cant move for (70) but when u run into it u can still move... why??
ID:161655
Apr 13 2008, 6:52 am
|
|
Erghh I don't really want to reply to this but.
This isnt the code problems forum, you have set it out like its a problem. layer = 1000000000000000000000000000000000000000000000000000000000000000 MOB_LAYER+1 As for not moving, overwrite the Move() proc. |
In response to Darkmag1c1an11
|
|
lol big explanation but all i had to do was move del src to the very bottom >.> ty to the 1 who told me that
|
Second, you're using Enter() instead of Entered(). If there's a wall on the freezie turf, then walking into the wall would cause you to pause for 7 seconds, whereas Entered() makes you actually enter the turf.
Third, you're using usr, which is totally wrong in overriding the Enter() proc in turfs. Use Enter(var) and replace usr with the var.
Lastly, you're using improper indentation on your sleep proc. Indent everything you want to be delayed under sleep(70).