API:GetChoiceRewardsData
From RoR Wiki
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 aselectedfield (boolean).
Details
selectedis alwaysfalse. 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
