The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Script Boxes in 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 July 26th, 2015 (7:50 PM).
Sayuri's Avatar
Sayuri Sayuri is offline
人生忘れられた
 
Join Date: Jun 2015
Location: Boston, MA
Age: 24
Gender: Female
Nature: Lonely
Posts: 276
I'm relatively new to ROM hacking and I have a basic understanding of scripting, but can find very few tutorials on using script boxes.
I've tried several tutorials and they've made my game freeze up. Can anyone explain to me how to use them correctly?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 26th, 2015 (8:01 PM). Edited July 26th, 2015 by Danny0317.
Danny0317's Avatar
Danny0317 Danny0317 is offline
Fluorite's back, brah
 
Join Date: Jun 2013
Age: 23
Gender: Male
Nature: Hasty
Posts: 1,067
You need a lot more detail than that. The script? What Advance map are you using? What XSE are you using?
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 26th, 2015 (10:47 PM). Edited July 26th, 2015 by Sayuri.
Sayuri's Avatar
Sayuri Sayuri is offline
人生忘れられた
 
Join Date: Jun 2015
Location: Boston, MA
Age: 24
Gender: Female
Nature: Lonely
Posts: 276
Sorry. I'm using Advance Map 1.95 and I have XSE 1.11, although I mainly use Notepad with Poket Script, which probably isn't the best idea at this point.

#org $script
jingle
message $1
$1 1 = test
boxset 6
clearflag 0x1220
showsprite 1
applymovement 1 $walk
$walk 1 ; #binary 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0x09 0xFE
pausemove 0
applymovement 0xFF $look
$look 1 ; #binary 0x00 0xFE
pausemove 0
message $2
$2 1 = still a test
boxset 6
applymovement 1 $walk2
$walk2 1 ; #binary 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0xFE
pausemove 0
removesprite 1
setflag 0x1220
setvar 0x6000 0x0001
release
end

After the first message my game freezes up completely and I'm not sure what I'm doing wrong, with my limited knowledge.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old July 27th, 2015 (12:38 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
Don't use A-Map 1.95. It's buggy. Use A-Map 1.92 instead.
And I suggest you use XSE instead of Notepad+PokéScript. I have a basic scripting tutorial for XSE if you want to read it.
__________________

Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old July 27th, 2015 (12:58 AM).
Danny0317's Avatar
Danny0317 Danny0317 is offline
Fluorite's back, brah
 
Join Date: Jun 2013
Age: 23
Gender: Male
Nature: Hasty
Posts: 1,067
Quote:
Originally Posted by destinedjagold View Post
Don't use A-Map 1.95. It's buggy. Use A-Map 1.92 instead.
And I suggest you use XSE instead of Notepad+PokéScript. I have a basic scripting tutorial for XSE if you want to read it.
I use 1.95 and nothing has happened to my ROM. As long as you edit the ini and make it not automatically save to an offset, then you should be fine.
__________________
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old July 27th, 2015 (3:19 AM).
Sayuri's Avatar
Sayuri Sayuri is offline
人生忘れられた
 
Join Date: Jun 2015
Location: Boston, MA
Age: 24
Gender: Female
Nature: Lonely
Posts: 276
Thank you for the links. I'll try XSE and see if that helps the problem. Is there anything blatantly wrong with my script, though?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old July 27th, 2015 (3:37 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
Quote:
Originally Posted by DogPolice View Post
Thank you for the links. I'll try XSE and see if that helps the problem. Is there anything blatantly wrong with my script, though?
Yes, the flags and variables you're using are unsafe, although that likely isn't the cause of your issue. While this document mostly focuses on FireRed, the principles largely apply to Emerald too, so I highly recommend reading it.
__________________
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old July 27th, 2015 (4:41 AM).
Sayuri's Avatar
Sayuri Sayuri is offline
人生忘れられた
 
Join Date: Jun 2015
Location: Boston, MA
Age: 24
Gender: Female
Nature: Lonely
Posts: 276
Thanks for the link, that helped me understand a bit better. Somewhat offtopic, but are there any other scripting tutorials for XSE that would be of use to a beginner?
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old July 27th, 2015 (5:40 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is online now
 
Join Date: Nov 2007
Location: Leicester, UK
Age: 25
Posts: 5,251
Quote:
Originally Posted by DogPolice View Post
Thanks for the link, that helped me understand a bit better. Somewhat offtopic, but are there any other scripting tutorials for XSE that would be of use to a beginner?
diegoisawesome's tutorial is the most comprehensive out there. I'd recommend reading these threads:

http://www.pokecommunity.com/showthread.php?t=341758
http://www.pokecommunity.com/showthread.php?t=344685

to get you started, and I'd also recommend cosarara's Red Alien script editor over XSE, if only because it supports alternative scripting syntaxes, and is being actively updated unlike XSE.
__________________
Reply With Quote
  #10   Link to this post, but load the entire thread.  
Old July 27th, 2015 (8:54 AM).
Sayuri's Avatar
Sayuri Sayuri is offline
人生忘れられた
 
Join Date: Jun 2015
Location: Boston, MA
Age: 24
Gender: Female
Nature: Lonely
Posts: 276
Thank you very much, that's just what I needed. Very helpful.
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.