Thread Tools Display Modes
Prev Previous Post   Next Post Next
12/31/23, 12:23 PM   #1
Mr_Negative
AddOn Author - Click to view addons
Join Date: Dec 2023
Posts: 6
function: loadSkillInfo

I'm trying to get the info needed to make this use the Vampire skill (Mesmerize) but can't get it to work, can someone help, where do I find all the info reguarding the skill. like skillType = 3, skillLine = 2 or ability_vampire_001.


Lua Code:
  1. l.loadSkillInfo = function()
  2.   if not IsPlayerActivated() then return end
  3.   l.rmSkillInfo = nil
  4.   l.progressionIndexToSkillInfo = {}
  5.  
  6.   for skillType = 3, GetNumSkillTypes() do
  7.     for skillLine = 2, GetNumSkillLines(skillType) do
  8.       for abilityIndex = 3, math.min(7, GetNumAbilities(skillType, skillLine)) do
  9.         local abilityId = GetSkillAbilityId(skillType, skillLine, abilityIndex, false)
  10.         local abilityName, texture, earnedRank, passive, ultimate, purchased, progressionIndex, rankIndex =
  11.             GetSkillAbilityInfo(skillType, skillLine, abilityIndex)
  12.        
  13.         local info = {
  14.           skillType = skillType,
  15.           skillLine = skillLine,
  16.           abilityIndex = abilityIndex,
  17.           abilityId = abilityId,
  18.           abilityName = abilityName,
  19.           progressionIndex = progressionIndex,
  20.         }
  21.  
  22.         if string.find(texture, 'ability_vampire_001', 1, true) then
  23.           l.rmSkillInfo = info
  24.         elseif progressionIndex then
  25.           l.progressionIndexToSkillInfo[progressionIndex] = info
  26.         end
  27.       end
  28.     end
  29.   end
  30. end




Trying to make stage 4 vampirism a little less of a hastle.

Last edited by Mr_Negative : 12/31/23 at 02:29 PM. Reason: I can't get the format right and have no idea I'm a noob
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » function: loadSkillInfo


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