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 !