prefab
Prefab membership and ordering. Entry conditions select membership without hiding manual route selection.
- 值的格式
- table
- 作用范围
- route
技术说明保留英文原文。字段名称和 Lua 示例保持不变。
示例
源文件示例。请根据你的路线替换 ID 和数值;本网站不会执行 Lua。
prefab = { [APR.PREFAB_TYPES.Speedrun] = { index = 20, conditions = { Class = "MAGE" } } }prefab = {
[APR.PREFAB_TYPES.Leveling] = { index = 10, conditions = { Race = { "Orc", "Troll" } } },
[APR.PREFAB_TYPES.Speedrun] = { index = 10, conditions = { Race = { "Orc", "Troll" } } },
},已记录的参数
| 已记录的参数 | 行为与详情 | 值的格式 |
|---|---|---|
index | Shown in the source example; this does not establish a required field. | number |
conditions | Shown in the source example; this does not establish a required field. | table |
Class | Shown 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
| Scope | Supported conditions / result |
|---|---|
Steps and parallelSteps[].conditions | All filters below; group conditions control insertion, while a failed step filter skips that step. |
Route conditions: visibility | InterfaceVersion, InterfaceVersionExact, DontHaveSpell, IsQuestReadyForTurnIn, HasAchievement, DontHaveAchievement, Faction, Race, Class, ClassNot, Event, AlliedRace, IsQuestCompleted, IsQuestUncompleted. Failure hides the route. |
Route conditions: availability | Numeric Level, MinLevel, MaxLevel, BeLvl, plus ClassSpec and Zones. Failure disables the route. |
Route-level AnyOf | Alternatives use step filters; failure hides the route, including failures of nested level conditions. |
Conditional nextRoute / prefab entries | Use 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" } } },
},