Thread Tools Display Modes
04/14/14, 04:44 AM   #1
Elenthil
Join Date: Apr 2014
Posts: 3
Skill Informations

Hiho,

i try to get some skill information with

/script d(GetSkillAbilityInfo(SKILL_TYPE_CLASS,x,x))

so it give me the skills i have in the skillwindow, but is it possible to get all the morphs a skill have?

the reason is, i will get the german names of all skills.

thanks for help
  Reply With Quote
04/14/14, 07:16 AM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
what i found in the wiki:
GetSkillAbilityInfo(SkillType skillType, luaindex skillIndex, luaindex abilityIndex)

Returns: string name, textureName texture, luaindex earnedRank, bool passive, bool ultimate, bool purchased, luaindex:nilable progressionIndex

GetAbilityProgressionAbilityInfo(luaindex progressionIndex, integer morph, integer rank)

Returns: string name, string texture, luaindex abilityIndex


so something like this could work:
Lua Code:
  1. _, _, _, _, _, _, progressionIndex = GetSkillAbilityInfo(SKILL_TYPE_CLASS,x,x)
  2. if progressionIndex then
  3.     namemorph1 = GetAbilityProgressionAbilityInfo( progressionIndex, 1, 1 )
  4.     namemorph2 = GetAbilityProgressionAbilityInfo( progressionIndex, 2, 1 )
  5. end
There is only one morph stage so rank is always 1.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Skill Informations


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off