This one's a bit lengthy, so I apologize in advanced.
So in this screenshot, I am showing you the Knockout State in my game that triggers the custom effect when being applied in the Notetags. The top notetag calls common event #151.
Anyway, in my game, there are some obstacles that try to make your HP drop to 0 in the overworld. And no matter how that HP reaches 0, I want it to trigger this coding in the screenshot through the common event.
As you can see, this common event (#151) is triggered (on Autorun) through a Switch #0062. So I figured I could try and use it this way...here's an example of an obstacle that can deal 26 HP of damage, and allows the KO. If the player touches the moving obstacle, all these lines of code execute:
The weird thing is...it doesn't happen. I thought that conditional branch would allow the cutscene to work, but the game just awkwardly cuts to the game over screen which I don't want.
What's strange to me is that the cutscene gimmick works just fine with another obstacle I have that inflicts poison damage:
Whenever the actor loses HP from being inflicted with the poison damage, or directly touching this -1 HP obstacle, the cutscene works just fine.
I'm not really sure why I can't get certain scripted damaging events to work while others don't. Could it be that I am not executing the code correctly? It's kind of confusing for me, and I'm hoping someone can help me figure this out.
So in this screenshot, I am showing you the Knockout State in my game that triggers the custom effect when being applied in the Notetags. The top notetag calls common event #151.
Anyway, in my game, there are some obstacles that try to make your HP drop to 0 in the overworld. And no matter how that HP reaches 0, I want it to trigger this coding in the screenshot through the common event.
As you can see, this common event (#151) is triggered (on Autorun) through a Switch #0062. So I figured I could try and use it this way...here's an example of an obstacle that can deal 26 HP of damage, and allows the KO. If the player touches the moving obstacle, all these lines of code execute:
The weird thing is...it doesn't happen. I thought that conditional branch would allow the cutscene to work, but the game just awkwardly cuts to the game over screen which I don't want.
What's strange to me is that the cutscene gimmick works just fine with another obstacle I have that inflicts poison damage:
Whenever the actor loses HP from being inflicted with the poison damage, or directly touching this -1 HP obstacle, the cutscene works just fine.
I'm not really sure why I can't get certain scripted damaging events to work while others don't. Could it be that I am not executing the code correctly? It's kind of confusing for me, and I'm hoping someone can help me figure this out.