API:GetTacticsSet
From RoR Wiki
UI Lua API · Game functions
Version: WAR 1.4.8
Returns the ability ids stored in one of the player's saved tactic sets.
tactics = GetTacticsSet(setId)
Arguments
- setId
number– Index of the set, from 0 to 4.
Returns
- tactics
table– Array of ability ids (number), indexed from 1. Empty if the set has no tactics.
Details
setIdis converted to an integer and only its lowest 8 bits are used.- If
setIdis out of range, an error message is logged and the function returns nothing. - Sets are written with SaveTacticsSet.
Errors
Error in function call 'GetTacticsSet': setId %d is out of range.
Example
Finding the first empty set, from ea_tacticswindow/source/tacticswindow.lua:
local tacticsSet = GetTacticsSet(i)
if (tacticsSet and (#tacticsSet == 0)) then
return i;
end
