Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-10-09 21:22:46

Sawakita
Administrator
Registered: 2010-10-16
Post 211/365

R/B Outside Battle Moves

================================================
OUTSIDE BATTLE MOVES
================================================

Moves that can be used outside battle are stored in a table at $7823 (3 bytes per move).

1st byte:
it's the move ID.

2nd byte:
it's an ID for calculating the move's names (which are stored at $778d along with the words STATS, SWITCH and CANCEL). This ID is also used to find the pointer to the correct effect of the move, outside battle; this pointer table is located at $1317c.

3rd byte:
it's the x-coordinate that affects the width of the bottom-right menu (inside POKEMON menu). If the move's name is equal or less than 6, the value is $0C, else the formula to calculate the correct value is  $12 - move's length.

This is a dump of the table at $7823:

0F 01 0C
13 02 0C
B4 03 0C
39 04 0C
46 05 0A
94 06 0C
5B 07 0C
64 08 0A
87 09 08
FF               ; end

This is a dump of the names table at $778D:

CUT           82 94 93 50
FLY           85 8B 98 50
[empty]       50
SURF          92 94 91 85 50
STRENGTH      92 93 91 84 8D 86 93 87 50
FLASH         85 8B 80 92 87 50
DIG           83 88 86 50
TELEPORT      93 84 8B 84 8F 8E 91 93 50
SOFTBOILED    92 8E 85 93 81 8E 88 8B 84 83 50

As you can see there's an unused entry (the 3rd one) which points to a move, whose ID was supposed to be B4. Too bad the name entry is null, and the pointer that should point to the routine of the move's behaviour outside battle is a copy of the next one so it's not clear what this entry was meant to be.

Last edited by Sawakita (2011-10-09 21:22:59)

Offline

#2 2011-10-09 23:05:09

290/703

Re: R/B Outside Battle Moves

Sawakita wrote:

As you can see there's an unused entry (the 3rd one) which points to a move, whose ID was supposed to be B4. Too bad the name entry is null, and the pointer that should point to the routine of the move's behaviour outside battle is a copy of the next one so it's not clear what this entry was meant to be.

There is some text at offset 0x80096: “Ground rose up somewhere!”

It is near “This requires STRENGTH to move!”; perhaps it was originally for a field move. I don’t recall it ever being used. There is a 17‐pointer to it at 0x24E0, but no pointer to that (but neither a pointer to the Strength text’s 17‐pointer, so I may have overlooked something).

#3 2011-10-10 02:09:45

Tauwasser
Member
Registered: 2010-10-16
Post 207/452

Re: R/B Outside Battle Moves

It's present in the Japanese v1.0 Red version as well. However, it does not point to another routine's code, it just points to the exit sub menu function instead.

The text does not seem to be referenced anywhere, however, most other texts in the same bank seem to be called from the table at 11:4A24 (US). It contains pointers to various strings (most of the early ones end up being ASM scripts). In the Japanese version, the text is also stored alongside other strings in bank 0 (which is rare, as usually the routines got their text right after them.) So this leads nowhere, either I guess.
The Japanese text is at 0x0F71 in Japanese v1.0 Red, 「どこかで じめんがもりあがった!」.

Also, I'm not sure that proximity to other text is actually a sign of this "Ground rose up somewhere!" having anything to do with this functionality! For instance, the Japanese texts are:

『!』 - "!"
『どこかで じめんがもりあがった!』 - "Ground rose up somewhere!"
『「かいりき」 で うごかせるかも……』 - "This could maybe be moved using “Strength”......"

However note while the order of the items is the same, the last sentence uses Japanese quotation marks, which aren't loaded in menus it seems. So this would rather indicate that the "Ground rose up somewhere!" text would also go in the overworld.

I guess this is just one more mystery that'll never get explained.

cYa,

Tauwasser

Offline

#4 2013-04-30 17:57:32

80C
Banned
Registered: 2013-03-16
Post 340/1,257

Re: R/B Outside Battle Moves

I'm interested in that unused outside battle move space, is there some way to restore that and create a new outside battle move?

[now only hypotesis]:
Would be great if that move could work as Rock Smash, the Rock may be simply a people event, the routine to make it disappear could be the same used in the hack Pokemon knife that makes disappear the people in front of the player (the only problem may be that move may work also as a "Trainer Smash").


I left this forum.

Offline

Board footer

Powered by FluxBB