conditions

Route selection rules; see the supported scopes in Filters and Conditions.

Formato del valore
table
Ambito
route

Le descrizioni tecniche restano nell’inglese originale. I nomi dei campi e gli esempi Lua sono invariati.

Esempi

Esempio tratto dalle fonti. Sostituisci ID e valori in base al tuo itinerario; questo sito non esegue Lua.

Lua · 01
conditions = { Level = 80, Faction = "Alliance" }
Lua · 02
conditions = { IsQuestOnQuest = 93384, IsQuestReadyForTurnIn = 93384, IsQuestUncompleted = 93384 }
Lua · 03
APR.RouteQuestStepList["Forever-Training-Example"] = {
    label = "Training example",
    gameVersion = "forever",
    mapID = 1411,
    conditions = { Faction = "Horde", Class = "MAGE" },
    steps = {
        {
            LearnSkill = { spellID = 7411 },
            MinLevel = 5,
            SkipForPrimaryProfessions = 2,
            Coord = { x = -4960.0, y = -791.3 },
            Zone = 1411,
        },
        { PickUp = { 96873 }, Skill = { skillID = 333, rank = 1 }, Zone = 1411 },
        { RouteCompleted = true },
    },
}

Parametri documentati

Parametri documentatiComportamento e dettagliFormato del valore
LevelShown in the source example; this does not establish a required field.number | string | table
FactionShown in the source example; this does not establish a required field.string

Comportamento e dettagli

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.

Parallel reward groups
CaseRequired behavior / syntax
Ready, unturned-in questconditions = { IsQuestOnQuest = 93384, IsQuestReadyForTurnIn = 93384, IsQuestUncompleted = 93384 }
Reward available above a thresholdUse MinLevel, rather than BeLvl, and add Zones when activation should wait for a visit to the reward map.
Independent rewardsUse separate groups for independently available hand-ins; a single Done list waits for every quest.
Pending hand-insAutomatic turn-ins listed in pending groups wait for activation; manual turn-ins and the modifier override remain available.
Side objectivesUse Fillers during other steps; add a Qpart before Done for unfinished objectives.
Character restrictionsKeep shared eligibility on the route; child steps and prefabs need only additional restrictions.
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.
Example Route
APR.RouteQuestStepList["Forever-Training-Example"] = {
    label = "Training example",
    gameVersion = "forever",
    mapID = 1411,
    conditions = { Faction = "Horde", Class = "MAGE" },
    steps = {
        {
            LearnSkill = { spellID = 7411 },
            MinLevel = 5,
            SkipForPrimaryProfessions = 2,
            Coord = { x = -4960.0, y = -791.3 },
            Zone = 1411,
        },
        { PickUp = { 96873 }, Skill = { skillID = 333, rank = 1 }, Zone = 1411 },
        { RouteCompleted = true },
    },
}

Cerca nella wiki

Inizia con APRItinerari e compatibilitàAutomazione, come vuoi tuUn’interfaccia a modo tuoUn passaggio non avanza?Comandi di uso comuneCreare e condividere un itinerarioMissioni in gruppo
Esplora la wiki