prefab

Prefab membership and ordering. Entry conditions select membership without hiding manual route selection.

Формат значения
table
Область применения
route

Технические описания сохранены на английском языке оригинала. Имена полей и примеры Lua не изменены.

Примеры

Пример из исходной документации. Замените идентификаторы и значения для своего маршрута; этот сайт не выполняет Lua.

Lua · 01
prefab = { [APR.PREFAB_TYPES.Speedrun] = { index = 20, conditions = { Class = "MAGE" } } }

Перечисления

Поведение и подробности

Route Definition Options
OptionDescriptionExpected Syntax
categoryRoute category enum. Common values are leveling, speedrun, campaign, etc.category = APR.CATEGORIES.Leveling
conditionsRoute selection rules; see the supported scopes in Filters and Conditions.conditions = { Level = 80, Faction = "Alliance" }
expansionExpansion enum used to group the route in the UI.expansion = APR.EXPANSIONS.Midnight
gameVersionClient family: "retail", "forever" or "classic". Incompatible routes are hidden and unavailable.gameVersion = "forever"
labelDisplay name shown in the route list.label = "Midnight - Speedrun"
levelRangeDisplay-only character level interval in the route list. Forever profession guides use 1-60; profession skill ranks are separate. If no level can be determined, the list shows -. This metadata does not gate route or step access.levelRange = { min = 1, max = 60 }
mapIDMain map ID for the route. Used as route metadata and zone fallback.mapID = 2393
nextRouteFollow-up route keys. Conditional entries must also pass the target route's selection rules.nextRoute = { "Shared", { route = "Class", conditions = { Class = "MAGE" } } }
parallelStepsDeclare before steps. Insert eligible groups at the current position, or after the current InstanceQuest block. Single EquipItem/UseItem actions inherit live group conditions; other groups retain activation-only conditions.parallelSteps = { { conditions = { MinLevel = 88 }, steps = { ... } } }
parallelSteps[].repeatableFor a single UseItem action, allow a fresh activation after the previous action was passed and the conditions became false then true (for example, another book was received).repeatable = true
prefabPrefab membership and ordering. Entry conditions select membership without hiding manual route selection.prefab = { [APR.PREFAB_TYPES.Speedrun] = { index = 20, conditions = { Class = "MAGE" } } }
requiredRouteRequired route keys. Applicable unfinished requirements are added before this route; hard visibility failures waive them, temporary level/spec/zone restrictions do not.requiredRoute = { "2432-Midnight-Intro" }
stepsMain ordered list of route steps.steps = { { PickUp = { 86733 } }, ... }
legacyLabelsPrevious labels recognized when resolving saved route names.legacyLabels = { "Old route label" }
autoStartOnMapAllows starter-route detection on the route's map.autoStartOnMap = true
notSkippablePrioritize this starter route and protect it from automatic prefab reset suggestions.notSkippable = true
hiddenFromSelectionHide the route from manual route selection.hiddenFromSelection = true
temporaryTemporary guide that preserves the parent route for resuming afterward.temporary = true
sojournerAchievementIDCompleted Sojourner achievement that allows campaign auto-skip when the player enables that setting.sojournerAchievementID = 61576
scenariosScenario variants for an instance route; each has scenarioID, steps and optional label/index.scenarios = { { scenarioID = 3101, steps = { ... } } }
delveMarks a route as a Delve guide.delve = {}

A file may register several independent APR.RouteQuestStepList["route-key"] = { ... } entries. Follow-up routes, prerequisites and prefabs reference these keys, not file names.

Filters and Conditions

Conditions on the same table combine with AND. Use AnyOf for alternatives, AllOf for repeated predicates and Not to invert a whole condition table.

ScopeSupported conditions / result
Steps and parallelSteps[].conditionsAll filters below; group conditions control insertion, while a failed step filter skips that step.
Route conditions: visibilityInterfaceVersion, InterfaceVersionExact, DontHaveSpell, IsQuestReadyForTurnIn, HasAchievement, DontHaveAchievement, Faction, Race, Class, ClassNot, Event, AlliedRace, IsQuestCompleted, IsQuestUncompleted. Failure hides the route.
Route conditions: availabilityNumeric Level, MinLevel, MaxLevel, BeLvl, plus ClassSpec and Zones. Enforced failures disable the route; level recommendations follow the policy below.
Route-level AnyOfAlternatives use the route selection policy; enforced failures hide the route. Nested level recommendations follow the policy below.
Conditional nextRoute / prefab entriesUse step filters; these affect the suggestion or prefab membership.

