some mentoring (lua noob)
Hi, so im looking to make use of
GetPrimaryTalentTree(false,false)
it will output 1 2 or 3.
once i get the output from it i have something to use based off it.
if cfg.playername == "Windblossom" and cfg.playerclass == "DRUID" and cfg.talentree == "3" then
cfg.animhealth = 0
end
cfg.talentree doesnt exist yet, its just a placeholder, where do i make GetPrimaryTalentTree(false,false) to run to give the cfg.talentree variable its output?.
First off i just want it to load when you log in or enter world since thats what everything else does atm so that seems most doable. And later if i learn anything from this get it to recheck changed talent trees using another api thingy.
this is from charspecific.lua from rothui.
if you think i should read up on something specific please tell me. I have a very basic understanding atm. Thanks.
|