(Redirected page to Get Battery) Tag: New redirect |
m (Pywikibot 10.3.1) |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
{{DataInstruction | {{DataInstruction | ||
|name = Get Battery | |name = Get Battery | ||
|description = | |luaId = get_battery | ||
|description = Gets the value of the Battery level as a percent | |||
|category = Math | |category = Math | ||
|icon = | |icon = Check Battery.png | ||
|explaination = Returns the unit and current battery level percentage as a number in the <hl>Result</> parameter. | |||
When multiple batteries are equipped, all batteries will be calculated. | |||
A unit that has no batteries equipped will always return zero, even while inside a power grid that has <bl>Unused</> power. | |||
|argsType1 = Output | |argsType1 = Output | ||
|argsName1 = Result | |argsName1 = Result | ||
Line 27: | Line 33: | ||
|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 Battery | |name=Get Battery | ||
}}</noinclude> | }}</noinclude> |