MV State Notes with Yanflys Auto Passive States

Hello,
i use the Yanflys Auto Passive States and I would like to use a fixed value as a passive status instead of one in percentages.

So i try the:

$gameActors.actor(actorId).addParam(paramId, n);

For Actor 3 (Marsha)
$gameActors.actor(3).addParam(3, 10)

Marsha should get + 10 DEF as soon as the skill is learned, but this does not work.
Is the note command wrong or is it not possible to use fixed values for a state ?
It's nearly impossible to say what you're doing wrong because you don't actually show your full notetag.

If you're just putting that line of code into the notes of a state, that will never do anything - the notes field is just that, where you can type notes.

It only does anything with code if you put it inside of a notetag that a plugin is designed to read.

All of that being said, I can't think of a notetag that would do what you want. The timing:
Marsha should get + 10 DEF as soon as the skill is learned
means you want the code to be executed one time, when the passive state first appears. The only notetag that could do that is Custom Apply, but that doesn't trigger for passive states.

There are other plugins that can give parameter increases inside of a state, such as Quasi's Params Plus or Hakuen Studio's Dynamic Parameters.

You also could be going about it in an inefficient way. If the only thing you want from learning this skill is to get a parameter increase, and the passive state serves no other purpose, check out this Tip & Trick:
Quasi's Params Plus was what I was looking for.
Thank you

Original thread: https://forums.rpgmakerweb.com/threads/state-notes-with-yanflys-auto-passive-states.162466/