Difference between revisions of "LUA:AddQuestPrereqRace"

(Created page with "= LUA Functions: AddQuestPrereqRace() = Sets a race prerequisite for the given quest. ==== Syntax ==== AddQuestPrereqRace(param1, param2) ==== Parameters ==== ; Required - ''pa...")
 
 
Line 1: Line 1:
= LUA Functions: AddQuestPrereqRace() =
+
{{LUAFunction
Sets a race prerequisite for the given quest.
+
|Name = AddQuestPrereqRace
 
+
|Description = Sets a race prerequisite for the given quest.
==== Syntax ====
+
|Param1 = Spawn
AddQuestPrereqRace(param1, param2)
+
|Param1Desc = is the quest we will be adding a prerequisite to
 
+
|Param2 = int8
==== Parameters ====
+
|Param2Desc = is the race id
; Required - ''param1'' (Quest), ''param2'' (int8)
+
|Example =
: ''param1'' is the quest we will be adding a prerequisite to
 
: ''param2'' is the race id
 
 
 
==== Usage ====
 
 
<pre>
 
<pre>
 
function Init(Quest)
 
function Init(Quest)
Line 17: Line 13:
 
end
 
end
 
</pre>
 
</pre>
 
+
|ExampleDesc = Only humans would be allowed to do this quest.
Only humans would be allowed to do this quest.
+
|Notes = None
 +
}}

Latest revision as of 12:18, 30 January 2021


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