You are viewing an old version of this page. Return to the latest version.
Version of 23:46, 19 March 2009 by Christopher
Difference between revisions of "LUA:AddQuestPrereqFaction"
(New page: Not currently functional.) |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | {{LUAFunction | |
| + | |Name = AddQuestPrereqFaction | ||
| + | |Description = Adds a faction prerequisite to the given quest. | ||
| + | |Param1 = Quest | ||
| + | |Param1Desc = is the quest we are adding a prerequisite to | ||
| + | |Param2 = int32 | ||
| + | |Param2Desc = is the faction id | ||
| + | |Param3 = sint32 | ||
| + | |Param3Desc = is the min amount of faction needed | ||
| + | |Param4 = sint32 | ||
| + | |Param4Desc = is the max amount of faction | ||
| + | |Example = | ||
| + | <pre> | ||
| + | function Init(Quest) | ||
| + | -- only allow players with -1000 to 100 with faction 200 do this quest | ||
| + | AddQuestPrereqFaction(Quest, 200, -1000, 100) | ||
| + | end | ||
| + | </pre> | ||
| + | |ExampleDesc = Only players with -1000 to 100 with faction 200 can do this quest. | ||
| + | |Notes = None | ||
| + | }} | ||
Latest revision as of 12:19, 30 January 2021
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