The PokéCommunity Forums  

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

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 May 30th, 2019 (5:43 PM). Edited May 30th, 2019 by Cherubi420.
Cherubi420's Avatar
Cherubi420 Cherubi420 is offline
 
Join Date: Feb 2018
Posts: 5
i am trying to make a script that makes an npc trainer's team change depending on the starter on pokemon fire red. heres the script im trying to modify.

#dyn 0x740000
#org @begin
trainerbattle 0x0 0x001 0x0 @intro @defeat
msgbox @afterwards
callstd msg_normal
end
#org @intro
= I will crush you!!!

#org @defeat
= You crushed me[.]

#org @afterwards
= I can also say something after the battle
i am going to use 3 trainer ids:02 03 and 04
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 30th, 2019 (6:19 PM).
Child Amnesiac's Avatar
Child Amnesiac Child Amnesiac is offline
Ever changing
 
Join Date: Mar 2019
Location: Colorado
Age: 23
Gender: Male
Nature: Timid
Posts: 340
First off, I wouldn't recommend using the script templates from PKUSV. Use XSE instead.
Second off, I would write a script like this in XSE, and use it through a script tile

Code:
#dynamic 0x800000

#org @start
lock
msgbox @t1 0x6
compare 0x4011 0x1
if 0x1 call @battlex
compare 0x4011 0x2
if 0x1 call @battley
compare 4011 0x3
if 0x1 call @battlez
msgbox @t2 0x6
setvar 0x4012 0x1
release
end

#org #battlex
trainerbattle 0x3 0x1 0x0 @win
return

#org @battley
trainerbattle 0x3 0x2 0x0 @win
return

#org @battlez
trainerbattle 0x3 0x3 0x0 @win
return

#org @t1
= yourtext

#org @t2
= yourtext
What happens here is you set the variable 0x4011 to a value when you pick your starter, so you can set up a battle, rival or otherwise that depends on that var. The var chooses the battle based on the starter, for example 1= grass chosen, 2= fire chosen 3= water chosen. It's difficult to explain, but it's the way I'd do it.

Third off, check out this tutorial series: Link it's how I learned how to ROM hack.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 30th, 2019 (6:23 PM). Edited May 30th, 2019 by DrFuji.
Cherubi420's Avatar
Cherubi420 Cherubi420 is offline
 
Join Date: Feb 2018
Posts: 5
I will watch the videos as soon as I get new headphones. Hopefully that will be soon

I downloaded XSE and it doesnt have a script generator so theres no point in me using it because i know nothing about making scripts

I think i need to make the sample scripts. Ill try to find some
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old June 2nd, 2019 (6:08 AM).
Scarlet D.'s Avatar
Scarlet D. Scarlet D. is offline
The Eternal
 
Join Date: Dec 2015
Location: Greece
Gender: Male
Nature: Adamant
Posts: 66
I know I am offtopic but You have to start from somewhere though, trusting Pokesvui to generate your script seems enough at first but soon enough you will find out that you are very limited to what you can do. I'd suggest you starting with this:

https://www.pokecommunity.com/showthread.php?t=164276

it is a very trusty tutorial about XSE, easy to understand and quick on learning
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

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:19 AM.