Page 1 of 1

what's the lua code for Talents cooldown that aren't spells?

Posted: Fri May 11, 2018 6:40 am
by overzero6
what's the lua code for Talents cooldown that aren't spells? (T_SLASH) for example isn't a spell (the 'is spell' indicator is no) "game.player.spell_cooldown_reduction=1" is for spells, so what's the one for other talents that aren't spells?

Re: what's the lua code for Talents cooldown that aren't spe

Posted: Fri May 11, 2018 7:56 pm
by Lokean
self.talent_cd_reduction.all for a numeric reduction (a simple value subtracted from the normal cooldown)
self.talent_cd_reduction.allpct for a percentage reduction (of the same form as self.spell_cooldown_reduction)
self.talent_cd_reduction[t.id] for a numeric reduction for a specific talent

Re: what's the lua code for Talents cooldown that aren't spe

Posted: Sat May 12, 2018 9:11 am
by overzero6
Lokean wrote:self.talent_cd_reduction.all for a numeric reduction (a simple value subtracted from the normal cooldown)
self.talent_cd_reduction.allpct for a percentage reduction (of the same form as self.spell_cooldown_reduction)
self.talent_cd_reduction[t.id] for a numeric reduction for a specific talent
Thank you very much! I really appreciate it! Um If you don't mind, could you tell me how did you figure the command out? Is there a list of commands? the one in the wikipedia is missing a few (like the ones you gave me). Again thank you very much!

Re: what's the lua code for Talents cooldown that aren't spe

Posted: Sat May 12, 2018 11:39 am
by Lokean
Reading the source. I'm putting together a class addon, so have been doing a lot of source diving.

The code's up on a git repository here (link is to your specific question): https://git.net-core.org/tome/t-engine4 ... .lua#L6369