The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Help with a movement script

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 8th, 2018 (9:37 PM).
red5677 red5677 is offline
Non-Existent Elite Four Champ
 
Join Date: Jun 2008
Location: California, United States
Gender: Male
Nature: Brave
Posts: 27
Hello again!

I have this script:

Spoiler:
#dynamic 0x7208C2

#org @start
playsong 0x0000 0x0
msgbox @talk1 0x06
fadescreen 0x1
hidesprite 1
fadescreen 0x0
applymovement 0xFF @walk1
waitmovement 0xFF
msgbox @talk2 0x06
setvar 0x6000 0x1
setflag 0x1203
fadesong 0x0120
release
end

#org @walk1
#raw 0x10
#raw 0x63

#org @talk1
= DANTE: You will be a fine trainer.

#org @talk2
= Who was that?


which basically has a person walk up to a person, it says the line above, and disappears. Then the hero walks into that spot, does the movement commands above, then says the dialog above. However as expected it does not do as I need it to. Instead the hero just walks up to the spot, does the animation necessary, then the rest of the script does not execute. Could someone walk me through why this does not work as intended?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 8th, 2018 (10:07 PM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
You need to include '#raw 0xFE' at the end of your @walk1 segment. That's a terminator byte which tells the game that it has reached the end of the movements and to return to where it originally was.

From the looks of it you're hacking FR, so I highly advise reading this thread. You're using some very strange flags and variables that could have unintended consequences for your game.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 8th, 2018 (10:55 PM).
red5677 red5677 is offline
Non-Existent Elite Four Champ
 
Join Date: Jun 2008
Location: California, United States
Gender: Male
Nature: Brave
Posts: 27
Hello, and thank you for the timely reply. Yes, I have seen that thread, and I believe I have expanded the rom properly. However, someone else also mentioned that I would be "tearing the game apart" by using those flags. A tutorial online that I have been following said that flags 1200 and up are "less buggy". So with that information in mind I have written a few scripts. Could you explain to me what exactly the unintended consequences are? And could also point in the right direction in getting better set up with flags and optimizing my rom even further.

Thanks,
Rocky
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.