ID:174136
 
i made a training bagso when u face direction 4 (right) you use the verb i assigned to it. and it worked. the animation flick worked for the user mob and the obj mob. now after i made the underlays addons, the training bag stopped working. any1 can help me?
Code would definitely help here.
In response to Camaro
obj
TrainingBag
icon = 'Gym.dmi'
icon_state = "TB"
density = 1
verb
TrainingBag()
set name = "Training Bag"
set category = "Training"
set src in oview(1)
if(usr.FLY == 1)
usr << "You can't train while flying."
if(usr.FLY == 0)
if(usr.dir == 4)
flick("TBHit",src)
flick("TKick", usr)
usr.MPL += 1
else
usr << "You must face the training bag."


TB is the training bag still state
TBHit is the training bag animation state
TBKick is the PC mob animation state

any other info?
In response to ZDarkGoku
any1 can help me?
In response to ZDarkGoku
Most BYONDers are American, and it's almost 4:00 am here in central time. Also, you shouldn't bump your posts 30 minutes after you had a reply. Try this..
obj
TrainingBag
icon = 'Gym.dmi'
icon_state = "TB"
density = 1
verb
TrainingBag()
set name = "Training Bag"
set category = "Training"
set src in oview(1)
if(usr.FLY == 1)
usr << "You can't train while flying."
return
else
if(usr.dir == 4)
flick("TBHit",src)
flick("TKick", usr)
usr.MPL += 1
else
usr << "You must face the training bag."


Also, make sure your fly verb sets the usr.FLY to 0 when you return from your flight, and make sure you have mob/verb/FLY = 0 in your code.
In response to Rocker121
alrighty. it worked! thanks