Pushup()
set category = "Training"
set hidden = 1
if(usr.Meditate)
usr << "<b><font color= blue><font size = 1>Not while Meditateing"
return
if(usr.situp)
usr << "<b><font color= red><font size = 1>not while doing situps"
return
if(usr.Resting)
usr << "<b><font color= blue><font size = 1>Not while Resting"
return
if(usr.flight)
usr << "<b><font color= blue><font size = 1>Not while flying"
return
if(usr.pushup)
usr << "<b><font color= blue><font size = 1>You stop doing pushups."
src.Update(src)
usr.move = 1
usr.icon_state = ""
usr.pushup = 0
else
usr << "<b><font color= blue><font size = 1>You begin doing pushups"
usr.icon_state = "pushup"
usr.move = 0
usr.pushup = 1
usr.PushUp()
Problem description:
i am trying to add
for(obj/hair/O in usr.overlays)
O.pixel_y=0
but i keep indenting wrong or putting it in the wrong place...
Instead you need to keep track of whatever's in overlays seperately, in some other way.