No categories assigned

LUA:AddQuestPrereqRace


LUA:AllFunctions - AddQuestPrereqRace

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Sets a race prerequisite for the given quest.

Syntax

AddQuestPrereqRace(param1, param2)

Parameters

Required - param1 (Spawn), param2 (int8)
param1 is the quest we will be adding a prerequisite to
param2 is the race id


Example

function Init(Quest)
    -- only let humans do this quest
    AddQuestPrereqRace(Quest, 9)
end

Only humans would be allowed to do this quest.

Notes

None