Well, there is a way I can check whether the action works or not. I put a watch on the battle_var variable, to keep track of it. As long as I keep walking against the entity, battle_var picks a random number every frame. And when battle_var equals 100, the function battle is called. But when the game loads using game_load and I walk against the entity, the engine does not pick a rondom number any more. And even when I set battle_var to 100 manually and then touch the entity, function battle does not run, but I'll check anyway.
I'm afraid it's not working. I replaced the body of function battle with:
When I use New Game, it works. But when I use Continue, thus loading using game_load, it doesn't work. As soon as I come near the entity, it give me an error message: Error E1535 - Crash in continu.