No categories assigned

LUA:GetQuestFlags

Revision as of 18:42, 12 July 2014 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetQuestFlags() = Gets the custom quest flags for the given quest ==== Syntax ==== var = GetQuestFlags(param1) ==== Parameters ==== ; Required - ''param1'' (...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetQuestFlags()

Gets the custom quest flags for the given quest


Syntax

var = GetQuestFlags(param1)


Parameters

Required - param1 (Quest)
param1 is the quest whos custom flags we want to get


Returns

int32


Usage

function random_quest_function(Quest, QuestGiver, Player)
    local flags = GetQuestFlags(Quest)
    Say(Player, "Quest Flags = " .. flags)
end

This will get the flags for the quest and have the player say them, useful for debugging

Notes

Quest flags will be saved per character

Meant as a bitmask but any int32 can be stored