ID:146291
 
Code:
mob/verb/Push_Up()
if(!usr.push)
usr.push = 1
usr.icon_state="Push Up"
usr<<"You are now in push-up posistion please use your arrow keys... (Up / Down)"
return
if(usr.push)
usr.push=0
usr<<"You get up off the ground"
usr.icon_state=""



mob/proc/PU()
if(src.push)


Problem description:thats what i have so far, but im trying to make it so you must push the arrow keys ( up / down ) to move make your character actually do it and im clueless

Thanks to anyone that helps


This isn't a problem, it's a question on how to do something, therefore it should go in the Developer How-To Forum.
In response to Sinoflife
well know ive found a problem and the icon state wont flick
mob/proc/PU()
if(src.push == 1&&src.dir == SOUTH)
sleep(5)
flick("gd", src)
src.exp ++
if(src.push == 1&&src.dir == NORTH)
sleep(5)
flick("gu", src)
src.exp ++
In response to Cheetoz
No put usr in proc.
I doubt this is the problem, but you'd have to have an icon file defined under mob.
In response to Sinoflife
errr, like i told others on AIM ive used src and no luck usr is just what i had in it last
In response to Cheetoz
Cheetoz wrote:
errr, like i told others on AIM ive used src and no luck usr is just what i had in it last

What's the icon variable set to? And is there a state of that name in the same .dmi file as icon is set to?
In response to Jon88
icon state is normally set to "", im having problems with there icon_state flicking