No edit summary |
m (Pywikibot 10.3.1) |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
{{DataInstruction | {{DataInstruction | ||
|name = Get Health | |name = Get Health | ||
|description = Gets a | |luaId = get_health | ||
|description = Gets a unit's health as a percentage, current remaining and max amount | |||
|category = Math | |category = Math | ||
|icon = | |icon = H Value.png | ||
|explaination = Gets health values for a Unit. Defaults to the unit the behavior is executing on. | |||
<hl>Percent</> is the current health as a percentage of max health | |||
<hl>Current</> is the actual amount of health points left | |||
<hl>Max</> is the maximum amount of health points | |||
Optional <hl>Unit</> parameter to specify a different unit in your faction. | |||
|argsType1 = Input | |argsType1 = Input | ||
|argsName1 = | |argsName1 = Unit | ||
|argsDescription1 = | |argsDescription1 = Unit to check | ||
|argsDataType1 = entity | |argsDataType1 = entity | ||
|argsType2 = Output | |argsType2 = Output | ||
Line 27: | Line 35: | ||
|argsDescription5 = | |argsDescription5 = | ||
|argsDataType5 = | |argsDataType5 = | ||
|argsType6 = | |||
|argsName6 = | |||
|argsDescription6 = | |||
|argsDataType6 = | |||
|argsType7 = | |||
|argsName7 = | |||
|argsDescription7 = | |||
|argsDataType7 = | |||
|argsType8 = | |||
|argsName8 = | |||
|argsDescription8 = | |||
|argsDataType8 = | |||
|argsType9 = | |||
|argsName9 = | |||
|argsDescription9 = | |||
|argsDataType9 = | |||
|argsType10 = | |||
|argsName10 = | |||
|argsDescription10 = | |||
|argsDataType10 = | |||
|argsType11 = | |||
|argsName11 = | |||
|argsDescription11 = | |||
|argsDataType11 = | |||
}}{{DataTableIndex | }}{{DataTableIndex | ||
|storedTable=instruction | |storedTable=instruction | ||
|name=Get Health | |name=Get Health | ||
}}</noinclude> | }}</noinclude> |