I created a petrification state. Actors inflicted with that state will "shatter" after a few turns if nothing is done. Now, heres my problem: When an actor falls into little pieces, Instead of changing the actors state to K.O.'ed, I want the Game over screen to appear. In other words, I want my petrification state to cause a game over after a few turns. Theres no common event option when you make states, so how can I do that? Thanks alot in advance and have a good day!
State causing a game over
RPG Maker MV SupportANY actor?
Or ALL actors?
For the second, both Yanfly's State Categories (even if not mentioned in the page, it is in the help file) and Hime's Custom Death States can do it.
For the first... I think you can use Yanfly's Buff&States Core and Battle Engine Core with Action Sequence Pack 1 to call a common event through Lunatic Code when the state ends without being removed...
[EDIT] Doesn't work...
Oh, just saw Fugama's answer.
Or ALL actors?
For the second, both Yanfly's State Categories (even if not mentioned in the page, it is in the help file) and Hime's Custom Death States can do it.
For the first... I think you can use Yanfly's Buff&States Core and Battle Engine Core with Action Sequence Pack 1 to call a common event through Lunatic Code when the state ends without being removed...
[EDIT] Doesn't work...
Oh, just saw Fugama's answer.
Yeah, with the yanfly buffs and states core you can do a setup that makes it so if it's removed by turns it's GO. And the notebox code for that can be as simple as this
Code:
<Custom Leave Effect>
SceneManager.goto(Scene_Gameover);
</custom leave effect>
Thank you so much, both of you! I was about to go to bed, so I'll test the code as soon as I get up.
Edit: Sorry for the late reply. The code works perfectly! Thank you soooooo much! 😀
Edit: Sorry for the late reply. The code works perfectly! Thank you soooooo much! 😀
Original thread: https://forums.rpgmakerweb.com/threads/state-causing-a-game-over.70888/