i currently have a tournament system but its only a simple one actually. But i want to make it better but im only a beginner coder. Im wondering if anyone could help me. I know how you should do it but i cant code it.
Here's my code:
var tournament = 0 tourny_loc = locate(55,5,13)
mob verb/Join() set name = "Join" set category = "Tournament" if(tournament) loc = tourny_loc verbs -= /mob/verb/Join
return 1
Login() ..() if(!tournament && (/mob/verb/Join in verbs)) verbs -= /mob/verb/Join
else if(tournament && !(/mob/verb/Join in verbs)) verbs += /mob/verb/Join
return 1
mob/tournament/verb Start_Tournament() set name = "Start Tournament" set category = "Staff"
tournament = 1 for(var/client/c) c.mob.verbs += /mob/verb/Join
world << "<center><font size = +2><font color = green>Tournament will begin in 5 minutes. Click 'Join' on your Tournament Tab" spawn(500) world << "<center><font size = +2><font color = green>Tournament will begin in 4 minutes. Click 'Join' on your Tournament Tab" spawn(500) world << "<center><font size = +2><font color = green>Tournament will begin in 3 minutes. Click 'Join' on your Tournament Tab" spawn(500) world << "<center><font size = +2><font color = green>Tournament will begin in 2 minutes. Click 'Join' on your Tournament Tab" spawn(500) world << "<center><font size = +2><font color = green>Tournament will begin in 1 minutes. Click 'Join' on your Tournament Tab" spawn(500) world << "<center><font size = +2><font color = green>Tournament has now officialy started"
for(var/client/c) c.mob.verbs -= /mob/verb/Join
tournament = 0
return 1
|
I want a system based on this when a player joins, that he is listed in a list. Then players are randomly chosen. Like 1vs5 and 2vs3 and that 4th auto gets to 2nd round. Winner of each fight gets to next round till they are only 2 left. Then theres big final. Then it ends. (sad end though xD)