Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:UseEffect

From RoR Wiki
Revision as of 19:51, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Effect functions
Version: WAR 1.4.8

Sends a "use effect" request for one of the player's effects to the server.

UseEffect(effectIndex)

Arguments

effectIndex
number – Index of the effect.

Returns

Nothing.

Details

  • Sends a "use effect" request with effectIndex to the server. Only the low 8 bits of the value are sent (0–255).
  • The client does not check the value. What the request does is decided by the server.
  • Exactly one argument must be passed.
  • The stock UI never calls this function.

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:

UseEffect( effectIndex )

See also