You are viewing an old version of this page. Return to the latest version.
Version of 22:30, 10 October 2012 by I need to Update My Profile
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: | ||
| − | = | + | {{LUAFunction |
| − | Sets a race prerequisite for the given quest. | + | |Name = AddQuestPrereqRace |
| − | + | |Description = Sets a race prerequisite for the given quest. | |
| − | + | |Param1 = Spawn | |
| − | + | |Param1Desc = is the quest we will be adding a prerequisite to | |
| − | + | |Param2 = int8 | |
| − | + | |Param2Desc = is the race id | |
| − | + | |Example = | |
| − | |||
| − | |||
| − | |||
| − | |||
<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