Module:Unit/doc: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 61: | Line 61: | ||
| <pre>{{#invoke:Unit|get|Angel|expBonus}}</pre> | | <pre>{{#invoke:Unit|get|Angel|expBonus}}</pre> | ||
| {{#invoke:Unit|get|Angel|expBonus}} | | {{#invoke:Unit|get|Angel|expBonus}} | ||
|- | |||
| squadValue | |||
| Squad value of the unit (used for army composition calculations) | |||
| <pre>{{#invoke:Unit|get|Angel|squadValue}}</pre> | |||
| {{#invoke:Unit|get|Angel|squadValue}} | |||
|- | |- | ||
| hp | | hp | ||
| Line 87: | Line 92: | ||
| {{#invoke:Unit|get|Angel|damageMax}} | | {{#invoke:Unit|get|Angel|damageMax}} | ||
|- | |- | ||
| | | stats.moral | ||
| Default morale | | Default morale | ||
| <pre>{{#invoke:Unit|get|Angel| | | <pre>{{#invoke:Unit|get|Angel|stats.moral}}</pre> | ||
| {{#invoke:Unit|get|Angel| | | {{#invoke:Unit|get|Angel|stats.moral}} | ||
|- | |- | ||
| luck | | stats.moralMin | ||
| Minimum morale value | |||
| <pre>{{#invoke:Unit|get|Angel|stats.moralMin}}</pre> | |||
| {{#invoke:Unit|get|Angel|stats.moralMin}} | |||
|- | |||
| stats.moralMax | |||
| Maximum morale value | |||
| <pre>{{#invoke:Unit|get|Angel|stats.moralMax}}</pre> | |||
| {{#invoke:Unit|get|Angel|stats.moralMax}} | |||
|- | |||
| stats.luck | |||
| Default luck | | Default luck | ||
| <pre>{{#invoke:Unit|get|Angel|luck}}</pre> | | <pre>{{#invoke:Unit|get|Angel|stats.luck}}</pre> | ||
| {{#invoke:Unit|get|Angel|luck}} | | {{#invoke:Unit|get|Angel|stats.luck}} | ||
|- | |||
| stats.luckMin | |||
| Minimum luck value | |||
| <pre>{{#invoke:Unit|get|Angel|stats.luckMin}}</pre> | |||
| {{#invoke:Unit|get|Angel|stats.luckMin}} | |||
|- | |||
| stats.luckMax | |||
| Maximum luck value | |||
| <pre>{{#invoke:Unit|get|Angel|stats.luckMax}}</pre> | |||
| {{#invoke:Unit|get|Angel|stats.luckMax}} | |||
|- | |- | ||
| initiative | | initiative | ||
Revision as of 12:38, 7 January 2026
Module for requesting characteristics of all existing units in Olden Era. Actual data is stored in Module:units.json.
Supported Commands
get
The module supports the main get command, through which you can retrieve individual unit attributes (listed below). The basic syntax of the command is:
{{#invoke:Unit|get|Unit Name|Property Name}}
Localization Support
The module supports localization in multiple languages. You can specify the language as an optional third parameter:
{{#invoke:Unit|get|Unit Name|Property Name|Language Code}}
For example:
{{#invoke:Unit|get|Angel|name|pl}}Anioł - Polish{{#invoke:Unit|get|Angel|name|ru}}Ангел - Russian


