ID:270860
 
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)
SOMEONE PLEASE HELP ME!!!!! The system i'm looking for is a bit like the tourney system in Heroes United
In response to Ultimate Productions (#1)
Ultimate Productions wrote:
SOMEONE PLEASE HELP ME!!!!! The system i'm looking for is a bit like the tourney system in Heroes United

First off, you are not supposed to bump a post within 24 hours, second thing is please explain and give an example of how the tournament system is like in Heros United, I have never heard of it.

->Calus CoRPS<-
In response to Calus CoRPS (#2)
i'll tell how it should be like

A tourney system wich includes: If some people join the tourney, they get generated in an LIST and they are randomly chosen to fight each other. i.e: player 1 vs. player 3, player 2 vs player 5, etc...
And when u have an unpair number of contestants, one is automatically counted into next round. So if player 3 wins and player 2 wins, the other ones will be disqualified and be removed from list. Then 2 and 3 fight each other in a final.

It should be based on code i posted in first msg.

I'll give credits to person who can help me.
(it's for a naruto game)