For Forever reputation guides, route level thresholds are recommendations for manual

selection at every level, including thresholds of 10 or below. Ordinary Forever

leveling chapters use the same policy. The browser, manual addition and direct

activation share this rule; an unmet recommendation stays visible as a warning.

Faction restrictions and declared quest/route prerequisites remain mandatory.

Starter and specialized routes keep their existing entry policy. Level predicates

under Not keep their original meaning. Automatic recommendations and step/group

filters still enforce the authored levels; selecting a guide does not waive quest

or activity requirements.

OptionDescriptionExpected Syntax
AlliedRaceRestricts based on whether the character is an allied race.AlliedRace = true
AllOfRequire every enclosed condition table to match. Useful for repeated predicates such as several quest-presence checks.AllOf = { { IsQuestNotOnQuest = 10 }, { IsQuestNotOnQuest = 20 } }
AnyOfRequires at least one alternative condition table to match, in addition to all other conditions on the step/group. An empty list never matches.AnyOf = { { IsQuestOnQuest = 86733 }, { IsQuestCompleted = 86852, IsQuestUncompleted = 86733 } }
BeLvlExact effective level check. The player must be at least this level, but below the next whole level.BeLvl = 88
ClassRequire one or more classes; accepts tokens or class IDs.Class = { "HUNTER", "ROGUE" }
ClassNotExclude one or more classes; route mismatches hide the route.ClassNot = APR.Classes.Evoker
ClassSpecRestricts to a specialization ID. For routes, failing this condition makes the route disabled rather than hidden.ClassSpec = APR.Specs["Mage - Frost"]
CollectionRequire at least quantity items (default 1) in bags plus the saved character bank, using the same count as LootItems.Collection = { itemID = 5465, quantity = 50 }
DontHaveAchievementVisible only if the achievement is missing.DontHaveAchievement = 9924
DontHaveAuraRequires the aura to be absent.DontHaveAura = 32182
DontHaveSpellRequires a spell to be unknown by both the player and pet. With a list, none of the listed spells may be known. Uses the same spellbook wrapper as HasSpell.DontHaveSpell = { 264211, 264434 }
EquippedItemRequire one slot entry or a nonempty list (every entry must pass). Omit itemID for any item; invert = true negates that entry.EquippedItem = { slot = 16, itemID = 2493 }
EquippedItemStatCompare a slot's stat token, QUALITY or LEVEL. A nonempty list requires every entry to pass. See resource fields below.EquippedItemStat = { slot = 16, stat = "ITEM_MOD_DAMAGE_PER_SECOND_SHORT", operator = "<", value = 3.5 }
EventRestricts to a specific APR event mode, such as Remix.Event = APR.EVENTS.Remix
FactionRestricts to a faction ("Alliance" or "Horde").Faction = "Horde"
GenderRestricts to a gender (1 neutral, 2 male, 3 female).Gender = 3
HardcoreRequire Hardcore (true) or non-Hardcore (false). Clients without C_GameRules.IsHardcoreActive count as non-Hardcore.Hardcore = false
HasAchievementRequires a specific achievement.HasAchievement = 12593
HasAuraRequires a specific buff or aura.HasAura = 178207
HasSpellRequires the player or pet to know a specific spell.HasSpell = 34090
InterfaceVersionMinimum client interface version; route mismatches hide the route.InterfaceVersion = 110200
IsOneOfQuestsCompletedRequires at least one quest in the list to be completed.IsOneOfQuestsCompleted = { 31588, 31589 }
IsOneOfQuestsCompletedOnAccountAccount-wide variant of IsOneOfQuestsCompleted.IsOneOfQuestsCompletedOnAccount = { 49929, 49930 }
IsOneOfQuestsUncompletedRequires none of the listed quests to be completed (negates IsOneOfQuestsCompleted).IsOneOfQuestsUncompleted = { 31588, 31589 }
IsOneOfQuestsUncompletedOnAccountAccount-wide variant of IsOneOfQuestsUncompleted.IsOneOfQuestsUncompletedOnAccount = { 49929, 49930 }
IsQuestCompletedRequires a single quest to be completed.IsQuestCompleted = 35049
IsQuestNotOnQuestRequires the quest to be absent from this character's current log. Combine with IsQuestUncompleted to exclude completed quests too.IsQuestNotOnQuest = 86737
IsQuestOnQuestRequires the quest in this character's current log; account completion is not sufficient.IsQuestOnQuest = 86737
IsQuestReadyForTurnInTrue for a quest in this character's log with completed objectives, or a quest already turned in by this character. A list requires every quest to be ready.IsQuestReadyForTurnIn = 93384
IsQuestsCompletedRequires all listed quests to be completed.IsQuestsCompleted = { 31821, 31822 }
IsQuestsCompletedOnAccountAccount-wide variant of IsQuestsCompleted.IsQuestsCompletedOnAccount = { 49929, 49930 }
IsQuestsUncompletedRequires at least one listed quest to still be incomplete.IsQuestsUncompleted = { 31821, 31822 }
IsQuestsUncompletedOnAccountAccount-wide variant of IsQuestsUncompleted.IsQuestsUncompletedOnAccount = { 49929, 49930 }
IsQuestUncompletedRequires a single quest to be incomplete.IsQuestUncompleted = 35049
ItemCountCompare current item counts, summing itemIDs if supplied. Includes equipped items; optional bank/toy counting. See resource fields below.ItemCount = { itemIDs = { 6948 }, operator = ">=", count = 1 }
LevelMinimum level/XP threshold; see level requirement forms below.Level = 80
MaxLevelMaximum level/XP threshold, inclusive.MaxLevel = 69
MinLevelMinimum level/XP threshold; keeps rewards eligible at higher levels.MinLevel = 10
MoneyCompare cash actually owned, in copper. See resource fields below.Money = { operator = ">=", copper = 10000 }
VendorMoneyCompare cash plus carried items' estimated vendor value; uses the same inventory/equipment rules as LootMoney.VendorMoney = { copper = 102, equippedSlots = { 16 } }
Named level profileDynamic threshold for step Level, MinLevel, MaxLevel, SkipForLvl and Grind; see Configurable Level Profiles.MinLevel = "MidnightDelves"
NotInvert the complete enclosed condition table.Not = { HasSpell = 6673 }
OnlyInZonesShows and executes the step only in one of these current player map IDs; otherwise skips it. Does not set navigation coordinates.OnlyInZones = { 2541 }
PickedLoaSpecifies the chosen Loa in Zandalar (1 = Bwonsamdi, 2 = Rezan).PickedLoa = 1
QuestLineSkipPrevents the optional group popup if a questline is intentionally skipped.QuestLineSkip = 51226
RaceRequire one or more races; accepts names or race IDs.Race = { "Orc", "Troll" }
ReputationLevelShows the step only after the requested standing, renown level, or friendship rank has been reached.ReputationLevel = { factionID = 2590, type = APR.REPUTATION_TYPE.Renown, level = 10 }
SkillFilter only: compare learned skill rank, or its cap with maximum = true. Accepts a key, skill ID or localized name; default rank is 1 and operator is >=. An unmet filter skips the step; use SkillGoal to wait for a rank.Skill = { skill = "cooking", rank = 50, operator = ">=" }
SkipForLvlSkips the step once the player's effective level is greater than or equal to the given value.SkipForLvl = 89.18
SkipForPrimaryProfessionsSkip once at least X primary professions are learned (positive integer). 2 keeps the step with zero or one profession. Cooking, fishing, first aid and archaeology never count.SkipForPrimaryProfessions = 2
SkipForReputationHides and skips the step once the requested standing, renown level, or friendship rank has been reached.SkipForReputation = { factionID = 2773, type = APR.REPUTATION_TYPE.Friendship, level = 5 }
SkipInZonesHides and skips the step in any of these current player map IDs. Does not set navigation coordinates.SkipInZones = { 2393 }
InterfaceVersionExactRequire an exact client interface version.InterfaceVersionExact = 120100

Синхронизировано с GitHub · 6d80020 · Сохранённые данные

Поиск по вики

12 результатов

Открыть вики