- 136
- Posts
- 5
- Years
- Seen Dec 31, 2024
HOW TO FIX: I found out after testing: Trainer flags range from 0x500 to 0x830ish. So by math, Trainer 0x328 needs her flag cleared in order to "re−battle" her. And that flag is 0x828. Decrease the first digit by 5.
So, here's a script:
'---------------
#dynamic 0xE41C54
#org @start
trainerbattle 0x0 0x328 0x0 @Before @Defeat
msgbox @After 0x6
end
#org @Before
= Why do I have to walk all the\nway over here to challenge you?\lWhatever. Prepare for your demise!
#org @Defeat
= That was[.] Embarrassing.\nYou win, challenger.
#org @After
= Move along, child. There are\nmore people to battle.
But no matter what, if one talks to the trainer or get in her line of sight, she will not initiate a battle, and will act like they already defeated her, even through restarting the playthrough of the in−progress ROM hack. Even if the ROM developer use a green script tile and force a trainer battle that way, Trainer 0x328 just does not start the battle.
This is due to the flag 0x828 already being set. Use "clearflag 0x828" so that Trainer 0x328 battles you again.
Notes:
− Other Frontier superbosses did not have this problem, only Greta.
− You cannot copy the offset for Greta's team into a different trainer because Gen 3 Tools assumes you're looking for free space.
− Each trainer has a flag in the game's data, ranging from 0x500 to 0x830ish; they correspond to the ID of the trainer + 500.
Other Greta Script:
'---------------
#org 0xE4213C
checkflag 0x4AF
if 0x0 goto 0x8E4214F
msgbox 0x8E42202 MSG_NORMAL '"Move along, child. There are\nmore..."
end
'---------------
#org 0xE4214F
trainerbattle 0x0 0x329 0x0 0x8E42170 0x8E421D3
setflag 0x4AF
end
'---------
' Strings
'---------
#org 0xE42202
= Move along, child. There are\nmore people to battle.
#org 0xE42170
= Why do I have to walk all the\nway over here to challenge you?\lWhatever. Prepare for your demise!
#org 0xE421D3
= That was[.] Embarrassing.\nYou win, challenger.
Sorry for posting many threads in quick succession; I am new to ROM hacking.
So, here's a script:
Spoiler:
'---------------
#dynamic 0xE41C54
#org @start
trainerbattle 0x0 0x328 0x0 @Before @Defeat
msgbox @After 0x6
end
#org @Before
= Why do I have to walk all the\nway over here to challenge you?\lWhatever. Prepare for your demise!
#org @Defeat
= That was[.] Embarrassing.\nYou win, challenger.
#org @After
= Move along, child. There are\nmore people to battle.
But no matter what, if one talks to the trainer or get in her line of sight, she will not initiate a battle, and will act like they already defeated her, even through restarting the playthrough of the in−progress ROM hack. Even if the ROM developer use a green script tile and force a trainer battle that way, Trainer 0x328 just does not start the battle.
This is due to the flag 0x828 already being set. Use "clearflag 0x828" so that Trainer 0x328 battles you again.
Notes:
− Other Frontier superbosses did not have this problem, only Greta.
− You cannot copy the offset for Greta's team into a different trainer because Gen 3 Tools assumes you're looking for free space.
− Each trainer has a flag in the game's data, ranging from 0x500 to 0x830ish; they correspond to the ID of the trainer + 500.
Other Greta Script:
Spoiler:
'---------------
#org 0xE4213C
checkflag 0x4AF
if 0x0 goto 0x8E4214F
msgbox 0x8E42202 MSG_NORMAL '"Move along, child. There are\nmore..."
end
'---------------
#org 0xE4214F
trainerbattle 0x0 0x329 0x0 0x8E42170 0x8E421D3
setflag 0x4AF
end
'---------
' Strings
'---------
#org 0xE42202
= Move along, child. There are\nmore people to battle.
#org 0xE42170
= Why do I have to walk all the\nway over here to challenge you?\lWhatever. Prepare for your demise!
#org 0xE421D3
= That was[.] Embarrassing.\nYou win, challenger.
Sorry for posting many threads in quick succession; I am new to ROM hacking.
Last edited: