Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:RemoveSelectedReward

From RoR Wiki
Revision as of 19:48, 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 · Interact functions
Version: WAR 1.4.8

Removes one choice reward of the current quest from the selection.

RemoveSelectedReward(rewardIndex)

Arguments

rewardIndex
number – Number of the choice reward, 1 to 25.

Returns

Nothing.

Details

  • Removes rewardIndex from the client's set of selected choice rewards (see AddSelectedReward). Values outside 1–25 are ignored.
  • Nothing is sent to the server by this call.
  • If the argument is not a number, the Invalid Parameters message names AddSelectedReward instead of RemoveSelectedReward: the function reports its errors under the other function's identity.
  • The function needs at least one argument and only reads the last one.

Errors

None besides the generic Invalid Parameters message (see Details).

Example

From default/ea_interactionwindow/source/interactionquestwindow.lua:

selected = false
RemoveSelectedReward( reward )
EA_Window_InteractionQuest.choiceRewardsData[reward].selected = false
EA_Window_InteractionQuest.numSelectedRewards = EA_Window_InteractionQuest.numSelectedRewards - 1

See also