MV [SOLVED] How to make specific Actors have Less Turns from specific States? (YEP Buff States Core)

Im using YEP Buff States Core but idk how to make it so a certain Actor will have less Turns from a specific State applied to them compared to other Actors having said State applied.

For example, what if in the lore Actor 2 has a higher heat tolerance than other Actors. So, whenever the Burning State is applied to Actor 2, it lasts for a shorter amount of Turns than if they were say Actor 1 or Actor 3
Hmmm, I guess one way is to use Yanfly Buffs&States <Custom Apply Effect> check if actor, check actor id and modify the state turns.

EDIT: So I think it's like
<Custom Apply Effect>
if (user.isActor() && user.actorId() === X)
user._stateTurns[stateId] -= Y;
</Custom Apply Effect>
Hmmm, I guess one way is to use Yanfly Buffs&States <Custom Apply Effect> check if actor, check actor id and modify the state turns.

EDIT: So I think it's like
<Custom Apply Effect>
if (user.isActor() && user.actorId() === X)
user._stateTurns[stateId] -= Y;
</Custom Apply Effect>
Worked perfectly, thank you!!

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-to-make-specific-actors-have-less-turns-from-specific-states-yep-buff-states-core.181070/