MV (Yanfly's buffs & states core plugin) When to use "user, target and origin" notetags?

Hello, everyone. I have this doubt that I didn't know I had until just a couple of hours ago. I've been thinking this through and I can't reach a conclusion. Can you help me? Basically I don't know when I should use any of them when writing notetags for states. For example I have this notetag for a state:


<Custom Apply Effect>

user.removeState(X);

</Custom Apply Effect>


If the state comes from a skill, but the state means to refer to the actor that has the state, what should I write? and if I want to refer to the actor that used the skill? What if the state comes from a piece of armor and I want to refer to the actor using the armor? Thanks a lot for reading!
Those words don't mean anything (and in fact notetags don't do anything) in MV's default engine.

That kind of functionality only comes from plugins, and you'd have to say which specific plugin you're looking at in order to look at the instructions/code and answer your question.

(yes, it's obvious because I'm familiar with the plugins and I recognize the tag, but that's still kind of basic "I need help" stuff 😛 )

Anyway...presuming you're talking about Yanfly's Buffs & States Core, any of the notetags listed under Custom Action Effects use user and target to refer to the current attacker and defender.

Anything under Custom Timing Effects, there is nothing going on that involves a target, so user and target both refer to the same battler.

And origin only has a meaning when a skill was used to give another battler a state. In that case, origin is the battler that used the skill.
Those words don't mean anything (and in fact notetags don't do anything) in MV's default engine.

That kind of functionality only comes from plugins, and you'd have to say which specific plugin you're looking at in order to look at the instructions/code and answer your question.

(yes, it's obvious because I'm familiar with the plugins and I recognize the tag, but that's still kind of basic "I need help" stuff 😛 )

Anyway...presuming you're talking about Yanfly's Buffs & States Core, any of the notetags listed under Custom Action Effects use user and target to refer to the current attacker and defender.

Anything under Custom Timing Effects, there is nothing going on that involves a target, so user and target both refer to the same battler.

And origin only has a meaning when a skill was used to give another battler a state. In that case, origin is the battler that used the skill.
You're absolutely right. They're from yanfly's buffs and states core. I got confused because the plugins are so integral to RM MV that I thought the notetags were from the vanilla program. Anyway, I kinda understand what you mean, but I still have some doubts. What about passive states? Should I write "user" to refer to the actor that has the state or what? Also I have this skill that applies burn to its target. When applied, burn removes frost from the target of the skill. What do I write?

<Custom Apply Effect>

user/target.removeState(x);

</Custom Apply Effect>

Thanks a lot for your answer.
Anyway, I kinda understand what you mean, but I still have some doubts. What about passive states? Should I write "user" to refer to the actor that has the state or what?
I don't understand the question. There is no reference to a target variable in the instructions for Auto Passive States. Why would you think it even exists?

Also I have this skill that applies burn to its target. When applied, burn removes frost from the target of the skill. What do I write?
What did I say in my first post? Which of those sections of the plugin instructions lists "Custom Apply Effect"?

You're doing something in your head to make this harder than it should be 😛
Yeah, it seems I've got passive states mixed up with regular buffs. Thanks for your help. I'll try to read the plugin's description with more care.

"You're doing something in your head to make this harder than it should be"

Oh, you have no idea how right you are, friend hahaha.

Have a nice day.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-buffs-states-core-plugin-when-to-use-user-target-and-origin-notetags.166699/