Quests
Reacting to quest states by script
Summary
QuestTracker: On state change
JournalManager.ChangeEntryState
registerForEvent("onInit", function()
Observe("JournalManager", "ChangeEntryState", function(this, uniquePath, className, state, notifyOption)
if state == gameJournalEntryState.Succeeded then
Game.AddToInventory("Items.money", 10000)
end
end)
end)Observe("JournalManager", "OnQuestEntryTracked",
---@param this JournalManager
---@param entry JournalEntry
function(this, entry)
local id = entry.id
local state = this:GetEntryState(quest)
-- do something here
end)Last updated