#Lua Script Issue: Detecting Talent Points Investment

13 messages · Page 1 of 1 (latest)

knotty jewel
#

Hello,

I’m having some trouble figuring out how to check a spell talent (whether 1 or 2 points are invested in it).
I’m not a developer, and I’ve been talking with ChatGPT, but I don’t think it fully understands how to check this information correctly.

The script it gave me is :

    local talentID = 421432
    local _, _, _, selected = GetTalentInfoByID(talentID)
    if selected == 1 then
        return true
    else
        return false
    end
end```

I have some basic coding knowledge and I understand the structure, but unfortunately I don’t know how to code properly.

Thanks in advance for any help !
boreal herald
#

getting the info for how many points are invested into a talent is fairly involved.

#

chatGPT is using old API calls that no longer apply with new talent system since Dragonflight

knotty jewel
#

Ok, do you know how to do it or can you point me to some docs? 🙂

#

Actually, I'm trying to create a condition based on how many points are invested. Maybe WeakAuras can do this without using a script?

boreal herald
#

Getting talent data is async

knotty jewel
#

Damn, I thought this would be easy, and now I feel like tearing my hair out. I don’t think I’m capable of using this, it’s my first time dealing with WeakAuras scripts, and it looks pretty complicated.

boreal herald
#

yeah this isn't a good starting point

knotty jewel
#

I just wanted to make a condition for whether 1 or 2 points are invested, not spend my whole evening digging up this kind of info

boreal herald
#

yeah, unfortunately it's not that simple

knotty jewel
#

Well, never mind. Thanks for the help anyway.

knotty jewel
#

@boreal herald I have another question: how do I check if a talent is learned or not? It seems that the native function, without using a script, only applies to spells.