Skill

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 >=.

Формат значения
table
Область применения
step-condition, parallel-group-condition, next-route-condition, prefab-condition

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

Примеры

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

Lua · 01
Skill = { skill = "cooking", rank = 50, operator = ">=" }
Lua · 02
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 },
    },
}

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

Документированные параметрыПоведение и подробностиФормат значения
skillShown in the source example; this does not establish a required field.string
rankShown in the source example; this does not establish a required field.number
operatorShown 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.

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 },
    },
}

Поиск по вики

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