Skip to content

Armying

Armying is for advanced use cases!

A config file is required for armying. A sample config might look like:

config.json
{
"PlayerCount": 4,
"RoomNumber": "12345",
"Player1": "player1",
"Player2": "player2",
"Player3": "player3",
"Player4": "player4"
}

There is no imposed value for player count—as long as PlayerCount is set, it will look for that many players. The assumption is made that Player1 acts as the leader.

  1. PlayerCount

    The size of the army-so scripts know how many players to expect.

  2. RoomNumber

    The room number to join.

We will define sets using the boss name. You may do it however you want.

config.json
{
// ...rest of the config
"UltraNulgath": {
"Player1": {
"SafeClass": "Void Highlord",
"SafePot": "Elders' Blood",
"Class": "LegionRevenant",
"Armor": "LegionRevenant",
"Weapon": "Valiance",
"Cape": "Vainglory",
"Helm": "WizHelm",
"Pots": ["Felicitous Philtre"],
"Scroll": "Scroll of Enrage"
},
"Player2": {
"SafeClass": "Void Highlord",
"SafePot": "Elders' Blood",
"Class": "StoneCrusher",
"Weapon": "Lacerate",
"Cape": "Absolution",
"Helm": "WizHelm"
},
"Player3": {
"SafeClass": "Void Highlord",
"SafePot": "Elders' Blood",
"Class": "LordOfOrder",
"Weapon": "AweBlast",
"Cape": "Absolution",
"Helm": "LuckHelm"
},
"Player4": {
"SafeClass": "Void Highlord",
"SafePot": "Elders' Blood",
"Class": "ArchPaladin",
"Weapon": "Arcana",
"Cape": "Penitence",
"Helm": "LuckHelm"
}
}
}

The set name is defined as UltraNulgath, and the individual items are associated with their player number.

FieldTypeDescription
SafeClassstringBackup class used to prevent pots from arbitrarily locking
SafePotstringBackup consumable used to prevent pots from arbitrarily locking
ArmorstringArmor to equip
ClassstringClass to equip
WeaponstringWeapon to equip
CapestringCape to equip
HelmstringHelm to equip
PetstringPet to equip
Potsstring[]Array of potions to drink (equip → use skill 5 → wait)
ScrollstringFinal consumable to equip after drinking pots (e.g., Scroll of Enrage)
  1. SafeClass
  2. SafePot
  3. Class
  4. SafePot
  5. Equipment
  6. Potions
  7. Scroll

Equip sets with the cmd.army_equip_set command.

Note that all fields are optional.

The idea of an army script is one-script that is loaded across all players but will have slight variations in functionality to accomodate the current player.

Army scripts must have the following commands:

  1. cmd.army_set_config()

    The name to the config file (under Documents/vexed/Storage).

  2. cmd.army_init()

    Begins loading the config and other internal behaviors. Ideally, these commands are called ASAP.

Army scripts should use army-variants of normal commands where possible. Such commands will wait for all players in the army to complete the task before the next command executes.

View the full example army_config.json.