I'm going out on a totally liberal limb here and considering making death obsolete in LoG03. When you die, what basically happens is that you go to Hell and must complete some seemingly ridiculously difficult task supposedly to give you another chance at life. If you complete this task, then you're taken back to the vicinity of where you died.
I haven't put down any code yet or tried this in-game, but if your health hits 0, and the flag is set wherein system variables aren't reset on death, can I override the "Hit fire to respawn" function and merely set the player's health back to 100 and teleport him? I guess the system variables flag wouldn't even be necessary at that point.
If that wouldn't work, then could I have the flag set and set a variable saying the player's standing in the afterlife, so that shortly after he respawned (on 'startup', I suppose), he'd be teleported to a Hell ghost?
Once you've completed one of the tasks, you'd then be teleported to a certain ghost position specific for your region. (If the player fell into a pit of lava and dropped a ghost template on death, you'd keep respawning in the lava.)
If you die thrice, your fourth death (as recorded in a global cog counter that wouldn't reset due to the non-variable resetting death flag) would set that other flag that crashes MotS (but in a recoverable fashion, that is, you can still go to the menu). So you have three extra lives, so to speak, but if you use those you're done.
Any ideas?
I haven't put down any code yet or tried this in-game, but if your health hits 0, and the flag is set wherein system variables aren't reset on death, can I override the "Hit fire to respawn" function and merely set the player's health back to 100 and teleport him? I guess the system variables flag wouldn't even be necessary at that point.
If that wouldn't work, then could I have the flag set and set a variable saying the player's standing in the afterlife, so that shortly after he respawned (on 'startup', I suppose), he'd be teleported to a Hell ghost?
Once you've completed one of the tasks, you'd then be teleported to a certain ghost position specific for your region. (If the player fell into a pit of lava and dropped a ghost template on death, you'd keep respawning in the lava.)
If you die thrice, your fourth death (as recorded in a global cog counter that wouldn't reset due to the non-variable resetting death flag) would set that other flag that crashes MotS (but in a recoverable fashion, that is, you can still go to the menu). So you have three extra lives, so to speak, but if you use those you're done.
Any ideas?