People here like JRPGS. Persona 5's a popular JRPG. People like its combat, "people" includes me. I'm trying to craft something similar with a feature akin to the Baton Pass mechanic in it.
For the unfamiliar:
I think I have a pretty clear idea of how I could go around implementing something like this mostly just using custom states and attacks.
The knock down thing is seemingly pretty obvious to me. I could make states for each "buff level" of a baton pass chain.
What's left me stumped is the extra turns and when the player is allowed to baton pass and how to check if a baton pass has been used before.
I want to be able to check if a baton pass had been used before so the proper "buff level" can be applied to the member that the baton is passed to.
How could I go about implementing 1more's?
How can I prevent players from using baton pass until they land a crit or exploit a weakness?
These are likely very newbie questions, I'm inexperienced with any even slightly complex coding. The only experience I have with the stuff is from a Renpy game I made. It was mostly just a short slideshow with some music that I cobbled together under a two-week deadline. Even then most of the code was just stuff I copied from a (very helpful) Youtube tutorial... Under the hood the thing was probably a bunch of spaghetti.
For the unfamiliar:
The Baton Pass command is made available after the current active character has gained One More turn by Downing an enemy, whether it is from scoring a critical hit or by exploiting the enemy's weakness. When selected, another party member will have to be chosen to pass it to. Characters need to have the Baton Pass ability unlocked in order to receive the baton. Additionally, allies that have been affected by status conditions cannot be recipients of Baton Pass. The ability is also disabled if the user has an ailment themselves.When Baton Pass is initiated, the two respective allies do a high five, and the one receiving the turn has their attack and recovery power boosted for that turn. If that boosted party member also Downs another enemy and hence receives One More themselves, they can then pass on their turn to another ally, further increasing the power of the boost. The effects of the Baton Pass last until the user no longer receives a One More, and hence the next combatant's turn begins. However, when passing subsequent turns after the initial pass, the characters used previously in the sequence are unable to be recipients of more than one Baton Pass, preventing an endless loop. The party can achieve up to three consecutive passes, maxing out the strength of the boost on the third recipient. Using the Baton Pass does not consume that character's turn in battle and can lead to them technically having two consecutive turns without scoring a 1 More themselves.
In P5 when a party member lands a critical hit or hits an enemy with an element it's weak against, it's knocked down and can't move. This gives the member a "One More" a.k.a. an extra turn. Say Billy lands a fire skill on Jack Frost, this then gives him an extra turn, from there he can use that extra turn, or he can baton pass it to another party member, let's call her Trisha. He baton passes it to Trisha.
This gives her that extra turn and a buff to her attack and healing power. Now Trisha can use this extra turn to...
A. Obliterate the knocked down Jack Frost with an attack that exploits one of his weaknesses. She won't get a "One More" from this since Jack is already down.
B. Or use an ice skill on Jack's cousin, Weektu Frost. This WILL get her a "One More" and will knock down that guy Weektu Frost.
She goes with B and gains another bonus turn. She could hypothetically keep this going for herself by using fire skills on the two remaining enemies Jill Frost and Jerry Frost and knock them down. But she doesn't have fire skills, and she can't baton pass back to Billy. She baton passes to their lovable and fire affinity dog, Steak.
Steak gets the extra turn and an even more powerful buff to its attack and healing powers. It uses a fire skill on Jill Frost, knocking her down, yadda yadda. Steak isn't really concerned with the optimal play of just using its extra turn to use a fire skill on Jerry Frost and baton passes like his owners to the fourth and last member of the team, Jim.
Jim gets the strongest possible buff and is now able to perform skills at no cost. He casts OBLITERATE EXAMPLE FIGHT for zero sp and wipes out the enemies and the team.
This gives her that extra turn and a buff to her attack and healing power. Now Trisha can use this extra turn to...
A. Obliterate the knocked down Jack Frost with an attack that exploits one of his weaknesses. She won't get a "One More" from this since Jack is already down.
B. Or use an ice skill on Jack's cousin, Weektu Frost. This WILL get her a "One More" and will knock down that guy Weektu Frost.
She goes with B and gains another bonus turn. She could hypothetically keep this going for herself by using fire skills on the two remaining enemies Jill Frost and Jerry Frost and knock them down. But she doesn't have fire skills, and she can't baton pass back to Billy. She baton passes to their lovable and fire affinity dog, Steak.
Steak gets the extra turn and an even more powerful buff to its attack and healing powers. It uses a fire skill on Jill Frost, knocking her down, yadda yadda. Steak isn't really concerned with the optimal play of just using its extra turn to use a fire skill on Jerry Frost and baton passes like his owners to the fourth and last member of the team, Jim.
Jim gets the strongest possible buff and is now able to perform skills at no cost. He casts OBLITERATE EXAMPLE FIGHT for zero sp and wipes out the enemies and the team.
I think I have a pretty clear idea of how I could go around implementing something like this mostly just using custom states and attacks.
The knock down thing is seemingly pretty obvious to me. I could make states for each "buff level" of a baton pass chain.
What's left me stumped is the extra turns and when the player is allowed to baton pass and how to check if a baton pass has been used before.
I want to be able to check if a baton pass had been used before so the proper "buff level" can be applied to the member that the baton is passed to.
How could I go about implementing 1more's?
How can I prevent players from using baton pass until they land a crit or exploit a weakness?
These are likely very newbie questions, I'm inexperienced with any even slightly complex coding. The only experience I have with the stuff is from a Renpy game I made. It was mostly just a short slideshow with some music that I cobbled together under a two-week deadline. Even then most of the code was just stuff I copied from a (very helpful) Youtube tutorial... Under the hood the thing was probably a bunch of spaghetti.