Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
7.3-release2 release | 557.07 KB | Apr 24, 2018 | 7.3.5 | 423 | Download |
7.3-release1 release | 556.39 KB | Aug 30, 2017 | 7.3.0 | 260 | Download |
7.2-release3 release | 556.42 KB | Mar 26, 2017 | 7.2.0 | 289 | Download |
7.2-release2 release | 556.48 KB | Mar 26, 2017 | 7.1.5 | 21 | Download |
7.2-release2 release | 556.48 KB | Mar 20, 2017 | 7.1.5 | 132 | Download |
7.2-release1 release | 592.62 KB | Mar 20, 2017 | 7.1.5 | 16 | Download |
7.2-release1 release | 592.62 KB | Mar 16, 2017 | 7.1.5 | 108 | Download |
7.1-release1 release | 512.77 KB | Oct 27, 2016 | 7.1.0 | 424 | Download |
7.0-release2 release | 512.95 KB | Aug 31, 2016 | 7.0.3 | 243 | Download |
7.0-release1 release | 512.72 KB | Aug 29, 2016 | 7.0.3 | 70 | Download |
r19-alpha alpha | 561.78 KB | Oct 26, 2020 | 7.3.5 | 25 | Download |
r17-alpha alpha | 557.07 KB | Apr 24, 2018 | 7.3.5 | 17 | Download |
r16-alpha alpha | 556.31 KB | Apr 24, 2018 | 7.3.5 | 14 | Download |
r14-alpha alpha | 556.12 KB | Aug 30, 2017 | 7.3.0 | 11 | Download |
r10-alpha alpha | 556.16 KB | Mar 26, 2017 | 7.2.0 | 26 | Download |
r8-alpha alpha | 556.16 KB | Mar 20, 2017 | 7.1.5 | 11 | Download |
r8-alpha alpha | 592.33 KB | Mar 16, 2017 | 7.1.5 | 14 | Download |
r6 alpha | 512.71 KB | Oct 27, 2016 | 7.1.0 | 12 | Download |
r4 alpha | 512.87 KB | Aug 29, 2016 | 7.0.3 | 33 | Download |
r2 alpha | 512.66 KB | Aug 29, 2016 | 7.0.3 | 21 | Download |
Description
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);
Add a comment