I have a Phase Battle system, and I want players to be able to press a button to momentarily increase their defense during enemy attacks.
Currently I have this set up using four sequential "Wait for Input" node with the "block button" Input, with the first node triggering a missed block, the next triggering a normal block, the third triggering a perfect block, and the final triggering a missed block.
Obviously that's kind of convoluted and I'm sure there's a way to do it better. I'm aiming for the real time blocking of the Paper Mario and Mario and Luigi RPG games. It would smooth things out in the long run if I could design the "block" ability as separate hidden ability that is usable in real time during an enemy's turn. It would also make timing of enemy abilities more consistent and add flexibility to the block function. Any ideas on implementing something like this?
The enemy attack could e.g. set a bool global variable to control when the global events can be used (variable conditions on the event). To use the correct combatant that's being attacked, you can store it into global selected data using a Select Combatant node - that allows you to access the combatant that is attacked in the global event via the same selected data key.
Now, you just need to set up your global events (e.g. started via the input keys) to do what you want.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!