How to make a skill that auto-applies a state upon entering the battle(the easy way)

So basically I'm looking to make a skill that when I learn it, it grants me the ability to have a specific state applied to that actor at the beginning of every battle.

Every threads I have read on the forum tells me to make a different battle troop. But the problem is that it takes up double the troop slots and also too much time in the process. If I wanted to have another similar skill, I would have to make 3 times the original troop events.

I know for a fact that there is a pre-battle state plugin for RPG maker VX Ace, which simplies this to a notetag under the skill. I'm just asking if anyone have seen any plugin similar to this one.

Thank you for your attention.
So basically I'm looking to make a skill that when I learn it, it grants me the ability to have a specific state applied to that actor at the beginning of every battle.
No problem.
Every threads I have read on the forum tells me to make a different battle troop.
Do you mean troop event? I can't imagine why you'd need a different actual troop. I'm also surprised you're finding anything that would suggest this instead of the options I'll list below...
But the problem is that it takes up double the troop slots and also too much time in the process. If I wanted to have another similar skill, I would have to make 3 times the original troop events.
Why? You have conditional statements in a troop event. You could account for just about as many skills as you like in one event. Again, this is not a great way to do it, but there's 0 reason you should need many troops or many events.

You should just get Yanfly's Auto Passive States. You put the passive state notetag on a skill, and it will be on the actor from then on. If that's all you want, you're done!

However, if you want that state to run out (like it's always on when you start battle, but it expires after 3 turns), you need to add a few other things but it's still easy.

You'd give that passive state <Passive Condition: Switch x ON>.

Then you make a troop event that runs turn 0 and turns that switch on. Make another troop event that runs at the end of turn whatever you want and turns it off. Ta da!

If it's too much effort for you to copy those two events into every troop, use Yanfly's Base Troop Events to make those two events one time and say every troop has them. Ta da!
Just to add to @ATT_Turan's response:

For the second case where you want the applied state (call this state1) to decay, I think you can also use YEP BuffStatesCore in conjunction with AutoPassiveStates to bypass having the need to use troop events altogether.

1. Make a state (call this state2) that has the BuffStatesCore notetag (where x is your state1 id):

<Custom Battle Effect>
user.addState(x);
</Custom Battle Effect>

2. Add the AutoPassiveState notetag below(where y is state2's ID.) to your skill that grants your character the buff:

<Passive State: y>

This should do the same thing as what @ATT-Turan mentioned for the second part. Essentially what this does is to have a "carrier state" (state2) act as an autopassive that applies your actual intended state (state1) each time a battle begins. So sorry for the poor readability -_-' XD

EDIT: changed symbols to distinct ones instead of using dupes as suggested by @ATT_Turan.
Just to add to ATT_Turan's response:
That's a good idea, it's a better solution if you want to get a state that expires. I forgot about that tag.

I would suggest, for your formatting, that using the same symbol in two different colors is at best confusing (at first I thought you were saying the wrong thing, I didn't realize you were intending the colors to be specific) and at worst illegible (there are a fair number of colorblind people).

I'd suggest using two different characters, such as the standard X and Y.
That's a good idea, it's a better solution if you want to get a state that expires. I forgot about that tag.

I would suggest, for your formatting, that using the same symbol in two different colors is at best confusing (at first I thought you were saying the wrong thing, I didn't realize you were intending the colors to be specific) and at worst illegible (there are a fair number of colorblind people).

I'd suggest using two different characters, such as the standard X and Y.
Yes. I've been editing my message for a while now. Thanks for the advice, I'm trying to make it more readable as we speak =D
1. Make a state (call this state2) that has the BuffStatesCore notetag (where x is your state1 id):

<Custom Battle Effect>
user.addState(x);
</Custom Battle Effect>
I have been reading through both of your suggestions and found out a lot of my misunderstandings about the troop event system. So far, I think I have understood everything else but this one.

So if I do this, I should set up state1's duration as usual, right?

What actually does this <custom battle effect> notetag do?

Sorry, I do have the plugin and the only sentence in the plugin itself explaining this notetag is "this effect will occur at the start of battle if the battler has the state already applied".

Is it correct that state2 will lasts forever no matter the duration set for it in the state menu while state 1 can have a custom state duration?
I think I should probably give the carrier state an empty icon and the lowest priority to make it as insignificant as possible.
If you have more to add after your post, and no one else has posted anything since, you can just use the Edit button to add on.
So if I do this, I should set up state1's duration as usual, right?
Yes. You're only using two states if you want to start battle with your state on and you want it to expire during the battle. So you set it up with the duration you want it to have every battle.
What actually does this <custom battle effect> notetag do?

Sorry, I do have the plugin and I the only sentence in the plugin itself explaining this notetag is "this effect will occur at the start of battle if the battler has the state already applied".

Is state2's only effect applying state1?
Yes. It does exactly what you just quoted. State2 is a passive state (it never leaves the actor) and at the beginning of every battle it will apply state1, which has the effects and duration that you set up in the database entry.
And is it correct that state2 will lasts forever no matter the duration set for it in the state menu while state 1 can have a custom state duration?
Yes, if you read about the passive states or watch the tutorial, they have no duration. They can turn on and off according to the notetags you type in there, but they are always attached to the actor.
I think I should probably give the carrier state an empty icon and the lowest priority to make it as insignificant as possible.
The priority doesn't matter if you don't have an icon set, but sure.
There's also BaseTroopEvents, which allows you to create a troop whose events will be copied over to ALL troops at the start of combat. This way you could make an event page for the start of the fight that would check for the skill and apply the relevant states to the relevant targets. Do that for every similar need, put it all in the same troop, then set that troop id as the base troop id, and every event page in that troop will function on all other troops.
Now I see. Thank you guys for your help, really appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-that-auto-applies-a-state-upon-entering-the-battle-the-easy-way.146422/