World of Warcraft Forever API · C_ScenarioInfo.md, for your AI
C_ScenarioInfo
10 functions, 9 events, 7 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_ScenarioInfo.GetCriteriaInfo
scenarioCriteriaInfo = C_ScenarioInfo.GetCriteriaInfo(criteriaIndex)
May return nothing.
Arguments
criteriaIndex | number |
|---|
Returns
scenarioCriteriaInfo | ScenarioCriteriaInfo |
|---|
C_ScenarioInfo.GetCriteriaInfoByStep
scenarioCriteriaInfo = C_ScenarioInfo.GetCriteriaInfoByStep(stepID, criteriaIndex)
May return nothing.
Arguments
stepID | number | |
|---|---|---|
criteriaIndex | number |
Returns
scenarioCriteriaInfo | ScenarioCriteriaInfo |
|---|
C_ScenarioInfo.GetDisplayInfo
info = C_ScenarioInfo.GetDisplayInfo()
May return nothing.
Returns
info | ScenarioDisplayInfo |
|---|
C_ScenarioInfo.GetJailersTowerTypeString
typeString = C_ScenarioInfo.GetJailersTowerTypeString(runType)
Arguments
runType | JailersTowerType |
|---|
Returns
typeString | cstring may be nil |
|---|
C_ScenarioInfo.GetScenarioIconInfo
scenarioInfos = C_ScenarioInfo.GetScenarioIconInfo(uiMapID)
May return nothing.
Arguments
uiMapID | number |
|---|
Returns
scenarioInfos | ScenarioIconInfo[] |
|---|
C_ScenarioInfo.GetScenarioInfo
scenarioInfo = C_ScenarioInfo.GetScenarioInfo()
May return nothing.
Returns
scenarioInfo | ScenarioInformation |
|---|
C_ScenarioInfo.GetScenarioStepInfo
scenarioStepInfo = C_ScenarioInfo.GetScenarioStepInfo([scenarioStepID])
May return nothing.
Arguments
scenarioStepID | number may be nil |
|---|
Returns
scenarioStepInfo | ScenarioStepInfo |
|---|
C_ScenarioInfo.GetTieredEntranceActiveSpells
spellIDs = C_ScenarioInfo.GetTieredEntranceActiveSpells()
Returns list of active challenge spells if inside a tiered entrance scenario
Returns
spellIDs | number[] may be nil |
|---|
C_ScenarioInfo.GetUnitCriteriaProgressValues
actualValue, percentValue, percentValueString = C_ScenarioInfo.GetUnitCriteriaProgressValues(unit)
May return nothing.
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Arguments
unit | UnitToken |
|---|
Returns
actualValue | number | |
|---|---|---|
percentValue | number | |
percentValueString | string |
C_ScenarioInfo.IsTieredEntranceScenario
isTieredEntrance = C_ScenarioInfo.IsTieredEntranceScenario()
Returns
isTieredEntrance | bool |
|---|
Events
JAILERS_TOWER_LEVEL_UPDATE
level | number | |
|---|---|---|
type | JailersTowerType |
SCENARIO_BONUS_OBJECTIVE_COMPLETE
bonusObjectiveID | number |
|---|
SCENARIO_BONUS_VISIBILITY_UPDATE
No payload.
SCENARIO_COMPLETED
questID | number may be nil | |
|---|---|---|
xp | number may be nil | |
money | number may be nil |
SCENARIO_CRITERIA_SHOW_STATE_UPDATE
show | bool |
|---|
SCENARIO_CRITERIA_UPDATE
criteriaID | number |
|---|
SCENARIO_POI_UPDATE
No payload.
SCENARIO_SPELL_UPDATE
No payload.
SCENARIO_UPDATE
newStep | bool may be nil |
|---|
Tables
Enum.JailersTowerType enumeration
TwistingCorridors | 0 |
|---|---|
SkoldusHalls | 1 |
FractureChambers | 2 |
Soulforges | 3 |
Coldheart | 4 |
Mortregar | 5 |
UpperReaches | 6 |
ArkobanHall | 7 |
TormentChamberJaina | 8 |
TormentChamberThrall | 9 |
TormentChamberAnduin | 10 |
AdamantVaults | 11 |
ForgottenCatacombs | 12 |
Ossuary | 13 |
BossRush | 14 |
ScenarioCriteriaInfo structure
description | string | |
|---|---|---|
criteriaType | number default 0 | |
completed | bool default false | |
quantity | number default 0 | |
totalQuantity | number default 0 | |
flags | number default 0 | |
assetID | number default 0 | |
criteriaID | number | |
duration | number default 0 | |
elapsed | number default 0 | |
failed | bool default false | |
isWeightedProgress | bool default false | |
isFormatted | bool default false | |
quantityString | string |
ScenarioDisplayInfo structure
themeColor | colorRGB may be nil | |
|---|---|---|
startSoundKitID | number may be nil |
ScenarioIconInfo structure
x | number | |
|---|---|---|
y | number | |
atlas | textureAtlas | |
description | cstring |
ScenarioInformation structure
name | string | |
|---|---|---|
currentStage | number | |
numStages | number | |
flags | number | |
isComplete | bool | |
xp | number | |
money | number | |
type | number | |
area | string | |
uiTextureKit | textureKit | |
scenarioID | number |
ScenarioStepInfo structure
title | string | |
|---|---|---|
description | string | |
numCriteria | number | |
stepFailed | bool | |
isBonusStep | bool | |
isForCurrentStepOnly | bool | |
shouldShowBonusObjective | bool | |
spells | ScenarioStepSpellInfo[] | |
weightedProgress | number may be nil | |
rewardQuestID | number | |
widgetSetID | number may be nil | |
stepID | number |
ScenarioStepSpellInfo structure
spellID | number | |
|---|---|---|
name | string | |
icon | number |