
Lib-Scenarios
A library to get scenario name, step name, and step description with specified language.
Addon Details
Expansion
Categories
Developers
Having issues?
Lib-Scenarios is a library which can help to get scenario name, step name, and step description with specified language.
By default it will return user's language, but one can toggle to show the specified language.
Functions
--[[ To get the scenario name by given the scenario ID ]] loc_scenario_name = lib:GetScenarioNameByID(scID, lang) --[[ To get the scenario step-name by given the scenario ID and step ID ]] loc_scenario_stepname = lib:GetScenarioStepNameByID(scID, stID, lang) --[[ To get the scenario step-description by given the scenario ID and step ID ]] loc_scenario_stepDescription = lib:GetScenarioStepDescByID(scID, stID, lang)
--[[
To get the number of steps from specified scenario
]]
num_scenarioSteps = lib:GetNumberScenarioSteps(scID)
--[[
To get the scenario step ID of specified scenario-step
]]
scenariop_stepID = lib:GetScenarioStepID(scID, stID)
--[[
To get the scenario step's criteria-tree ID of specified scenario-step
]]
scenario_step_criteriaID = lib:GetScenarioStepCriteriaTreeID(scID, stID)
Sample of function calls
local lib = LibStub:GetLibrary("Lib-Scenarios"); local sName, stpName, stpDesc; sName = lib:GetScenarioNameByID(53); stpName = lib:GetScenarioStepNameByID(53, 1); stpDesc = lib:GetScenarioStepDescByID(53, 1);
More addons for Legion
Discover other addons that might interest you
Pokemon Trainer: The Pet Battle Mod
The pet battle addon with many helpers!
iTracking
LDB plugin replacement for minimap tracking.
Madness of the Void
A simple RP addon that plays whispers from the Void and Old Gods
LibDBIcon-1.0
Allows addons to easily create a lightweight minimap icon as an alternative to heavier LDB…
FPS Monitor
A lightweight overlay that delivers real-time frame-rate tracking and deep performance analytics, so you can…
BigWigs_Transcriptor
Use BigWigs for pull/win/wipe detection to automatically start or stop Transcriptor logging.
ElvUI Serenity Gaming EU 2.0
ElvUI Layout for Serenity Gaming EU 2.0
GTA Wasted Death Sound
Plays the GTA “Wasted” death sound when your character dies.