redriders180
Mastermind of Pokemon Glazed
- 314
- Posts
- 14
- Years
- Path of Victory, Tunod
- Seen Dec 17, 2016
Thanks, redriders!
Yeah, I know about all the pallets changing if you import another into it, which is why I would be pretty scared, haha.
The rematches are pretty complicated, but if this wasn't too much to ask, is there any chance you could show me a script from one of the rematchable trainers in FR and point out where the section you mentioned is located? So that way I can analyze it and teach myself how to use it effectively.
Well, unfortunately, a fair amount of a rematchable trainer is undercover, in ASM. All the rematched trainer scripts have this format:
Spoiler:
'---------------
#org 0x1A953D
trainerbattle 0x0 0x75 0x0 0x818371B 0x8183746 *\Like any trainerbattle script...
special2 LASTRESULT 0x39 *\checks if VS seeker was used
compare LASTRESULT 0x1
if 0x1 goto 0x81A9564 *\if it was, branch to the second script.
msgbox 0x818374F MSG_NORMAL *\if it wasn't, proceed as normal.
end
'---------------
#org 0x1A9564
trainerbattle 0x5 0x75 0x0 0x81C155D 0x8183746 *\see explanation below
msgbox 0x818374F MSG_NORMAL *\proceed as normal.
end
'---------
' Strings
'---------
#org 0x18371B
= That look you gave me[.]\nIt's so intriguing!
#org 0x183746
= Be nice!
#org 0x18374F
= You can avoid battles by not\nletting TRAINERS see you.
#org 0x1C155D
= That look you give me[.]\nIt intrigues me so!
Commented, if need be.
Now, when it branches, it appears to call the exact same trainer battle, but this is not the case. It calls one of the other trainerbattles associated with that base. The table mentioned in my previous post will "link" up to five trainers together. So the ASM will load one of those trainerbattles, and NOT the 0x75 trainerbattle. Each rematchable person has basically five trainerbattles associated with them.
Another thing I forgot to mention is that certain trainerbattles are "unlocked" after setting certain flags. For example, no trainers are rematchable until flag 0x292 is set. All rematchable trainers jump to the next level when flag 0x896 (Celadon City visited) is set. All rematchable trainers jump ANOTHER level when flag 0x897 (Fuschia City visited) is set. They jump a fourth level when flag 0x82C (E4 beaten) is set. And they reach their highest level once flag 0x844 (RSE Trading established) is set.