API:GetGivenRewardsData
From RoR Wiki
UI Lua API · Game functions
Version: WAR 1.4.8
Returns the rewards that the open quest dialog gives without a choice.
rewards = GetGivenRewardsData()
Arguments
None.
Returns
- rewards
table– Array of item data tables, indexed from 1. Empty if there are no fixed item rewards.
Details
- 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()
