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" } } }
Lua · 02
prefab = {
    [APR.PREFAB_TYPES.Leveling] = { index = 10, conditions = { Race = { "Orc", "Troll" } } },
    [APR.PREFAB_TYPES.Speedrun] = { index = 10, conditions = { Race = { "Orc", "Troll" } } },
},

Документированные параметры

Документированные параметрыПоведение и подробностиФормат значения
indexShown in the source example; this does not establish a required field.number
conditionsShown in the source example; this does not establish a required field.table
ClassShown in the source example; this does not establish a required field.string

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

Forms shown in the documentation, not an exhaustive runtime schema. Constant runtime types are not inferred.

Route Definition Options

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.

Filters and Conditions
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. Failure disables the route.
Route-level AnyOfAlternatives use step filters; failure hides the route, including failures of nested level conditions.
Conditional nextRoute / prefab entriesUse step filters; these affect the suggestion or prefab membership.
Resource conditions and Hardcore routes

Prefab entries accept either the existing numeric index or an index with native

conditions. The conditions select membership in that prefab without hiding the

route from manual selection:

Resource conditions and Hardcore routes
prefab = {
    [APR.PREFAB_TYPES.Leveling] = { index = 10, conditions = { Race = { "Orc", "Troll" } } },
    [APR.PREFAB_TYPES.Speedrun] = { index = 10, conditions = { Race = { "Orc", "Troll" } } },
},

Поиск по вики

Начало работы с APRМаршруты и совместимостьАвтоматизация на ваших условияхНастройте интерфейс под себяЗастряли на шаге?Повседневные командыСоздание и публикация маршрутаЗадания в группе
Открыть вики