cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 14 Apr 2016 11:42 PM |
How do I manage byes in a 1v1 duel system? Basically how would I set up rounds between several players like a tournament system if there is an odd amount of players (because each set of 1v1 uses two players) ? Thanks
http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire() |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 15 Apr 2016 02:35 AM |
if NumberOfPlayers%2== 0 then --evenplayers else --unevenplayers end |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 15 Apr 2016 05:34 PM |
-.- guys I mean like bracketed torunamnet dueling system. [a-b] [asd v asd] - [asd v asd] [ab] - [ab] - [ab] [a-b]
http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire() |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 15 Apr 2016 05:52 PM |
bump, halp please
http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire() |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 18 Apr 2016 05:54 PM |
bump bump bump
http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire() |
|
|
| Report Abuse |
|
|
iondriver
|
  |
| Joined: 18 Nov 2012 |
| Total Posts: 757 |
|
|
| 18 Apr 2016 05:56 PM |
This is a hard thing to do, but take a look at this wiki article.
http://wiki.roblox.com/index.php?title=Matchmaking |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 21 Apr 2016 07:07 PM |
Er ya, that's different. I saw that article before. That's an elo matchmaking system. bumpmppp
http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire() |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2016 07:09 PM |
for each tourney you would do
2*math.min(contestants/2)
for example
7 contestants
2*3=6
then you would let 6 face off,
but before that you would check if it's odd, then do the math i gave you, then that 1 extra(since it's odd) would be the bye
#Code print("Add 13,000 posts") |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2016 07:12 PM |
add all players into a table pick 2 random numbers make sure the numbers arent the same grab the players from the table that correspond to those numbers remove those players from the table repeat until there are no players left if there is one player remaining, he gets a bye
It's simple physics R$10,302 |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2016 07:13 PM |
Lord's idea will also work
i saw it in a tourney script before
#Code print("Add 13,000 posts") |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2016 07:13 PM |
Nars method is more efficient, use that
It's simple physics R$10,302 |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 21 Apr 2016 07:13 PM |
@Lord_Narwhal Okay I can see where you're going from there, but this method doesn't work all the time. If I had 9 players I would "bye" 1 --first round starts 9 players -> 8 playing, 1 byed -->next round, 4 players (1 winner from 1v1 in 8 ppl) and 1 byed, total 5 How do I manage with 5?
http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire() |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2016 07:15 PM |
well i would do it like this
you have a table of contestants
so, start off with 7 again
6 face off, there is 1 left, he gets a bye
you take the 3 winners from the previous match and insert them BACK into the table
and you insert the bye
so now you have 4 in the contestant table
now you just redo the math, and you get 4
#Code print("Add 13,000 posts") |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2016 07:15 PM |
contestants can be a table with the players in it, when they die they get removed, thus you always have the current amount of players playing in the tourny
It's simple physics R$10,302 |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 21 Apr 2016 07:18 PM |
Yeah that was basically my plan; the problem is what would I do if there were 9 players? The result is completely different, quote from earlier post that I think you didn't see:
"If I had 9 players I would "bye" 1 --first round starts 9 players -> 8 playing, 1 byed -->next round, 4 players (1 winner from 1v1 in 8 ppl) and 1 byed, total 5 How do I manage with 5?"
Do I just bye some random guy of the five? Or Does the same guy get a bye again? I'm not sure how these mechanics work
http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire() |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2016 07:20 PM |
the math will still work, you would get 4 as a result from 5, let the 4 face off, then you have 2 contestants left and a bye
thus, 3 left
you would do the math AGAIN, and get 2, they face off, 1 winner and still 1 bye, the winner and bye face off in the last round
basically it should still work
#Code print("Add 13,000 posts") |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 21 Apr 2016 07:21 PM |
Okay yeah so I have to iterate the function lol.
Um do you know how the mechanics work though? Does the same person get byed' each time? Or should be people that never got byes? or idk?
http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire() |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2016 07:22 PM |
it would probably be random
if the same person gets byed it would be luck based
#Code print("Add 13,000 posts") |
|
|
| Report Abuse |
|
|
cxcharlie
|
  |
| Joined: 26 Aug 2009 |
| Total Posts: 1414 |
|
|
| 21 Apr 2016 07:22 PM |
lol alright
Thanks guys!
http://www.roblox.com/a-item?id=212802893local D = Instance.new('RocketPropulsion',me) D.Target = OP D:Fire() |
|
|
| Report Abuse |
|
|