ID:267243
 
Pretend i have this verb

mob/verb/SayWorld()
src.IfNo
world << "HI WORLD!"

Then i want the "IfNo" proc to check if a var is positive.

mob/proc/IfNo()
if(src.IfNo)
// then do something to stop the verb that the proc is calling
else
..()

How can i make this stop the proc from the verb is called in?
mob/verb/WOO()
if(!canTalk()) return
world << "WOO"

mob/proc/canTalk()
if(src.allowedToTalk)
return 1
else
return 0

Setting allowedToTalk to 1 allows a person to shout "WOO".
In response to Garthor
THANKS!!