I've been trying to replicate the Persona 5 Royal Baton Pass System where you are able to give an extra turn to another character. While I've been successful, it is incredibly time consuming. I made an entire common event that goes over everything, when I thought of a possible way to do it making the time incredibly short.
I thought using Yanfly's Skill Core, I could make a custom effect using if statements to apply/remove states when needed, and had an original script that went like:
<Custom Execution>
if (target.isStateAffected(10)) {
user.addState(4) }
else {target.addState(4)}
</Custom Execution>
Basically, it would check whether or not the target could receive the baton pass, and if not, it would return the turn to the user.
This did not work.
If someone could help me figure out what I did wrong would be greatly appreciated.
I thought using Yanfly's Skill Core, I could make a custom effect using if statements to apply/remove states when needed, and had an original script that went like:
<Custom Execution>
if (target.isStateAffected(10)) {
user.addState(4) }
else {target.addState(4)}
</Custom Execution>
Basically, it would check whether or not the target could receive the baton pass, and if not, it would return the turn to the user.
This did not work.
If someone could help me figure out what I did wrong would be greatly appreciated.