ID:178738
 
i'm trying to make it so when you use something such as fly if you click on it again after you are already uing it for a message to pop up saying you are already doing the specific task
Just make a variable that checks to see whether it is currently being done or not.

var/fly = 0 // if 1, they're flying, if 0, they're not.

mob/verb/Fly()
if(src.fly)
src << "You are already flying!"
else
// make em fly!
Take a look at what your flying code does. I bet it sets a variable to a specific value... like it changes your icon_state to = "flying", or sets src.fly = 1, or something like that, right? Most verbs do change a variable, or else the verb is pointless.

So all you have to do is check that variable at the beginning of the verb.

mob
var
flying = 0
verb
fly()
if (src.flying)
src << "You're already flying!"
return //stop right there.
else //not necessary, but helps make the code readable.
src << "You begin to fly!"
flying = 1