API:AddActiveTactic
From RoR Wiki
UI Lua API · Tactics functions
Version: WAR 1.4.8
Asks the server to add one tactic to the player's active tactics.
AddActiveTactic(tacticId)
Arguments
- tacticId
number– Ability ID of the tactic.
Returns
Nothing.
Details
- Sends an "add tactic" request with this one ID to the server. The ID is cut to a 16-bit value.
- The client does not check the ID or whether a free tactic slot exists.
- Exactly one argument must be passed.
- The stock UI never calls this function. It sets the whole list at once with ActivateTactics.
Errors
None besides the generic Invalid Parameters message when the argument is missing or not a number.
Example
A minimal call built from the signature:
AddActiveTactic( tacticId )
