Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetQuestItemData

From RoR Wiki

UI Lua API · Game functions
Version: WAR 1.4.8

Returns the items in the player's quest item bag.

questItems = GetQuestItemData()

Arguments

None.

Returns

questItems
table – Array of 64 item data tables, indexed by quest bag slot from 1 to 64.

Details

  • The table always has 64 entries, one per quest bag slot, including empty slots.
  • If there is no player object, or the Lua state is not available, the function returns nothing.
  • A new table is built on every call. The stock UI caches it in DataUtils.GetQuestItems() (easystem_utils/source/datautils.lua) and rebuilds it only when GameData.Player.questItemsDirty is set.

Errors

None.

Example

From easystem_utils/source/datautils.lua:

if (GameData.Player.questItemsDirty)
then
    GameData.Player.questItemsDirty = false
    DataUtilsData.questItems = GetQuestItemData()
end

See also