YEP_SkillCooldowns / YEP_ItemUpgradeSlot Set cooldown reduction

Hi ! I want to set a cooldown reduction on an item : "Upgrade Cooldown" to reduce cooldown of a skill. When I equip my gloves and put my "Upgrade Cooldown" the skill cd of the skill number 64 is set to 1 turn.​
​
But I don't know what type of code I need to put on the notetag of my upgrade item.​
​
I tried some code, but I don't know how to do this so...​
​
Maybe there is an other way to do this ? I prefer to use the YEP's plugins​
​
upgrade cooldown.PNG​
​
upgrade notetag.PNG
Is it possible to add state to those Upgrade ? If it is, you can put the cooldown deacrease on that state no ?
Hi, you can use this: user._cooldownTurns[64] = 1
@TSR like this ?
upgrade notetag2.PNG
I'm not sure when the Effect is triggered, but I don't think that will work. At best, it will set the current cooldown of the skill to 1 turn, making the next time (after the upgrade) you go into battle, it will already be on cooldown. This will not reduce the cooldown at all. More likely it probably won't do anything at all. It could also just straight crash te game, as user might not even be defined in that context.

I'd say the best option is what @Gregaur suggested. Make this upgrade apply a passive state to the item, and make the passive state reduce the cooldown of the skill.
omg thank you it's working !

I set this on my cooldown item :

upgrade item.PNG


and this to my state :

state cooldown.PNG

simple but working !
It could also just straight crash te game, as user might not even be defined in that context.
Yup! my bad... passive state is good stategy indeed! 👍
Sorry for mileading you @Ogeluj :dizzy:

Original thread: https://forums.rpgmakerweb.com/threads/yep_skillcooldowns-yep_itemupgradeslot-set-cooldown-reduction.120826/