No categories assigned
LUA:AddQuestPrereqQuest
- Last edited 4 years ago by Vlash Nytefall
LUA:AllFunctions - AddQuestPrereqQuest
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
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
Example
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.
Notes
While this function should still work it is now prefered to add quest prerequisite data into the DB.