No categories assigned
LUA:AddQuestPrereqFaction
- Last edited 4 years ago by Vlash Nytefall
LUA:AllFunctions - AddQuestPrereqFaction
Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker
Adds a faction prerequisite to the given quest.
Syntax
AddQuestPrereqFaction(param1, param2, param3, param4)
Parameters
- Required - param1 (Quest), param2 (int32), param3 (sint32), param4 (sint32)
- param1 is the quest we are adding a prerequisite to
- param2 is the faction id
- param3 is the min amount of faction needed
- param4 is the max amount of faction
Example
function Init(Quest)
-- only allow players with -1000 to 100 with faction 200 do this quest
AddQuestPrereqFaction(Quest, 200, -1000, 100)
end
Only players with -1000 to 100 with faction 200 can do this quest.
Notes
None