---------------------------------------------------
Identifier: unit_immediate_place
Parameters: unit_label location angle_in_degrees width(optional)
Description: Immediately positions the unit at the given location
Sample use: unit_immediate_place archers1 big_hill 0 20
Class: UNIT_IMMEDIATE_PLACE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_order_halt
Parameters: unit_label
Description: orders the specified unit stop it's orders
Sample use: unit_order_halt cohort1
Class: UNIT_ORDER_HALT
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_order_move
Parameters: unit_label x y run(optional)
Description: orders the specified unit to move to the specified position
Sample use: unit_order_move cohort1 100 60 run
Class: UNIT_ORDER_MOVE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_order_move_to_orientation
Parameters: unit_label x y width_in_men rotation_in_degrees run (optional)
Description: orders the specified unit to move to the specified position with a specified rotation and orientation
Sample use: unit_order_move_to_orientation cohort1 100 60 20 45 run
Class: UNIT_ORDER_MOVE_TO_ORIENTATION
Implemented: Yes
Author: Scott
---------------------------------------------------
Identifier: unit_order_move_relative
Parameters: unit_label x y run(optional)
Description: orders the specified unit to move to the specified position
Sample use: unit_order_move_relative cohort1 0 60 run
Class: UNIT_ORDER_MOVE_RELATIVE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_order_attack_unit
Parameters: unit_label target_unit_label run(optional)
Description: Orders one unit to attack another
Sample use: unit_order_attack_unit cavalry1 enemy4 run
Class: UNIT_ORDER_ATTACK_UNIT
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_order_attack_closest_unit
Parameters: unit_label search_arc(in degrees) run(optional)
Description: Searches an arc in front of the unit, and attacks the closest enemy found
Sample use: unit_order_attack_closest_unit 15 run
Class: UNIT_ORDER_ATTACK_CLOSEST_UNIT
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_order_change_formation
Parameters: unit_label formation_type (square, horde, testudo, phalanx)
Description: changes the specified unit's formation
Sample use: unit_order_change_formation legionary_cohort testudo
Class: UNIT_ORDER_CHANGE_FORMATION
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_order_move_to_missile_range
Parameters: attacker_unit_label target_unit_label run(optional)
Description: orders the attacker to move into missile range of the target
Sample use: unit_order_move_to_missile_range roman_archers barb_swordsmen run
Class: UNIT_ORDER_MOVE_TO_MISSILE_RANGE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_order_turn
Parameters: unit_label rotation relative/absolute
Description: order the unit to turn to an absolute angle or by an angle relative to it's current rotation
Sample use: unit_order_turn roman_archers -20 relative (turns left 20 degrees)
Class: UNIT_ORDER_TURN
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_set_morale
Parameters: unit_label morale_level (beserk/impetuous/high/firm/shaken/wavering/routing)
Description: sets and locks the unit's morale level
Sample use: unit_set_morale carthaginian_peasants wavering
Class: UNIT_SET_MORALE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_unset_morale
Parameters: unit_label
Description: unlocks the unit's morale, the game will retake control and update the morale normally
Sample use: unit_unset_morale peasants4
Class: UNIT_UNSET_MORALE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_set_weapon_upgrade
Parameters: unit_label new_level
Description: sets the unit's weapon upgrade (0-3)
Sample use: unit_set_weapon_upgrade spearmen1 3
Class: UNIT_SET_WEAPON_UPGRADE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_set_armour_upgrade
Parameters: unit_label new_level
Description: sets the unit's armour upgrade (0-3)
Sample use: unit_set_armour_upgrade spearmen1 3
Class: UNIT_SET_ARMOUR_UPGRADE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_set_experience
Parameters: unit_label new_experience_level
Description: sets the specified unit's experience level (0-9)
Sample use: unit_set_experience roman_general 7
Class: UNIT_SET_EXPERIENCE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: kill_unit
Parameters: unit_label
Description: Completely wipes out the specified unit
Sample use: kill_unit carthaginians2
Class: KILL_UNIT
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: reduce_unit_strength
Parameters: unit_label percentage
Description: Kills enough men to reduce a unit to the specifies percentage of it's original strangth
Sample use: reduce_unit_strength carthaginians2 50
Class: REDUCE_UNIT_STRENGTH
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_set_guard_mode
Parameters: unit_label on/off
Description: Sets the guard melee state for the specified unit
Sample use: unit_set_guard_mode roman_spearmen on
Class: UNIT_SET_GUARD_MODE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_set_skirmish_mode
Parameters: unit_label on/off
Description: Sets the skirmish melee state for the specified unit
Sample use: unit_set_skirmish_mode velites1 off
Class: UNIT_SET_SKIRMISH_MODE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_toggle_task_interrupt
Parameters: unit_label melee/skirmish/fire_at_will/rout/berserk/infighting on/off
Description: Enables/disables the specified interrupt for the unit
Sample use: unit_toggle_task_interrupt roman_archers skirmish on
Class: UNIT_TOGGLE_TASK_INTERRUPT
Implemented: Yes
Author: IainM
---------------------------------------------------
Identifier: unit_set_fire_at_will_mode
Parameters: unit_label on/off
Description: Sets the fire-at-will melee state for the specified unit
Sample use: unit_set_fire_at_will_mode roman_archers on
Class: UNIT_SET_FIRE_AT_WILL_MODE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_set_formation_spacing
Parameters: unit_label loose/tight
Description: Sets the specified unit's formation spacing to loose or tight
Sample use: unit_set_formation_spacing roman_archers loose
Class: UNIT_SET_FORMATION_SPACING
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_taunt
Parameters: unit_label
Description: Makes the unit taunt
Sample use: unit_taunt barb_archers
Class: UNIT_TAUNT
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_use_special_ability
Parameters: unit_label
Description: Makes the unit perform their special ability
Sample use: unit_use_special_ability barb_archers
Class: UNIT_USE_SPECIAL_ABILITY
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_enable_automation
Parameters: group_label true/false
Description: Sets or unsets unit group automation
Sample use: unit_group_enable_automation
Class: UNIT_GROUP_ENABLE_AUTOMATION
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_automate_defend_position
Parameters: group_label location radius
Description: Instructs an automated unit group to defend position
Sample use: unit_group_automate_defend_position 106 -56 75
Class: UNIT_GROUP_AUTOMATE_DEFEND_POSITION
Implemented: Yes
Author: Scott
---------------------------------------------------
Identifier: unit_group_automate_attack
Parameters: group_label enemy_unit_label
Description: Instructs an automated unit group to attack a specified enemy unit
Sample use: unit_group_automate_attack enemy_unit
Class: UNIT_GROUP_AUTOMATE_ATTACK
Implemented: Yes
Author: Scott
---------------------------------------------------
Identifier: unit_group_immediate_place
Parameters: group_label location degrees
Description: orders the unit group to move to the specified location
Sample use: unit_group_immediate_place group6 100 -60 -20
Class: UNIT_GROUP_IMMEDIATE_PLACE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_order_halt
Parameters: group_label
Description: orders the unit group to stop it's orders
Sample use: unit_group_order_halt group6
Class: UNIT_GROUP_ORDER_HALT
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_order_move_formed
Parameters: group_label x y run(optional)
Description: orders the unit group to move to the specified location
Sample use: unit_group_order_move_formed group6 100 -60 run
Class: UNIT_GROUP_ORDER_MOVE_FORMED
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_order_move_unformed
Parameters: group_label x y run(optional)
Description: orders the unit group to move to the specified location
Sample use: unit_group_order_move_unformed group6 100 -60 run
Class: UNIT_GROUP_ORDER_MOVE_UNFORMED
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_order_relative_move_formed
Parameters: group_label x y run(optional)
Description: orders the unit group to move to the specified location
Sample use: unit_group_order_relative_move_formed group6 100 -60 run
Class: UNIT_GROUP_ORDER_RELATIVE_MOVE_FORMED
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_order_relative_move_unformed
Parameters: group_label x y run(optional)
Description: orders the unit group to move to the specified location
Sample use: unit_group_order_relative_move_unformed group6 100 -60 run
Class: UNIT_GROUP_ORDER_RELATIVE_MOVE_UNFORMED
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_move_to_missile_range_of_unit
Parameters: group_label target_unit_label
Description: move the unit group so that at least one unit is in range of the target unit
Sample use: unit_group_move_to_missile_range_of_unit archer_group enemy_spearmen3
Class: UNIT_GROUP_MOVE_TO_MISSILE_RANGE_OF_UNIT
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_move_to_missile_range_of_group
Parameters: group_label target_group_label run(optional)
Description: move the unit group so that at least one unit is in range of at least one unit in the target group
Sample use: unit_group_move_to_missile_range_of_group archer_group enemy_group
Class: UNIT_GROUP_MOVE_TO_MISSILE_RANGE_OF_GROUP
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_order_attack_unit
Parameters: group_label target_unit_label run(optional)
Description: order the unit group to attack the target unit
Sample use: unit_group_order_attack_unit group1 enemy_unit4
Class: UNIT_GROUP_ORDER_ATTACK_UNIT
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_order_attack_group
Parameters: group_label target_group_label run(optional)
Description: orders the unit group to attack the target group
Sample use: unit_group_order_attack_group cavalry_group1 enemy_archer_group
Class: UNIT_GROUP_ORDER_ATTACK_GROUP
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_order_change_group_formation
Parameters: group_label formation_name
Description: sets a group formation from descr_formations.txt
Sample use: unit_group_order_change_group_formation group2 ordered_triple_line_1
Class: UNIT_GROUP_ORDER_CHANGE_GROUP_FORMATION
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_order_turn
Parameters: group_label angle relative(optional)
Description: rotates the unit group to an angle or by a number of degrees relative to it's current angle (see unit_order_turn)
Sample use: unit_group_order_turn group2 90 (turns the group to 90 degrees)
Class: UNIT_GROUP_ORDER_TURN
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_set_morale
Parameters: group_label morale_level (beserk/impetuous/high/firm/shaken/wavering/routing)
Description: sets and locks the morale level for each unit in the group
Sample use: unit_set_morale infantry_group routing
Class: UNIT_GROUP_SET_MORALE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_unset_morale
Parameters: group_label
Description: unlocks the units' morale, the game will retake control and update the morale normally
Sample use: unit_group_unset_morale infantry_group
Class: UNIT_GROUP_UNSET_MORALE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_change_unit_formation
Parameters: group_label formation_type (square, horde, testudo, phalanx)
Description: changes the formation of each unit in the specified unit group
Sample use: unit_group_change_unit_formation hoplite_group phalanx
Class: UNIT_GROUP_CHANGE_UNIT_FORMATION
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_set_guard_mode
Parameters: group_label on/off
Description: Sets the guard melee state for all units in the specified group
Sample use: unit_group_set_guard_mode group2 off
Class: UNIT_GROUP_SET_GUARD_MODE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_set_skirmish_mode
Parameters: group_label on/off
Description: Sets the skirmish melee state for all units in the specified group
Sample use: unit_group_set_skirmish_mode archer_group on
Class: UNIT_GROUP_SET_SKIRMISH_MODE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_set_fire_at_will_mode
Parameters: group_label on/off
Description: Sets the guard melee state for all units in the specified group
Sample use: unit_group_set_fire_at_will_mode group2 off
Class: UNIT_GROUP_SET_FIRE_AT_WILL_MODE
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_group_set_formation_spacing
Parameters: group_label loose/tight
Description: Sets the formation spacing, for each unit in the group, to loose or tight
Sample use: unit_group_set_formation_spacing group1 loose
Class: UNIT_GROUP_SET_FORMATION_SPACING
Implemented: Yes
Author: Robbie
---------------------------------------------------
Identifier: unit_deploy_stakes
Parameters: unit_label
Description: Deploys stakes for the specified unit (ignored if stakes already deployed or the unit doesn't have this ability).
Sample use: unit_deploy_stakes roman_archers
Class: UNIT_DEPLOY_STAKES
Implemented: Yes
Author: Adam
---------------------------------------------------