Jump to content

resource [HGSS] Adding new text for new trainers


Recommended Posts

When you add new trainers to fight against, there's usually no text associated with them while fighting.

The solution is found on narc a/0/5/7.

The file itself, without the header, is 6868 bytes long.

Each reference is 4 bytes long.

6868 / 4 = 1717 references.

Each of these references points to its corresponding message on text file 728 from narc a/0/2/7.

To add a new message on text file 728, use Spiky's DS Map Editor.

Format is TT TT MM PP

TT TT is the Trainer slot number (little endian, as always).

MM is the condition for the text to display.

PP is the padding (always 00).

Conditions for the message to display (in hex):

Single Battle:

00 Trainer text upon noticing you or if you talk to him/her (overworld)

01 Trainer text if you defeat him/her (fight)

02 Trainer text after you defeated him/her (overworld)

0F Trainer text if he sends in his/her last conscious Pokémon (fight)

10 Trainer text if his/her last conscious Pokémon is on critical health (fight)

14 Trainer text if you lose or draw (fight)

Double Battle:

03 First trainer text upon noticing you or if you talk to him/her (overworld)

04 First trainer text if you defeat him/her (fight)

05 First trainer text after you defeated him/her (overworld)

06 First trainer text if you only have 1 conscious Pokémon before engaging the fight (overworld)

07 Second trainer text upon noticing you or if you talk to him/her (overworld)

08 Second trainer text if you defeat him/her (fight)

09 Second trainer text after you defeated him/her (overworld)

0A Second trainer text if you only have 1 conscious Pokémon before engaging the fight (overworld)

I seem to run into some problems though when appointing new Trainers:

_I only got condition 01 to work so far;

_0F, 10 and 14 just don't trigger at all, so there must be something else still…

To do:

Test the rest.

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...
  • 3 weeks later...
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...