Difference between revisions of "LUA:AddQuestPrereqModelType"

(Created page with "= LUA Functions: AddQuestPrereqModelType() = Adds a model type prerequisite to the given quest. ==== Syntax ==== AddQuestPrereqModelType(param1, param2) ==== Parameters ==== ;...")
 
 
Line 1: Line 1:
= LUA Functions: AddQuestPrereqModelType() =
+
{{LUAFunction
Adds a model type prerequisite to the given quest.
+
|Name = AddQuestPrereqModelType
 
+
|Description = Adds a model type prerequisite to the given quest.
 
+
|Param1 = Quest
==== Syntax ====
+
|Param1Desc = is the quest to add the prerequisite to
AddQuestPrereqModelType(param1, param2)
+
|Param2 = int16
 
+
|Param2Desc = is the model type id
==== Parameters ====
+
|Example =
; Required - ''param1'' (Quest), ''param2'' (int16)
 
: ''param1'' is the quest we are adding a prerequisite to
 
: ''param2'' is the model type id
 
 
 
==== Usage ====
 
 
<pre>
 
<pre>
 
function Init(Quest)
 
function Init(Quest)
Line 18: Line 13:
 
end
 
end
 
</pre>
 
</pre>
 
+
|ExampleDesc = Only a player with a model type of 5 could do the quest.
Only a player with a model type of 5 could do the quest.
+
|Notes = None
 +
}}

Latest revision as of 12:19, 30 January 2021


LUA:AllFunctions - AddQuestPrereqModelType

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


Adds a model type prerequisite to the given quest.

Syntax

AddQuestPrereqModelType(param1, param2)

Parameters

Required - param1 (Quest), param2 (int16)
param1 is the quest to add the prerequisite to
param2 is the model type id


Example

function Init(Quest)
    -- Only players with model type 5 can do this quest
    AddQuestPrereqModelType(Quest, 5)
end

Only a player with a model type of 5 could do the quest.

Notes

None