I want to edit the death script so when you get a game over it sends you back to the nearest place you healed at but only restores 1HP and 1PP to all your pokemon.
How would I go about doing this?
ASM is your answer. :P It can't be done with a script.