Skip to content

Instantly share code, notes, and snippets.

@kotarou3
Last active April 6, 2024 00:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kotarou3/7872574 to your computer and use it in GitHub Desktop.
Save kotarou3/7872574 to your computer and use it in GitHub Desktop.

Tournament Guide

When tournament sign-ups are opened, you will see a interface drop down from the top of the chat area. There will be a button to join if you're not in the tournament and a button to leave if you are. Alternatively, the commands /tour join and /tour leave can be used instead. Please resist any urge to spam joins and leaves since it is a bannable offence.
Once you join the tournament, the bracket will already by displayed. However, do not challenge anyone yet. Please wait until someone starts the tournament.
When the tournament starts, you should see the leave button replaced with information about any match-ups you have. Challenge drop downs and buttons will appear if you are matched up to challenge another user. Please use the interface to challenge the user rather challenging the "normal" way because otherwise it won't count as a tournament match.

Tips:

  • Run /tour by itself for a list of currently running tournaments
  • The tournament bracket becomes draggable and will be able to be popped out if it grows too large
  • You can toggle the tournament bracket by clicking on the header
  • If the interface messes up (e.g., bracket disappeared or challenges not working), try running /tour getupdate
  • You can cancel your challenge by running /tour cancelchallenge

Management Commands

All commands are to be run under /tour. For example, the command start would be typed into chat as /tour start.

  • create/new <format>, <type> [, <comma-separated arguments>]
    • Creates a new tournament in the current room. Arguments explained below
  • settype <type> [, <comma-separated arguments>]
    • Modifies the type of tournament after it's been created, but before it has started. The arguments have the same meaning as the ones in create/new
  • end/delete
    • Forcibly ends the tournament in the current room.
  • start/begin
    • Starts the tournament in the current room. This means that users can no longer leave or join the tournament.
  • disqualify/dq <user>
    • Self explanatory
  • autodq/setautodq <minutes|off>
    • Sets the automatic disqualification timeout. Participants who have available challenges and aren't acting on them will be eligible for automatic disqualification after this timeout. The automatic disqualifier is run at start and end of each tournament battle, or can be manually run with runautodq.
  • runautodq
    • Manually runs the automatic disqualifier.
  • getusers
    • Lists the users currently in the tournament. Can be broadcast.

Arguments for create/new

<format> is the battle format, such as OU. Don't worry, if you type this wrong, it will give you a list of valid ones.

<type> is the tournament type, of which roundrobin and elimination are currently supported.

  • roundrobin is your typical Round Robin tournament, but if you provide an optional argument, it becomes a Double Round Robin tournament, meaning that each battle is done twice. This type of tournament is more suited for a low number of users (e.g., less than 6).
  • elimination is the more well known Elimination tournament style, and accepts a number as an optional argument. The number represents the type of Elimination tournament. For example, 2 would mean Double Elimination.

Examples:

  • /tour new ou, roundrobin: OU Round Robin
  • /tour new ou, roundrobin, 1: OU Double Round Robin
  • /tour new ou, elimination: OU Single Elimination
  • /tour new ou, elimination, 2: OU Double Elimination
@UnovaChampionN
Copy link

nice work on the new tour system kota

@CreaturePhil
Copy link

awesome

@ExiledShadows
Copy link

Its so much better now. Great work.

@ArranHS
Copy link

ArranHS commented Mar 24, 2014

Works nice and smoothly, good job!

@lucasgurney
Copy link

Thanks Kota ^_^

@panpawn
Copy link

panpawn commented Apr 6, 2014

Nice job Kota

@FrontierKathey
Copy link

Wow Kota This Is Cool :3

@Adithya4Uberz
Copy link

I like the tour system kota

@augmt
Copy link

augmt commented Oct 24, 2015

Can you amend this to demonstrate playerCap?

create/new have two optional arguments in specific order: playerCap and the original optional argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment