- 4
- Posts
- 5
- Years
- Seen Feb 5, 2024
My goal with this script is to have a simple interaction with the player and the npc in the room when stepping on the tile once. I have tried this without using a script tile, (instead placing the script on the npc) the flag and the script worked as intended. However, I want the script to trigger when the player steps on the tile. When I place my script's offset on the script tile then proceed the test it, my player freezes in place. The in-game music still plays but, the script doesn't activate leaving me stuck on the script tile.
Extra Info :
I've set the affected npc's person event to 1
I've set the set the script's offset to match the @start offset given to me every time i use the batch compiler on XSE
The npc's person ID is 6000 just like the flag
My Advance Map is currently v1.95
The rom is Pokemon Ruby
Script for the script tile : (Before it is complied)
I am a novice in rom hacking so, If I'm missing anything or if any more information is needed to help please ask, Thank you for reading this.
Extra Info :
I've set the affected npc's person event to 1
I've set the set the script's offset to match the @start offset given to me every time i use the batch compiler on XSE
The npc's person ID is 6000 just like the flag
My Advance Map is currently v1.95
The rom is Pokemon Ruby
Script for the script tile : (Before it is complied)
Code:
#dynamic 0x0800000
#org @start
checkflag 0x6000
if 0x1 goto @motherOne
applymovement 0x1 @messengerZero
waitmovement 0x0
msgbox @messageOne 0x6
applymovement 0x1 @messengerOne
waitmovement 0x0
msgbox @messageTwo 0x6
msgbox @playerOne 0x6
msgbox @messageThree 0x6
msgbox @playerTwo 0x6
msgbox @messageFour 0x6
msgbox @playerThree 0x6
msgbox @messageFive 0x6
applymovement 0x1 @messengerTwo
waitmovement 0x0
msgbox @messageSix 0x6
applymovement 0x1 @messengerThree
waitmovement 0x0
setflag 0x6000
release
end
#org @motherOne
release
end
#org @messageOne
= Mom: Oh...\nWell good morning dear,\lI have some important news.
#org @messageTwo
= Mom: Your father just called me,\nhe wants you to come to his lab\land help him with an\l"experiment".\lNormally I'd hang up the moment I\lheard his voice but,..\lHe's offering you a gift.
#org @playerOne
= [player]: What...\nNo, I...\lI don't know if I want to...\Lsee him right now...
#org @messageThree
= Mom: I thought maybe this was his way\nof making it up to you\lfor what happened...\lbut, if you don't want to see him\lI'll let him know...\lIf you won't go for yourself,\lcan you at least for me?\lI rather not have him pestering me\lmore than he already has becasue\lI couldn't get you to see him.
#org @playerTwo
= [player]: ...
#org @messageFour
= Mom: If you help me out,\lI'll get anything you want\lor let you do anything you want.\lJust once.\lDo we have a deal?
#org @playerThree
= [player]: Fine.
#org @messageFive
= Mom: Great! He should be in the\nnext town north of her.\lI'll be waiting for your return.
#org @messageSix
= Mom: I almost forgot,\nthere is a bit of tall grass\lbetween here and the next town.\lYou should bring your Eevee with you\ljust in case if anything happens.\lYou probably left it's pokeball\lUpstairs.
#org @messengerZero
#raw 0x01
#raw 0x56
#raw 0xFE
#org @messengerOne
#raw 0x03
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x01
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0xFE
#org @messengerTwo
#raw 0x00
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x02
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x56
#raw 0x01
#raw 0xFE
#org @messengerThree
#raw 0x02
#raw 0x06
#raw 0x06
#raw 0xFE
I am a novice in rom hacking so, If I'm missing anything or if any more information is needed to help please ask, Thank you for reading this.
Last edited: