Hi there. I'm making a boss who compose of two: a robot and a cable. There's two ways to destroy it, just defeating the robot by depleting its HP, or 'defeating' the cable and making the robot to enter into a self-destruction sequence.
Here's the thing, I want to use the a Timer event to, when it reaches 0, the robot does damage to the characters and dies. Characters should still hit the robot while the timer is counting down, in an attempt to turning it off by depleting its HP. Whichever way the robot dies, the players wins.
However, I can't make the timer works well. This is my code (it's in Spanish).
When Enemy (2) (the cable) reaches 0 HP, the timer starts and activates a switch that calls the next page of the event.
The other page is called by the switch its activated before. On this, a condition is set where when it reaches 1 second, the timer stops and the robot does the self-destruct attack. The page is set as 'Moment'.
The issue here is that, when the timer starts, the battle freezes and the player can't select any command to even defend themselves. The timer still counts down until it reaches 0, when the robot does its attack and dies. (Of course it's not a robot, it's just a placeholder)
Changing the page event to "Turn" let the player to select commands while the timer is counting, but the condition when reaches 0s doesn't activate.
I also tried to put an "Exit event process" in the condition's 'else', but it doesn't do anything. Same with creating a Loop that englobes the condition, and adding an Exit Loop in the 'else'. Seems to be that I should put something in the 'else' because the game is verifying when it reaches 0 constantly but there's nothing there.
Here's the thing, I want to use the a Timer event to, when it reaches 0, the robot does damage to the characters and dies. Characters should still hit the robot while the timer is counting down, in an attempt to turning it off by depleting its HP. Whichever way the robot dies, the players wins.
However, I can't make the timer works well. This is my code (it's in Spanish).
When Enemy (2) (the cable) reaches 0 HP, the timer starts and activates a switch that calls the next page of the event.
The other page is called by the switch its activated before. On this, a condition is set where when it reaches 1 second, the timer stops and the robot does the self-destruct attack. The page is set as 'Moment'.
The issue here is that, when the timer starts, the battle freezes and the player can't select any command to even defend themselves. The timer still counts down until it reaches 0, when the robot does its attack and dies. (Of course it's not a robot, it's just a placeholder)
Changing the page event to "Turn" let the player to select commands while the timer is counting, but the condition when reaches 0s doesn't activate.
I also tried to put an "Exit event process" in the condition's 'else', but it doesn't do anything. Same with creating a Loop that englobes the condition, and adding an Exit Loop in the 'else'. Seems to be that I should put something in the 'else' because the game is verifying when it reaches 0 constantly but there's nothing there.