Difference between revisions of "InternalActionsWMLUnitTags"
From The Battle for Wesnoth Wiki
m (Polished page with {{WML Tags}}, See Also section, and Category links.) |
(removed [advancement] from list of alterable values, 1.5.14+ it is not https://gna.org/bugs/index.php?13274 will try to remember to put it back in if/when it goes back in) |
||
Line 32: | Line 32: | ||
* y | * y | ||
* zoc | * zoc | ||
− | |||
* [movement_costs] | * [movement_costs] | ||
* [defense] | * [defense] | ||
Line 42: | Line 41: | ||
* [modifications] | * [modifications] | ||
− | These values are all children of the stored unit variable (it is a [[VariablesWML#Container|container]] variable) and the bracketed values ( | + | These values are all children of the stored unit variable (it is a [[VariablesWML#Container|container]] variable) and the bracketed values (movement_costs, defense, etc.) are, themselves, container variables. Example: |
[set_variable] | [set_variable] | ||
name=unit_store.status.poisoned | name=unit_store.status.poisoned |
Latest revision as of 01:46, 29 March 2009
When a unit is stored, all keys and tags in the unit definition may be manipulated, including some others, with [set_variable]. Here is a sample list. (If you have a doubt about what keys are valid or what the valid value range is for each key, code a [store_unit] event, save the game, and examine what keys are in the file.)
- advances_to
- alignment
- alpha
- attacks_left
- canrecruit
- cost
- experience
- facing
- flying
- gender
- goto_x
- goto_y
- hitpoints
- id
- language_name (same as the name key in the unit config)
- max_experience
- max_hitpoints
- max_moves
- moves
- overlays
- resting
- side
- type
- unit_description
- unrenamable
- upkeep
- x
- y
- zoc
- [movement_costs]
- [defense]
- [resistance]
- [variables]
- [status]
- [attack]
- [modifications_description]
- [modifications]
These values are all children of the stored unit variable (it is a container variable) and the bracketed values (movement_costs, defense, etc.) are, themselves, container variables. Example:
[set_variable] name=unit_store.status.poisoned value=yes [/set_variable]
See Also
This page was last edited on 29 March 2009, at 01:46.