The PokéCommunity Forums  

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

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 15th, 2017 (9:23 PM).
Far Way Far Way is offline
 
Join Date: Nov 2015
Location: North Carolina
Gender: Male
Nature: Calm
Posts: 86
I am trying to make a script that involves the player's mother giving him the running shoes. That script involves movements.

Script:
Spoiler:
#dynamic 0x801100

#org @start
checkflag 0x800
if 0x1 goto @done
applymovement 0xFF @move
waitmovement 0x0
applymovement 0x0 @move2
waitmovement 0x0
msgbox @msg1 0x6
special 0x171
msgbox @msg2 0x6
applymovement 0x0 @move3
waitmovement 0x0
setflag 0x800
release
end

#org @move
#raw 0x62
#raw 0x0
#raw 0xFE

#org @move2
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @move3
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @done
release
end

#org @msg1
= [player]!\pYou left your shoes at home!

#org @msg2
= What's a good TRAINER without\ngood shoes? I'd have hated to\lgive away your Nikes.\pWell, back home I go!


The script freezes on the spot. I was reading diegoisawesome's XSE tutorial, and it said how to fix the freezing, but instead of doing so with text, it did so with dead links to images, preventing me from finding an answer there, so I ask here.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 15th, 2017 (11:25 PM).
Bladecraft's Avatar
Bladecraft Bladecraft is offline
It's written "Bladecraft" on my forehead.
 
Join Date: Feb 2017
Gender: Male
Nature: Calm
Posts: 83
Quote:
Originally Posted by Far Way View Post
I am trying to make a script that involves the player's mother giving him the running shoes. That script involves movements.

Script:
Spoiler:
#dynamic 0x801100

#org @start
checkflag 0x800
if 0x1 goto @done
applymovement 0xFF @move
waitmovement 0x0
applymovement 0x0 @move2
waitmovement 0x0
msgbox @msg1 0x6
special 0x171
msgbox @msg2 0x6
applymovement 0x0 @move3
waitmovement 0x0
setflag 0x800
release
end

#org @move
#raw 0x62
#raw 0x0
#raw 0xFE

#org @move2
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @move3
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @done
release
end

#org @msg1
= [player]!\pYou left your shoes at home!

#org @msg2
= What's a good TRAINER without\ngood shoes? I'd have hated to\lgive away your Nikes.\pWell, back home I go!


The script freezes on the spot. I was reading diegoisawesome's XSE tutorial, and it said how to fix the freezing, but instead of doing so with text, it did so with dead links to images, preventing me from finding an answer there, so I ask here.
There's no way you have an applymovement 0x0
Look at the provided picture.





Also: I do not know if you are hacking Emerald or Fire Red, I don't know what 'special 0x171' does, but it doesn't look like your script will give the player the running shoes.
setflag 0x8C0 will give the player running shoes in Emerald.
setflag 0x82F (taken from a tutorial on YouTube, might be wrong) will give the player running shoes in Fire Red.

I also suggest using a Fanfare, 0x13E might work for you, maybe 0x171 too, a msgbox for obtaining the running shoes, and a 'waitfanfare' command afterwards.
__________________
Rule #0: Always Make a Backup




Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 16th, 2017 (7:52 PM).
Far Way Far Way is offline
 
Join Date: Nov 2015
Location: North Carolina
Gender: Male
Nature: Calm
Posts: 86
Quote:
Originally Posted by Bladecraft View Post
There's no way you have an applymovement 0x0
Look at the provided picture.





Also: I do not know if you are hacking Emerald or Fire Red, I don't know what 'special 0x171' does, but it doesn't look like your script will give the player the running shoes.
setflag 0x8C0 will give the player running shoes in Emerald.
setflag 0x82F (taken from a tutorial on YouTube, might be wrong) will give the player running shoes in Fire Red.

I also suggest using a Fanfare, 0x13E might work for you, maybe 0x171 too, a msgbox for obtaining the running shoes, and a 'waitfanfare' command afterwards.
I just added those changes to the script, but it still makes the game freeze. How can I fix this?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old July 17th, 2017 (1:24 AM).
Bladecraft's Avatar
Bladecraft Bladecraft is offline
It's written "Bladecraft" on my forehead.
 
Join Date: Feb 2017
Gender: Male
Nature: Calm
Posts: 83
Quote:
Originally Posted by Far Way View Post
I just added those changes to the script, but it still makes the game freeze. How can I fix this?
I'll again, assume you're talking about a s tile script.
For a tile script to work you need to give it a var and a var number (value). Find safe to use vars in your rom and put them on the script tile in a-map.

Also, I literally answered this for someone else yesterday. And I haven't had to search for this when I was getting started. I might be sounding like a @#$% but it's seriously for everyone's good, please do your research before asking questions.
__________________
Rule #0: Always Make a Backup




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