Make an Actor attack automatically at the start of the fight

I'm trying to make a "Rogue" class, and i'd like to have a passive skill that allows the character to attack automatically before the fight starts
What i'm looking for is: entry battle -> chance for the "sneak attack" to occur -> action menu appears
Any idea on how to do it? I can't seem to find a solution
Turn 0 troop events happen at the beginning of battle.

So you'd make a turn 0 event that sets a variable to a random number; then a conditional branch that says "if that number is higher than this, do Force Action on this actor."
Do I have to do it for every Troop? I was trying to do something more "automatic", maybe with the use of some plugin as well
Do I have to do it for every Troop? I was trying to do something more "automatic", maybe with the use of some plugin as well
you can use Yanfly's passive state plugin to do it automatically. if you have it and its prereqs, you can make a passive effect for your class, give it a <custom battle effect> (from the buffs and states plugin - a prereq) , and use a script call to make the actor use whatever skill you want at the start of every fight
you can use Yanfly's passive state plugin to do it automatically. if you have it and its prereqs, you can make a passive effect for your class, give it a <custom battle effect> (from the buffs and states plugin - a prereq) , and use a script call to make the actor use whatever skill you want at the start of every fight
I really didn't see the <custom battle effect> tag. Thank you!
You can also use Yanfly's Base Troop Events to make events that go into every troop.
You can also use Yanfly's Base Troop Events to make events that go into every troop.
Yanfly really has too many plugins to remember ahahahah. Thanks a lot to you too!

Original thread: https://forums.rpgmakerweb.com/threads/make-an-actor-attack-automatically-at-the-start-of-the-fight.165957/