The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Trainers just resets

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old June 26th, 2021 (6:48 AM).
Naglu Naglu is offline
 
Join Date: Jan 2021
Posts: 49
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
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 29th, 2021 (2:05 AM).
Anon822 Anon822 is offline
 
Join Date: Nov 2017
Posts: 326
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.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 1st, 2021 (6:16 AM).
Naglu Naglu is offline
 
Join Date: Jan 2021
Posts: 49
Quote:
Originally Posted by Anon822 View Post
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
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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