Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-07-23 13:02:25

Miksy91
Member
Registered: 2010-10-16
Post 476/2,339

Battle endings

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)

Offline

#2 2013-07-24 10:57:06

LateNightHacker
Member
From: Ruins of alph
Registered: 2013-07-01
Post 29/153

Re: Battle endings

Well this comes to use! thanks Miksy91!


I Support
Pokemon Grape/
Pokemon Gem/Pokemon Dark Energy

▒█░░░ ▀█▀ ▒█░▄▀ ▒█▀▀▀   ░█▀▀█   ▒█▀▀█ ▒█▀▀▀█ ▒█▀▀▀  ▒█▀▀▀
▒█░░░ ▒█░ ▒█▀▄░ ▒█▀▀▀   ▒█▄▄█   ▒█▀▀▄ ▒█░░▒█ ░▀▀▀▄   ░▀▀▀▄
▒█▄▄█ ▄█▄ ▒█░▒█ ▒█▄▄▄   ▒█░▒█   ▒█▄▄█ ▒█▄▄▄█ ▒█▄▄▄█▒█▄▄▄█

Offline

#3 2013-07-24 13:09:53

Pokemon_Master
Member
From: Eastern Kingdom of Mikado
Registered: 2013-05-18
Post 17/951
Website

Re: Battle endings

Ok,but are this number shown on a hex editor? How to change them,or they can't be changet.

Offline

#4 2013-07-24 13:16:17

Miksy91
Member
Registered: 2010-10-16
Post 1,839/2,339

Re: Battle endings

pokemon_master wrote:

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.

Offline

#5 2013-07-24 13:28:11

Pokemon_Master
Member
From: Eastern Kingdom of Mikado
Registered: 2013-05-18
Post 19/951
Website

Re: Battle endings

Thanks,but in wich program can i insert the codes? (Sorry i'm not so good at this)

Offline

#6 2013-07-24 14:12:18

Miksy91
Member
Registered: 2010-10-16
Post 1,840/2,339

Re: Battle endings

Just keep watching those video tutorials of mine before trying to put this information in use.

You should understand once you get the hang of parts from 1 to 5 or so.

Offline

Board footer

Powered by FluxBB