# C_ScenarioInfo: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_ScenarioInfo

## Functions

### C_ScenarioInfo.GetCriteriaInfo

```lua
scenarioCriteriaInfo = C_ScenarioInfo.GetCriteriaInfo(criteriaIndex)
```

May return nothing.

Arguments:
- `criteriaIndex`: number

Returns:
- `scenarioCriteriaInfo`: ScenarioCriteriaInfo

### C_ScenarioInfo.GetCriteriaInfoByStep

```lua
scenarioCriteriaInfo = C_ScenarioInfo.GetCriteriaInfoByStep(stepID, criteriaIndex)
```

May return nothing.

Arguments:
- `stepID`: number
- `criteriaIndex`: number

Returns:
- `scenarioCriteriaInfo`: ScenarioCriteriaInfo

### C_ScenarioInfo.GetDisplayInfo

```lua
info = C_ScenarioInfo.GetDisplayInfo()
```

May return nothing.

Returns:
- `info`: ScenarioDisplayInfo

### C_ScenarioInfo.GetJailersTowerTypeString

```lua
typeString = C_ScenarioInfo.GetJailersTowerTypeString(runType)
```

Arguments:
- `runType`: JailersTowerType

Returns:
- `typeString`: cstring, may be nil

### C_ScenarioInfo.GetScenarioIconInfo

```lua
scenarioInfos = C_ScenarioInfo.GetScenarioIconInfo(uiMapID)
```

May return nothing.

Arguments:
- `uiMapID`: number

Returns:
- `scenarioInfos`: ScenarioIconInfo[]

### C_ScenarioInfo.GetScenarioInfo

```lua
scenarioInfo = C_ScenarioInfo.GetScenarioInfo()
```

May return nothing.

Returns:
- `scenarioInfo`: ScenarioInformation

### C_ScenarioInfo.GetScenarioStepInfo

```lua
scenarioStepInfo = C_ScenarioInfo.GetScenarioStepInfo([scenarioStepID])
```

May return nothing.

Arguments:
- `scenarioStepID`: number, may be nil

Returns:
- `scenarioStepInfo`: ScenarioStepInfo

### C_ScenarioInfo.GetTieredEntranceActiveSpells

```lua
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

```lua
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

```lua
isTieredEntrance = C_ScenarioInfo.IsTieredEntranceScenario()
```

Returns:
- `isTieredEntrance`: bool

## Events

### JAILERS_TOWER_LEVEL_UPDATE

Payload, after the event's name:
- `level`: number
- `type`: JailersTowerType

### SCENARIO_BONUS_OBJECTIVE_COMPLETE

Payload, after the event's name:
- `bonusObjectiveID`: number

### SCENARIO_BONUS_VISIBILITY_UPDATE

No payload.

### SCENARIO_COMPLETED

Payload, after the event's name:
- `questID`: number, may be nil
- `xp`: number, may be nil
- `money`: number, may be nil

### SCENARIO_CRITERIA_SHOW_STATE_UPDATE

Payload, after the event's name:
- `show`: bool

### SCENARIO_CRITERIA_UPDATE

Payload, after the event's name:
- `criteriaID`: number

### SCENARIO_POI_UPDATE

No payload.

### SCENARIO_SPELL_UPDATE

No payload.

### SCENARIO_UPDATE

Payload, after the event's name:
- `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

---
Make an addon with your 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."
