Army commands
cmd.army_equip_set
Section titled “cmd.army_equip_set”Equips a set from the army config file.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| setName | string | The name of the set to equip. | ||
| refMode | boolean | ✓ | false | Whether to resolve item names through a common lookup table. |
cmd.army_init
Section titled “cmd.army_init”Initializes the army.
cmd.army_join
Section titled “cmd.army_join”Joins the map but waits for all players in the group to join before proceeding.
| Parameter | Type | Description |
|---|---|---|
| map | string | The name of the map to join. |
| cell | string? | The name of the cell to join. |
| pad | string? | The name of the pad to join. |
cmd.army_kill
Section titled “cmd.army_kill”Kills the target, but waits for all players in the group to finish before proceeding.
| Parameter | Type | Description |
|---|---|---|
| targetName | string | The name of the target to kill. |
| options | Partial<KillOptions>? | The options for the kill. |
cmd.army_kill_for
Section titled “cmd.army_kill_for”Kills the target for a specified item, but waits for all players in the group to get the item before proceeding.
| Parameter | Type | Description |
|---|---|---|
| targetName | string | The name of the target to kill. |
| itemName | string | The name of the item to get. |
| qty | number | The quantity of the item to get. |
| isTemp | boolean | Whether the item is temporary or not. |
| options | Partial<KillOptions>? | The options for the kill. |
cmd.army_kill_for_item
Section titled “cmd.army_kill_for_item”Kills the target for a specified permanent item, waiting for all players to get the item.
| Parameter | Type | Description |
|---|---|---|
| targetName | string | The name of the target to kill. |
| itemName | string | The name of the item to get. |
| qty | number | The quantity of the item to get. |
| options | Partial<KillOptions>? | The options for the kill. |
cmd.army_kill_for_tempitem
Section titled “cmd.army_kill_for_tempitem”Kills the target for a specified temporary item, waiting for all players to get the item.
| Parameter | Type | Description |
|---|---|---|
| targetName | string | The name of the target to kill. |
| itemName | string | The name of the temporary item to get. |
| qty | number | The quantity of the item to get. |
| options | Partial<KillOptions>? | The options for the kill. |
cmd.army_set_config
Section titled “cmd.army_set_config”Sets the config file name.
| Parameter | Type | Description |
|---|---|---|
| fileName | string | The name of the config file. |
cmd.execute_with_army
Section titled “cmd.execute_with_army”Executes a function, but waits for the function (a.k.a for all players) to finish before proceeding.
| Parameter | Type | Description |
|---|---|---|
| fn | () => Promise<void> | The function to execute with the army. |
| fnName | string? | The name of the function to execute. |