World of Warcraft Forever API · SpecializationShared.md, for your AI
SpecializationShared (global functions)
5 functions, 2 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
GetSpecializationInfoForClassID
id, name, description, icon, role, recommended, allowedForBoost, masterySpell1, masterySpell2 = GetSpecializationInfoForClassID(classID, index, [gender])
Arguments
classID | number | |
|---|---|---|
index | luaIndex | |
gender | UnitSex may be nil |
Returns
id | number | |
|---|---|---|
name | cstring | |
description | string | |
icon | fileID | |
role | cstring | |
recommended | bool | |
allowedForBoost | bool | |
masterySpell1 | number may be nil | |
masterySpell2 | number may be nil |
GetSpecializationInfoForSpecID
id, name, description, icon, role, recommended, allowedForBoost, masterySpell1, masterySpell2 = GetSpecializationInfoForSpecID(specID, [gender])
Arguments
specID | number | |
|---|---|---|
gender | UnitSex may be nil |
Returns
id | number | |
|---|---|---|
name | cstring | |
description | string | |
icon | fileID | |
role | cstring | |
recommended | bool | |
allowedForBoost | bool | |
masterySpell1 | number may be nil | |
masterySpell2 | number may be nil |
GetSpecializationNameForSpecID
name = GetSpecializationNameForSpecID(specID, [gender])
Arguments
specID | number | |
|---|---|---|
gender | UnitSex may be nil |
Returns
name | cstring may be nil |
|---|
GetSpecializationSystem
system = GetSpecializationSystem()
Returns
system | SpecializationSystem |
|---|
HasLootSpecializations
hasLootSpecializations = HasLootSpecializations()
Returns
hasLootSpecializations | bool |
|---|
Tables
Enum.SpecializationSystem enumeration
TalentTab | 0 |
|---|---|
ChrSpecialization | 1 |
SpecializationInfoResult structure
id | number | |
|---|---|---|
name | cstring | |
description | string | |
icon | fileID | |
role | cstring | |
recommended | bool | |
allowedForBoost | bool | |
masterySpell1 | number may be nil | |
masterySpell2 | number may be nil |