The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Trainers just resets (https://www.pokecommunity.com/showthread.php?t=454531)

Naglu June 26th, 2021 6:48 AM

Trainers just resets
 
Hello everybody

i am making a firered hack and i am pretty much at the end of it, i am testing it out and correcting any minor error i might find but i encountered an issue i seem to have no idea how to resolve

i placed some trainers outside victory road on route 23, on the way where the npc asks you the gym badges
everything works fine, both battles and sentences
everything is ok untill you get to victory road and (for any reason) you white out
when you do so, the first 3 trainers just resets and fights you again
but only the first 3 while all the others behave normally just sitting there already defeated

this is pretty strange since it NEVER happened in any other point in the game
i made those trainers the same as every single other trainer in the whole ROM and they reactivate only if you white out...

these are the lines for the three trainers (i changes only WHAT they say for...spoiler reasons :P)

Spoiler:
'---------------
#org 0x74125C
trainerbattle 0x0 0x2E5 0x0 0x8741273 0x87413AE
msgbox 0x8741438 MSG_NORMAL '"sentence"
end


'---------
' Strings
'---------
#org 0x741273
= sentence 1

#org 0x7413AE
= sentence 2

#org 0x741438
= sentence 3


Spoiler:
'---------------
#org 0x741449
trainerbattle 0x0 0x2E4 0x0 0x8741460 0x874149F
msgbox 0x87414A5 MSG_NORMAL '"..."
end


'---------
' Strings
'---------
#org 0x741460
= sentence 1

#org 0x74149F
= sentence 2

#org 0x7414A5
= ...


Spoiler:
'---------------
#org 0x7414A9
trainerbattle 0x0 0x2E3 0x0 0x87414C0 0x8741519
msgbox 0x874152D MSG_NORMAL '"sentence 3"
end


'---------
' Strings
'---------
#org 0x7414C0
= sentence 1

#org 0x741519
= sentence 2

#org 0x74152D
= sentence 3


i'll add one of the other trainers present on the same route that works fine and don't reset, only to show that it's coded the same

Spoiler:
'---------------
#org 0x7405B9
trainerbattle 0x0 0x2E2 0x0 0x87405D0 0x87405E6
msgbox 0x87405F6 MSG_NORMAL '"sentence"
end


'---------
' Strings
'---------
#org 0x7405D0
= Sentence 1

#org 0x7405E6
= sentence 2[.]

#org 0x7405F6
= sentence

Anon822 June 29th, 2021 2:05 AM

Trainer IDs 0x2E3-0x2E5 belong to the champion rematches. This script runs when you white out (or reach hall of fame) and clears their trainer flags.

Naglu July 1st, 2021 6:16 AM

Quote:

Originally Posted by Anon822 (Post 10376475)
Trainer IDs 0x2E3-0x2E5 belong to the champion rematches. This script runs when you white out (or reach hall of fame) and clears their trainer flags.

That makes so much sense...thank you

i guess i just have to modify some other unused trainer ahah
thank you again


All times are GMT -8. The time now is 9:17 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.