In Mario + Rabbids Kingdom Battle, there's a set of abilities that I'll collectively refer to here as Hero Sight. Basically, it lets a unit attack on their opponent's turn, should an enemy unit move within range of the unit with the ability activated.
I'm not planning on trying to recreate this ability in its entirety, because a JRPG is a completely different beast from a turn-based tactics game and I'm nowhere near skilled enough with Javascript, or RPG Maker in general, to try making a game like that with it. So instead, I came up with an altered version that works as such:
1. User sets up Hero Sight on their turn.
2. Enemy attempts to attack on their turn.
3. Hero Sight goes off and the user attacks the enemy before the enemy can attack in turn.
Or, to put it another way, it's a counterattack that goes off before the enemy attacks rather than afterwards as in a typical counterattack.
I'm guessing this is something that's going to require some plugins to pull off, if it's possible at all. Since this is going to involve a state in some fashion, Yanfly's Buff and States Core sounds like a good place to start. Past that I'm not sure how to go about implementing something like this, and would greatly appreciate some pointers.
I'm not planning on trying to recreate this ability in its entirety, because a JRPG is a completely different beast from a turn-based tactics game and I'm nowhere near skilled enough with Javascript, or RPG Maker in general, to try making a game like that with it. So instead, I came up with an altered version that works as such:
1. User sets up Hero Sight on their turn.
2. Enemy attempts to attack on their turn.
3. Hero Sight goes off and the user attacks the enemy before the enemy can attack in turn.
Or, to put it another way, it's a counterattack that goes off before the enemy attacks rather than afterwards as in a typical counterattack.
I'm guessing this is something that's going to require some plugins to pull off, if it's possible at all. Since this is going to involve a state in some fashion, Yanfly's Buff and States Core sounds like a good place to start. Past that I'm not sure how to go about implementing something like this, and would greatly appreciate some pointers.