Toggle search
Search
Toggle menu
Toggle personal menu
Editing
Data:Instruction:Check Battery
From Desynced Wiki
Read
Edit source
View history
Data
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
#REDIRECT [[Check Battery]] [[Category:Data:Storage:instruction]] {{DISPLAYTITLE:Check Battery}}<noinclude> {{DataInstruction |name = Check Battery |luaId = check_battery |description = Checks the Battery level of a unit |category = Unit |icon = Check Battery.png |explaination = Conditional node which diverts program logic depending on whether a unit's battery power reserves are <hl>Full</>. Defaults to the unit the behavior is running on. A unit that has no batteries equipped will never be <hl>Full</>, even while inside a power grid that has <bl>Unused</> power. When multiple batteries are equipped all will need to be full. An optional <hl>Unit</> parameter allows specifying a different unit in your faction |argsType1 = Exec |argsName1 = Full |argsDescription1 = Where to continue if battery power is fully recharged |argsDataType1 = |argsType2 = Input |argsName2 = Unit |argsDescription2 = The unit to check for (if not self) |argsDataType2 = entity |argsType3 = |argsName3 = |argsDescription3 = |argsDataType3 = |argsType4 = |argsName4 = |argsDescription4 = |argsDataType4 = |argsType5 = |argsName5 = |argsDescription5 = |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 |storedTable=instruction |name=Check Battery }}</noinclude>
Summary:
Please note that all contributions to Desynced Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Desynced Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:DataInstruction
(
edit
)
Template:DataTableIndex
(
edit
)