mob
var
Power_Captured_By = 0
Ki_Captured_By = 0
Def_Captured_By = 0
Str_Captured_By = 0
world
New()
..()
spawn(5)
Player_Wars()
spawn(5)
Boost()
proc
Player_Wars()
while(src)
sleep(100)
world<<"<font color=red><B>Event Info:</font><B> Player Wars has started please sign up!"
for(var/mob/M in world)
M.verbs += new/mob/cw/verb/Player_Wars
sleep(200)
world << "<font color=red><B>Event Info:</font><B> Player Wars sign up has ended!"
for(var/mob/M in world)
M.verbs -= new/mob/cw/verb/Player_Wars
sleep(200)
world << "<font color=red><B>Event Info:</font><B> Player Wars has ended!"
for(var/mob/M in world)
if(M.in_clanwars == 1)
M.loc=M.oldloc
sleep(200)
Player_Wars()
..()
proc
Boost()
while(src)
sleep(1000)
for(var/mob/M in world)
if(M.client)
if(M.Power_Captured_By == 1)
M.maxpowerlevel += 1000
world << "<font color=red><B>Event Info:</font><B> [M] has gained 1,000 Powerlevel for controlling the Palace of Power!"
if(M.Def_Captured_By == 1)
M.def += 1000
M.maxdef += 1000
world << "<font color=red><B>Event Info:</font><B> [M] has gained 1,000 Defense for controlling the Dungeon of Defense!"
if(M.Str_Captured_By == 1)
M.str += 1000
M.maxstr += 1000
world << "<font color=red><B>Event Info:</font><B> [M] has gained 1,000 Strength for controlling the Stronghold of Strength!"
if(M.Ki_Captured_By == 1)
M.maxki += 1000
world << "<font color=red><B>Event Info:</font><B> [M] has gained 1,000 Ki for controlling the Kingdom of Ki!"
Boost()
Problem description:
How do I run the Boost proc after Player wars is over?
And stop when player wars has started?