The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Wild Pokemon Script in Pokemon Emerald

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 12th, 2014 (2:30 AM).
yoshieatseggs yoshieatseggs is offline
 
Join Date: Jun 2014
Gender: Male
Posts: 7
My hack is going quite well. However, when I create a wild Pokemon battle script, compile it, then try it in my game, my game will alwats crash :/


Here are some of the scripts I've tried:


1. This one from Foullump's YouTube tutorial:


#org $script
lock
faceplayer
cry 0xA1 79
#raw 0x33
pause 0x30
message $cry
$cry 1 = Slowpoke!
boxset 6
wildbattle 79 50 0
pause 0x70
fadescreen 1
removesprite 0x800F
setflag 0x1211
pause 0x10
fadescreen 0
release
end


2. This one from diegoisawesome's tutorial:


#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0x6 0x1E 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= CHARIZARD: Raaarrgghh!


(I think I should mention that my compile button in XSE (gear icon) is greyed out so I couldn't compile this one with XSE... Any suggestions on this?)


3. I used PKSV-UI to generate a script for me, but after I compiled it with the same program and tried it, my game crashed.


So... if someone could provide me with a sample script that will work in Pokemon Emerald, that would be awesome!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 12th, 2014 (2:50 AM).
Logan's Avatar
Logan Logan is offline
 
Join Date: Nov 2008
Location: Salisbury, England
Age: 28
Gender: Male
Nature: Sassy
Posts: 10,414
To compile the script in XSE you need to open your ROM in XSE first.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old June 12th, 2014 (4:20 AM).
yoshieatseggs yoshieatseggs is offline
 
Join Date: Jun 2014
Gender: Male
Posts: 7
Thanks for the response. I opened Emerald with XSE. I tried to compile the following script for a Clefairy, but got a "unknown keyword 'lock' at line 4":


#dynamic 0x800000


#org @start
lock
cry 35 1
pause 0x20
wildbattle 35 5 0
release
end
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old June 12th, 2014 (4:44 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
That sounds like you're using an outdated version of XSE. Click here to download the latest version, 1.1.1.
__________________
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old June 14th, 2014 (4:41 AM).
yoshieatseggs yoshieatseggs is offline
 
Join Date: Jun 2014
Gender: Male
Posts: 7
I downloaded the version above and tried to compile the script. This time, I got a message on the bottom right-hand corner stating "script compiled in 0.032 seconds". However, nothing else happened. Isn't there a window that is supposed to pop up or something?
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old June 14th, 2014 (7:35 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
You can click the "View log" button, but when you compiled, XSE copied the offset to your clipboard. If you click the "View log" button, on the tool bar (it looks like a notepad IIRC), then a log will come up from which you can manually copy and paste the offset.
__________________
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old June 15th, 2014 (5:20 AM).
yoshieatseggs yoshieatseggs is offline
 
Join Date: Jun 2014
Gender: Male
Posts: 7
Thanks, that has seem to do the trick. Now I just need to create scripts for all legendaries with a flag that makes it appear after the Pokémon League is defeated...


I have a couple more questions, though. If you don't mind...


1. Are there any Gen 6 pokemon sprites (specifically the legendaries) that are all ready to be imported without the need for indexing? Since I successfully created the Fairy type in Emerald, it would be cool to create a Xeneras/ Yveltal/ Zygarde plot...


2. Is there a move editor in Pokémon Emerald (that works), that can change a move's type, power, accuracy and effects?
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old June 15th, 2014 (6:41 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
1. This is the thread you're looking for, although it is a work-in-progress so if the sprite you want isn't there I'm afraid you're going to have to make one yourself or resize a pre-existing sprite (though remember to get permission from the creator and credit them).

2. I believe the Move Editor in Kurapika's Gen 3 Tools is compatible with Emerald.
__________________
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old June 15th, 2014 (7:50 AM).
yoshieatseggs yoshieatseggs is offline
 
Join Date: Jun 2014
Gender: Male
Posts: 7
Thanks for the reply. Those tools are definitely useful! I have one more situation that I would like to inquire about, if you don't mind.


I'm in Advance Map, and editing Route 104 (with Mr. Briney's house and the berry building). If I change the name of the route, it changes the name of the two buildings on the route to whatever I change it to.


The issue is I want to turn Mr. Briney's house into its own special building, but when I change the name, it changes the name of the route. Is there a method around this?
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old June 15th, 2014 (8:03 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
Yes, you're going to have to change the map header of either the interior map or the exterior map, though I suggest changing the interior one because of world map shenanigans. Basically, use the dropdown list in the Header tab on the interior map and select one of the Kanto maps, or even the unusued Sevii Isle maps, and change the name of that. As it stands there is no way to add new map headers without unwanted side-effects / drawbacks so this is the most preferable option.
__________________
Reply With Quote
  #11   Link to this post, but load the entire thread.  
Old June 15th, 2014 (10:17 AM).
yoshieatseggs yoshieatseggs is offline
 
Join Date: Jun 2014
Gender: Male
Posts: 7
Okay fair enough. I'll repost if I have any other questions. Thanks 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

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