- 5
- Posts
- 6
- Years
- Seen Sep 5, 2017
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!
#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!
Last edited: