obj
(Name) \\ name of object
icon = 'Daves.dmi'
icon_state = "speed"
density = 1
verb
Punch()
set name = "Punch"
set category = "Training"
set src in oview(1)
if (usr.resting==1)
usr<<"Not while resting"
if(usr.stamina >= 5)
if(usr.dir == 2)
flick("speed hit",src)
flick("punch", usr)
usr.random = rand(1,12)
if(usr.random == 12)
usr.move = 1
usr.stamina-=3
usr.icon_state = "punch"
usr.speed += 2
if(usr.random == 11)
usr.move = 1
usr.stamina-=1
usr.icon_state = ""
usr.speed += 1
else
usr.speed += 0
else
usr << "Please Face the bag.."
It maybe compleatly stupid of me, like a simple mistake but I was un able to locate to problem with my code?? it shows up in oview of one square and the verb appears but it just won't punch it and the actions for the bag to move and the character to punch won't start, and neither will the stats raise??
I know there's something stopping something or other from working, I think it has something to do with the "If" Functions....
and u need an else to this
and to
if(usr.dir == 2)
u have 1 4 usr.stamina but not those 2