ID:156779
 
How do I make a code to where like for instance i wanted to start an event for a contest. So when I click the Start Contest verb it gives everyone 3 verbs Join Contest, Leave contest, View registered people. Also for when i end the contest it would say the contest is over, and the verbs would disappear. How would I do this?
mob/verb
Verb_Name_Here() //The name of the verb that gives the verb to everyone
for(var/mob/a in world) //Sets a to every mob in the world
a.verbs += new/mob/verb/Other_Verb_Name_Here() //Gives verb to everyone cause a is every mob in the world
Other_Verb_Name_Here()
world << "OMG, [src] just used a verb given to him/her!"


Thats how i'd do it.
IDK if thats the best way of doing it, but it works.