Arena Picker: Difference between revisions
Jump to navigation
Jump to search
Marcely1199 (talk | contribs) No edit summary |
Marcely1199 (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
=Types= | =Types= | ||
=== %random% === | === %random% === | ||
Picks a random arena. | Picks a random arena. | ||
=== % | === %best% === | ||
Picks a random with these conditions:<br /> | Picks a random with these conditions:<br /> | ||
* It's the arena with the most players | * It's the arena with the most players | ||
* -> If it's full then it's picking an arena with less players | * -> If it's full then it's picking an arena with less players |
Revision as of 12:51, 31 October 2019
There are several other ways to pick an arena instead with the arena name.
You can use them where ever the arena instance is getting picked using the name.
They are currently NOT working for signs or hubvillager.
Types
%random%
Picks a random arena.
%best%
Picks a random with these conditions:
- It's the arena with the most players
- -> If it's full then it's picking an arena with less players
- If there are multiple arenas with the same amount player, then it'll pick a random one
Conditions [COMING SOON]
You may add conditions to your Arena Picker.
An example: %random[players_per_team>=2 & teams=4 & status=2]%
By that only arenas with
- 2 or more players per team
- and 4 teams
- and "lobby" as their current state
will be taken by the Arena Picker.
Possible comparisons
- = : equal
- != : not equal
- > : greater than
- < : less than
- => : greater than or equal
- <= : less than or equal
Truth functions
They allow you to have multiple conditions in one string.
You may use:
- & : AND
- | : OR
Example:
ingame_players<=2 & status=2 | ingame_players >= 1 & status=3
In a human language this would mean, that only arenas
- with 2 or less ingame players
- and whose state is lobby
or arenas
- with 1 or more players
- and whose state is ingame
will be considered for the picker
Variables
- players_per_team
- teams
- max_players
- ingame_players
- status 1=Stopped, 2=Lobby, 3=Running, 4=Reseting, 5=End lobby