No categories assigned
LUA:SetQuestFlags
- Last edited 11 years ago by I need to Update My Profile
LUA Functions: SetQuestFlags()
Sets the custom flags for the quest
Syntax
SetQuestFlags(param1, param2)
Parameters
- Required - param1 (Quest), param2 (int32)
- param1 is the quest who's flags we want to set
- param2 is what you want to set the flags to
Usage
function another_random_quest_step(Quest, QuestGiver, Player)
local flags = GetQuestFlags(Quest)
flags = flags + 2
SetQuestFlags(Quest, flags)
end
This will add a value to the current quest flags
Notes
Custom quest flags are meant to be used as a bitmask but any int32 can be used
These flags will be saved for each character in the `character_quests` table