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?
Copyright © 2024 BYOND Software.
All rights reserved.
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".