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

Have a really dumb question? Ask it here to get help from the experts (or those with too much time on their hands)

Moderator: Moderator

Post Reply
Message
Author
overzero6
Posts: 4
Joined: Fri May 11, 2018 6:35 am

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

#1 Post 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?

Lokean
Halfling
Posts: 88
Joined: Sun Dec 10, 2017 12:27 am

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

#2 Post 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

overzero6
Posts: 4
Joined: Fri May 11, 2018 6:35 am

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

#3 Post 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!

Lokean
Halfling
Posts: 88
Joined: Sun Dec 10, 2017 12:27 am

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

#4 Post 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

Post Reply