prefab

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

값 형식
table
적용 범위
route

기술 설명은 영어 원문으로 유지됩니다. 필드 이름과 Lua 예제는 변경되지 않았습니다.

예제

원문 예제입니다. 노선에 맞게 ID와 값을 바꾸세요. 이 웹사이트는 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 시작하기노선과 호환성원하는 만큼 자동화하기나만의 인터페이스 만들기단계가 진행되지 않나요?자주 쓰는 명령어노선 제작과 공유파티와 퀘스트 진행하기
위키 둘러보기