Results 1 to 2 of 2

Thread: Is there a easy way to get talent name after update?

  1. #1
    Basic Member
    Join Date
    Dec 2016
    Posts
    25

    Question Is there a easy way to get talent name after update?

    After each update, the name of the talent will change. Then I need to re-copy of the hero's talent name in the npc_heroes.txt. It is a waste of time to repeat this job.
    So, Is there a easy way to get talent name after update? Or valve add GetAbilityByIndex() function to get ability by index instead of slot, beacause slot maybe change in the game.

  2. #2
    Basic Member
    Join Date
    Dec 2016
    Posts
    25
    OK, I have found a way.
    Code:
    local Talents ={}
    
    for i=0,23,1 do
    	local ability=npcBot:GetAbilityInSlot(i)
    	if(ability~=nil and ability:IsTalent()==true)
    	then
    		table.insert(Talents,ability:GetName())
    	end
    end

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •