The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script How can I edit this ?

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 25th, 2017 (3:23 AM).
GabuLePujadas GabuLePujadas is offline
 
Join Date: Apr 2016
Gender: Male
Posts: 8
Hey everyone, I started to edit my ROM with Spiky's DS Map Editor 1.8.1 (Pokémon Soul Silver)


I have no errors but I would like to know how to modify this part of the script :
Quote:
PlayFanfare 0x5DC
LockAll
FacePlayer
PlayCry 0x82 0x0
Message 0x0
WaitCry
CloseMessageOnKeyPress
SetFlag 0xA4
LegendaryBattle 0x82 0x1E 0x100
ClearFlag 0xA4
CheckLost 0x800C
If 0x800C 0x0
CompareLastResultJump EQUAL Function_#1
02AB 0x4002
If 0x4002 0x3
CompareLastResultJump EQUAL Function_#2
If 0x4002 0x4
CompareLastResultCall EQUAL Function_#3
CheckFlag 0xC9
CompareLastResultJump EQUAL Function_#4
0034
SetVar 0x8004 0x1DE
SetVar 0x8005 0x1
GiveItem 0x8004 0x8005 0x800C
If 0x800C 0x0
CompareLastResultJump EQUAL Function_#5
CallStandard 0xF1 0x7
SetFlag 0xC9
ClearFlag 0x28A
CloseMessageOnKeyPress
ReleaseAll
End

I would like to modify this "Legendary Battle" to change the level of the Gyarados or even change the Pokémon

I do not know if I should post it here but I need to know if I have to use some software to know the data to modify (here: 0x82 0x1E 0x100)

Unfortunately, I can not find any tutorial to edit scripts like this with Spiky's DS Map Editor

I thank you for your help or to redirect me to a solution that I have not seen
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 25th, 2017 (5:38 PM).
Buffel Saft's Avatar
Buffel Saft Buffel Saft is offline
 
Join Date: Sep 2013
Gender: Male
Posts: 1,550
So the "0x" prefix there means those numbers are in hexadecimal, so you'll probably want to convert them to decimal first. If you're on windows you can do that using the built-in calculator set to programmer mode.

For example, in your script, 0x82 = 130 which is Gyarados's species/Pokedex/index number. Changing this will change which Pokemon the script spawns. 0x1E = 30, which is the Pokemon's level. I'm not sure what the last byte does; it might be what makes it shiny. Try changing it and see what happens to be sure.

You can just change those numbers directly using SDSME, though you might need to mash the save button a bit before it actually saves the changes; it's pretty buggy.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 30th, 2017 (3:57 AM).
GabuLePujadas GabuLePujadas is offline
 
Join Date: Apr 2016
Gender: Male
Posts: 8
By the way, when I modify the script and save it, then I go back to script #1 (script #2 is the one I'm editing) and I go back to script #2 : nothing was saved. The worst is when I change the script (from n°938 to n°939 for example) : all the scripts of the n°938 have been erased
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:17 AM.