You are not logged in.
I noticed that there are several ways a battle can end, the usual one being number one in the list but there is more.
1) If you win the match, the game returns to in-game engine. In case you lose, straight blackout.
2) If you win the match, the game returns to in-game engine. In case you lose, the opponent will return saying something and blackout follows it.
3) If you win the match, the game returns to in-game engine. In case you lose, the opponent will return saying something and return to in-game engine follows it.
*Start battle command (5E) writes 00 to RAM if battle is won and 01 if lost
How can you manage to make the endings number 2 and 3 occur then ?
2) Use command 1C 03 01 (for fight with possible withdraw) before the battle starts. This way, the opponent will say "if lost" text (which is normally set to 00 00) if the battle is lost.
3) This one is actually used in the trigger event in Cherrygrove where you battle against your rival the first time.
If you lose the match, you'll still get to continue playing anyways.
Just like before, use command 1C 03 01 before the battle and after command 5E, write 7A (completely reload the map) instead of usual 5F.
Last edited by Miksy91 (2011-07-23 13:02:52)
Ok,but are this number shown on a hex editor? How to change them,or they can't be changet.
These here are script codes.
When you get the hang of scripting and start scripting trainer battles from scratch, you can modify how the battles end by inputting "writecode" 0x3 0x1 (1C 03 01) along with "returnafterbattle" (5F) or "reloadmap" (7A) after the "startbattle" (5E) command.