The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Need help fixing 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 August 17th, 2017 (6:39 AM). Edited August 17th, 2017 by PotatoJedi.
PotatoJedi's Avatar
PotatoJedi PotatoJedi is offline
 
Join Date: Aug 2017
Posts: 5
Hello, I am new to rom hacking, this is my first rom hack, actually, and I was trying to make my protagonist follow his rival to his rival's house, but, first of all, when his rival went to the house the player was released, and second I added a fade for the npc rival to disappear, and then the player was supposed to follow the rival to his house, but the npc just went to the house, and then reappeared where he was at the beginning of the script. Here is the script:

Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x200
if 0x1 goto @alreadyDone
lock
faceplayer
msgbox @rivalmessage 0x6
applymovement 0x7 @m1
applymovement 0xFF @m2
fadescreen 0x1
hidesprite 0x7
setflag 0x201
fadescreen 0x0
setflag 0x200
release
end

#org @rivalmessage
= [green_fr][rival]: [red_fr]Hey, [player] let's go!\nWe will be late to join Team Serum!\lThe meeting is being held at my house!


#org @m1
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x0
#raw 0x1C
#raw 0xFE



#org @m2
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x0
#raw 0xFE



#org @alreadyDone
msgbox @r2 0x6
release
end

#org @r2
= [green_fr][rival]: [red_fr]Wassup!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 25th, 2017 (7:01 AM).
Smileycorp's Avatar
Smileycorp Smileycorp is offline
Meh
 
Join Date: Jun 2015
Location: Sunnyshore City
Gender: Male
Nature: Lax
Posts: 64
It would help if you gave the context of your flags.

I can only asume that the sprite 0x7 is the rival and that flag 0x200 is the main script controller, while 0x201 id the person ID of your rival overworld.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 27th, 2017 (3:59 AM).
TheHanseman's Avatar
TheHanseman TheHanseman is offline
 
Join Date: Aug 2016
Location: Germany
Gender: Male
Posts: 8
At first you should a waitmovement 0x7 command after the applymovent commands.

The problem is maybe that you forgot to add the flag (201) at the person ID.
__________________
https://media.giphy.com/media/3o7btTCiDQIRhIYJ1e/giphy.gif
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old August 27th, 2017 (4:48 AM).
Smileycorp's Avatar
Smileycorp Smileycorp is offline
Meh
 
Join Date: Jun 2015
Location: Sunnyshore City
Gender: Male
Nature: Lax
Posts: 64
Just to point out you haven't actually used the warp command, so your player never actually changes maps.

Then in the house you will need to continue the script with a level script.
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:16 AM.