verb
HostTournament()
set name = "Host Tournament"
set category = "Tournament"
if(istourney==0)
world << "[src.name] has hosted a Tournament!"
src.verbs += /mob/verb/EnterTournament (I know this is wrong)
src.verbs += /mob/verb/LeaveTournament (I know this is wrong)
istourney = 1
else
usr << "A tournament is already being hosted!"
FinishTournament()
set name = "Finish Tournament"
set category = "Tournament"
if(istourney==1)
var/tourneywinner = input("Who was the winner?")
world << "Tournament has finished! The winner was [tourneywinner]!"
src.verbs -= /mob/verb/EnterTournament (I know this is wrong)
src.verbs -= /mob/verb/LeaveTournament (I know this is wrong)
istourney = 0
else
usr << "No tournament is being hosted!"
Problem description:
How would I go about about making it so that when a GM hosts a tourney using the HostTournament verb, everyone in the world will get two new verbs "Join Tournament" and "Leave Tournament", I already have the codes for these two verbs but I just need to the code required to to give the two verbs to the world when a tournament is hosted and then take them away when the tournament is finished, get it?
Note that the tournament obj has to be somewhere on the map in order for the verbs to be accessible (and also for it to not be deleted by the garbage collector)