Difference between revisions of "LUA:GetQuestFlags"

(Created page with "= LUA Functions: GetQuestFlags() = Gets the custom quest flags for the given quest ==== Syntax ==== var = GetQuestFlags(param1) ==== Parameters ==== ; Required - ''param1'' (...")
 
(No difference)

Latest revision as of 18:42, 12 July 2014

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