mob/Move()
if(lifting)return 0
return ..()
obj
icon='Test Tube.dmi'
icon_state="weights"
layer=MOB_LAYER+1
verb
Lift()
set category="Action"
set src in oview(0)
if(usr.lifting == 1)
return
if(usr.lifting)
usr.lifting=0
icon_state="weights"
if(usr.stamina <= 0)
return
else
usr << "You start lifting"
icon_state="lifting weight"
usr.lifting=1
usr.stamkilla()
mob
proc
stamkilla()
if(usr.stamina <= 0)
icon_state = "weights"
usr.lifting=0
return
else
var/random=rand(1,2)
var/stam=rand(1,2)
usr.strength+=random
usr.stamina-=stam
sleep(10)
stamkilla()
Here's my problem, well ok, digital stompy helped me with this code a bit and it confused even him a bit, well I am trying to make it so when I click lift it lifts of course, and it slowly takes down stamina and when it reaches 0 it stops, well so far I've made it so when it reaches 0% the stats stop raising, but the weights still go up and down and I am able to move around, I just need somthing to stop the weights and make them return to still postion, I know it's something simple but I can't place what it is..
can somone help ...