You are viewing an old version of this page. Return to the latest version.
No categories assigned
LUA:AddQuestPrereqQuest
- Last edited 4 years ago by Vlash Nytefall
LUA Functions: AddQuestPrereqQuest()
Adds a quest prerequisite to the given quest.
Syntax
AddQuestPrereqQuest(param1, param2)
Parameters
- Required - param1 (Quest), param2 (int32)
- param1 is the quest we are adding a prerequisite to
- param2 is the id of the prerequisite quest
Usage
function Init(Quest)
-- can only do this quest if you have completed quest 2
AddQuestPrereqQuest(Quest, 2)
end
Only a player who has completed the quest with id 2 can do this quest.