Skip to content

Scripting static commands

kromster80 edited this page Nov 25, 2022 · 5 revisions

Static commands

This is largely incomplete list of available commands.

Command Ver. Description Arguments
VERSION 2408 Specifies script version. Used to guard against old/unsupported scripts. -
MODE_TACTIC 2408 In tactic mode town building controls are disabled -
HANDS_COUNT 2408 Number of active players in the mission 1 - Count
HAND_DEFAULT_HUMAN 2408
HAND_CURRENT 2408
HAND_ALLOW_AI 2408
HAND_ALLOW_HUMAN 2408
HAND_COLOR 2408
HAND_CENTER_SCREEN 2408
... snip ...
SET_HOUSE_PLAN 2408 Places a house plan 1 - House type id
2 - X
3 - Y
SET_HOUSE_DAMAGE 2408 Sets house damage
WARE_IN_ADD_TO_LAST 2408 Adds wares to house input
WARE_OUT_ADD_TO_LAST 2408 Adds wares to house output
... snip ...
SET_UNIT_WARES 2845 Gives wares to last added unit.
Only wagons are supported yet.
1 - Ware type id
2 - Count
... snip ...
SET_AI_DEFENCE_STOCK 5688 Automatically stocks previously declared defence position with warriors on mission start. 1 - Unit type id
2 - Count