Dead upon reloading

When I am on the map and I have an event, say flames that reduce character health until they die when they reload a game, they die instantly again and have to reload again. This happens, even if they reload another save, such as if I died and had been last saved on slot 1  and then loaded a slot 5 that's totally elsewhere in the game. This happens on events that seemingly reduce the player health like this, it's not triggered by being killed by say lava damage floor effect or any such hazards or dying from battles.
Under what circumstances does your event decrease the player's HP? Are you using any scripts? Could you post a screenshot of your event?
Under what circumstances does your event decrease the player's HP? Are you using any scripts? Could you post a screenshot of your event?
It happens on every event that decreaeses the player's HP, whatever it be a flame you have to move away from or an object that will poke against you to lower your hp by set numbers. I use very many scripts but if it would be anything, I'd probably guess that it'd be Schala battle system by Moghunter since that thing has given me problems with many things in the past. Here's one event that takes your hp away until you move away from the spot.

image.png
Are you saying that once you activate this event and it causes you to die and gameover, if you load a completely different save file, where you are nowhere near this event and it is not active, your player is still dead, even though they were not dead when you made that save file?


Definitely sounds like a script thing, as actor info should be completely refreshed when you load a saved game. Going to move this to Script Support. You may need to post links to your suspected script.
Are you saying that once you activate this event and it causes you to die and gameover, if you load a completely different save file, where you are nowhere near this event and it is not active, your player is still dead, even though they were not dead when you made that save file?

Definitely sounds like a script thing, as actor info should be completely refreshed when you load a saved game. Going to move this to Script Support. You may need to post links to your suspected script.
Yeah I think I've seen that happen.

https://atelierrgss.wordpress.com/rgss3-schala-battle-system/
I'm just wondering... Why did you put a loop command into a parallel event?


Parallel events are looping by default, so unless you want to make a condition like "do this until this happens" or similar in them, you don't really need any loops in them.


Also your event takes away 900/1800 HP per second. Do you really want that high HP damage? o.o
Sixth has a point. Death would come swiftly to the actor affected by that event (unless they have tons of HP). If that event happens to take effect at an undesired time, it would probably cause an instant game over should Alice happen to be the only member in your party. If you want to test this, add another actor to your starting party, open your menu, and see if Alice is dead.

And yeah, you should definitely remove that loop.
Fine but that doesn't explain the death from touching a rock that reduces your health.
That rock event got the same event commands as the one you showed us? If not, can we see it?


And what other scripts are you using? I tried the event above in the Schala demo, but it did not happen for me. Either I missed something, or it is another script which causes this to happen.
rock.png


There's also insta kill flames that put you into Game Over at once that does the same thing.

I have very many scripts like over 50+, do you really need every one, like those that handle items and such too?
I don't really need any of them. You do.


You need to find which script is causing the issue before you can even start to work on a fix.


Disable the scripts one by one, until the issue disappears. When that happens, you will know which script causes it, and you can report that here.


Fixing the issue is usually the easier part of bugfixing. Finding the source, on the other hand, needs some time, especially if there are a lot of custom scripts in the project.
Just as I figured, the problem was in Schala.

Specifically, it seems to be this snippet that prevents the game from freezing up if you die from floor damage.

class Game_Actor < Game_Battler
 alias mog_schala_execute_floor_damage  execute_floor_damage
 def execute_floor_damage
     mog_schala_execute_floor_damage
     SceneManager.goto(Scene_Gameover) if $game_party.all_dead?
 end
end

Obviously, I need this or else the player is stuck in an enternal loop after death from floor damage but is there a better way to handle this then?
That snippet doesn't explain the things you described.


$game_party is saved and stored separately in each of your save files, they are different $game_party instances.


This means that the check which throws you on the game over screen is based on these instances, so you should not get the game over screen when you load a different save file after triggering the game over screen in another saved game.


I have put that snippet into the Schala demo, and I got no issues with it, so that is definitely not the source of the issue.
All that bit of code does is force a game over when all of your party members are inflicted with the death state.

If your game is freezing up without it, then you probably have a loop somewhere that is consistently reducing the HP of your party.

Based on the events that you've shown us (likely doing more damage than you intended), this appears to be an event-related issue.

Change your starting location to a map with no events on it, and start a 'new' game. If your player doesn't die, move them to one of the problem locations and start a 'new' game again. If the player dies again as described above, then you should take a careful look at all of your events.
All that bit of code does is force a game over when all of your party members are inflicted with the death state.

If your game is freezing up without it, then you probably have a loop somewhere that is consistently reducing the HP of your party.

Based on the events that you've shown us (likely doing more damage than you intended), this appears to be an event-related issue.

Change your starting location to a map with no events on it, and start a 'new' game. If your player doesn't die, move them to one of the problem locations and start a 'new' game again. If the player dies again as described above, then you should take a careful look at all of your events.
No it's not an event issue, without that code and using the Schala system, your character becomes transparent and starts walking forever when killed by floor damage, such as lava. Removing this snippet, I was able to die normally from the fire hazard and not have it reset after I continued.
Bump.
Bump
Bump
Bump
Bump, with a love. (Still need help)

Original thread: https://forums.rpgmakerweb.com/threads/dead-upon-reloading.51216/