Hello, trying to implement an "Active Block" in a turn based battle system. Pretty much identical to the Paper Mario method, player presses A right before you receive damage to add a certain amount of defense. Control of this feature is blocked until the start of an enemy attack. What step of the attack would be best to implement that? Any tips on implementing this feature is hugely appreciated
Id put a "wait for input" node to test and see if the player is pressing the block button. you could set a quick timer with some sort of visual prompt (show image node or something) you can go a bit further and place a wait for input right before and right after to set up a failure state for being early or late.
Id handle the damage being tied to a defense value in a formula that the enemy ability uses for its damage calculation. Then waiting till the end of the attack to deal damage to check if the player blocked or not.
The attack event could give the "target" (player) a status effect that temporarily boosts defense that the formula checks for.