Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetChoiceRewardsData

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

Returns the rewards the player can choose from in the open quest dialog.

rewards = GetChoiceRewardsData()

Arguments

None.

Returns

rewards
table – Array of item data tables, indexed from 1, at most 25 entries. Each also has a selected field (boolean).

Details

  • selected is always false. The client does not report which reward is picked.
  • If the Lua state is not available, the function returns nothing.

Errors

None.

Example

From ea_interactionwindow/source/interactionquestwindow.lua:

EA_Window_InteractionQuest.choiceRewardsData = GetChoiceRewardsData()
EA_Window_InteractionQuest.givenRewardsData  = GetGivenRewardsData()
EA_Window_InteractionQuest.numSelectedRewards = 0

See also