The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Battle NPC Battles

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 March 22nd, 2019 (6:03 PM).
KitsuV KitsuV is offline
 
Join Date: Aug 2018
Location: Canada
Age: 21
Gender: Male
Nature: Lonely
Posts: 79
Alright. so I've got most of my problems worked out so far, and now I want to actually progress:laugh-squinted: The next thing on my list is a battle, so I was wondering how to set up trainers using Hopeless Trainer Editor, and get them into AdvanceMap. I feel stupid asking all these questions, but that's what this forum is for, so I might as well make the most out of it!
__________________
Replacing human interaction with Pokemon since 2002!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:02 PM).
Karl's Avatar
Karl Karl is offline
Creator of Pokémon Darkfire
 
Join Date: Nov 2010
Location: London, UK
Gender: Male
Nature: Calm
Posts: 168
Go into HTE and select a trainer you want to edit.

For this example I'll choose the trainer in slot 270:

Spoiler:


Edit the Pokémon as desired and save it.

Then open up XSE and write a trainerbattle script. It should look something similar to this:

Spoiler:
Code:
#dynamic 0x800000

#org @start
trainerbattle 0x0 0x270 0x0 @see @win
msgbox @after 0x6
end

#org @see
= Aha! I've been waiting for someone to\nshow up for a while. This'll be fun!

#org @win
= I can't believe I thought this was a\ngood idea\hb0

#org @after
= You're way too strong for us\hb0\nAim high!


As you can see after the trainerbattle command I have specified which trainer (270) is needed.

Compile the script and assign an NPC in AdvanceMap the offset value. Also, check the trainer box and set a view radius in the right-hand column.

Providing you've done everything correctly, the battle will take place!

You can find more information on trainer battles in this guide.
__________________

Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:11 PM).
KitsuV KitsuV is offline
 
Join Date: Aug 2018
Location: Canada
Age: 21
Gender: Male
Nature: Lonely
Posts: 79
Quote:
Originally Posted by Synonym View Post
Go into HTE and select a trainer you want to edit.

For this example I'll choose the trainer in slot 270:

Spoiler:


Edit the Pokémon as desired and save it.

Then open up XSE and write a trainerbattle script. It should look something similar to this:

Spoiler:
Code:
#dynamic 0x800000

#org @start
trainerbattle 0x0 0x270 0x0 @see @win
msgbox @after 0x6
end

#org @see
= Aha! I've been waiting for someone to\nshow up for a while. This'll be fun!

#org @win
= I can't believe I thought this was a\ngood idea\hb0

#org @after
= You're way too strong for us\hb0\nAim high!


As you can see after the trainerbattle command I have specified which trainer (270) is needed.

Compile the script and assign an NPC in AdvanceMap the offset value. Also, check the trainer box and set a view radius in the right-hand column.

Providing you've done everything correctly, the battle will take place!

You can find more information on trainer battles in this guide.
Alright. So another problem. When I try to open my ROM in HTE, I get the error message: "ROM Code {temp.Code} is not supported!" It does this with every ROM I have on my computer, so it's not just the ones I've been working on. Am I doing something weird?
__________________
Replacing human interaction with Pokemon since 2002!
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:14 PM).
KitsuV KitsuV is offline
 
Join Date: Aug 2018
Location: Canada
Age: 21
Gender: Male
Nature: Lonely
Posts: 79
And when I don't get that message, I get an "unhandled exception" error instead, eve on clean ROMS
__________________
Replacing human interaction with Pokemon since 2002!
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:20 PM).
Ace Trainer Slash's Avatar
Ace Trainer Slash Ace Trainer Slash is offline
If you give me about two hours, I can make scripts without a guide!
 
Join Date: Jun 2018
Location: Australia.
Age: 20
Gender: Male
Nature: Jolly
Posts: 235
Have you tried Advanced Trainer Editor, or G3T for editing battles? Those are the ones I usually use to edit battles, and they work like a charm. :)

And I'm sure any edited trainer with those programs will work in conjunction to the script for a trainer battle posted by Synonym. :)

Hope this helps!
__________________
I run Dedenne, and I don't regret it one bit!
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:30 PM).
KitsuV KitsuV is offline
 
Join Date: Aug 2018
Location: Canada
Age: 21
Gender: Male
Nature: Lonely
Posts: 79
Quote:
Originally Posted by Ace Trainer Slash View Post
Have you tried Advanced Trainer Editor, or G3T for editing battles? Those are the ones I usually use to edit battles, and they work like a charm. :)

And I'm sure any edited trainer with those programs will work in conjunction to the script for a trainer battle posted by Synonym. :)

Hope this helps!
I would have tried G3T first, but my computer seems to struggle with opening .rar files, and I can't find a zip version of the download. And I haven't seen Advanced Trainer Editor yet
__________________
Replacing human interaction with Pokemon since 2002!
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:32 PM).
Karl's Avatar
Karl Karl is offline
Creator of Pokémon Darkfire
 
Join Date: Nov 2010
Location: London, UK
Gender: Male
Nature: Calm
Posts: 168
Quote:
Originally Posted by KitsuV View Post
Alright. So another problem. When I try to open my ROM in HTE, I get the error message: "ROM Code {temp.Code} is not supported!" It does this with every ROM I have on my computer, so it's not just the ones I've been working on. Am I doing something weird?
I had the same issue before. I downloaded the latest .NET Framework and it solved the error for me.
__________________

Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:35 PM).
KitsuV KitsuV is offline
 
Join Date: Aug 2018
Location: Canada
Age: 21
Gender: Male
Nature: Lonely
Posts: 79
Quote:
Originally Posted by Synonym View Post
I had the same issue before. I downloaded the latest .NET Framework and it solved the error for me.
Alright. I'm kinda dumb, so where can I find the newest .NET framework then? Hopefully it works out fine
__________________
Replacing human interaction with Pokemon since 2002!
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:40 PM).
Ace Trainer Slash's Avatar
Ace Trainer Slash Ace Trainer Slash is offline
If you give me about two hours, I can make scripts without a guide!
 
Join Date: Jun 2018
Location: Australia.
Age: 20
Gender: Male
Nature: Jolly
Posts: 235
Quote:
Originally Posted by KitsuV View Post
I would have tried G3T first, but my computer seems to struggle with opening .rar files, and I can't find a zip version of the download. And I haven't seen Advanced Trainer Editor yet
With .rar files, it's required you use WinRAR to extract the file.

I'm not sure, however, where I can find a link to Advanced Trainer Editor, that's doesn't seem to be a virus. I've checked the official page of it on Pokecommunity, but the link is down, I downloaded it ages ago, but I'm not sure where.
__________________
I run Dedenne, and I don't regret it one bit!
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:42 PM).
Karl's Avatar
Karl Karl is offline
Creator of Pokémon Darkfire
 
Join Date: Nov 2010
Location: London, UK
Gender: Male
Nature: Calm
Posts: 168
Quote:
Originally Posted by KitsuV View Post
Alright. I'm kinda dumb, so where can I find the newest .NET framework then? Hopefully it works out fine
Lol. Google.
__________________

Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old March 22nd, 2019 (8:44 PM).
KitsuV KitsuV is offline
 
Join Date: Aug 2018
Location: Canada
Age: 21
Gender: Male
Nature: Lonely
Posts: 79
Quote:
Originally Posted by Synonym View Post
Lol. Google.
Alright, that was not the answer lol
I tried, and it says I already have the latest version, so it's a different problem with me
__________________
Replacing human interaction with Pokemon since 2002!
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:13 AM.