- 6
- Posts
- 5
- Years
- Seen Apr 25, 2020
Hi all,
I'm having some issues with the start of my ROM hack. The player starts out in Fuchsia City and has to go through the Safari Zone as a sort-of opening gauntlet. When I get to the Secret House, I can't get any script to activate for some reason. Below is the script I'm attempting to implement but I've tried just a simple msgbox command and it still just freezes the game. This same script works in other areas of the Safari Zone, this only happens in the Secret House.
Another thing I'm having trouble with is I've repurposed the Bill's grandfather's house to be the player's house. I restyled it a bit only to find it's linked to the Move Deleter's house next door somehow despite them being different maps. It shows up properly in AdvanceMap but in game either the Move Deleter's house now has the player's house map or vice versa depending on which map was edited and saved last. My plan was to just move it to an entirely new map and change the warp but I'd be curious to know why it does that.
Thanks in advance for any help!
I'm having some issues with the start of my ROM hack. The player starts out in Fuchsia City and has to go through the Safari Zone as a sort-of opening gauntlet. When I get to the Secret House, I can't get any script to activate for some reason. Below is the script I'm attempting to implement but I've tried just a simple msgbox command and it still just freezes the game. This same script works in other areas of the Safari Zone, this only happens in the Secret House.
Spoiler:
![[PokeCommunity.com] Can't Activate Scripts in the Safari Zone Secret House? (and why are some maps linked?) [PokeCommunity.com] Can't Activate Scripts in the Safari Zone Secret House? (and why are some maps linked?)](https://i.imgur.com/MLaRX7u.png)
Code:
'---------------
#org 0x807749
lock
applymovement 0x1 0x88077B0
waitmovement 0x0
msgbox 0x88077CC MSG_NORMAL '"Oh, hi [player]!"
applymovement MOVE_PLAYER 0x88077B4
waitmovement 0x0
spriteface 0x1 0x3
msgbox 0x88077D9 MSG_NORMAL '"I like to come here every so often..."
applymovement 0x1 0x88077BA
msgbox 0x88078DB MSG_NORMAL '"Oh, he's been called up? That's\nh..."
applymovement 0x1 0x88077BD
waitmovement 0x0
spriteface 0xFF 0x2
msgbox 0x880795C MSG_NORMAL '"Hey, why don't you come and be my\..."
applymovement 0x1 0x88077C3
waitmovement 0x0
setflag 0x206
setvar 0x4017 0x1
release
end
'---------
' Strings
'---------
#org 0x8077CC
= Oh, hi [player]!
#org 0x8077D9
= I like to come here every so often\nto get away. I've been reading\lsome of these books as well to try\land learn some strategies.\pYou know my dad's been cinsidered\nto take over Agatha's old post on\lthe Elite Four? Well, I'm\lapparently supposed to take over.
#org 0x8078DB
= Oh, he's been called up? That's\nhappened a lot sooner than I\lthought.\pI guess I'd better get going.\nThanks for telling me, [player].
#org 0x80795C
= Hey, why don't you come and be my\nfirst challenger? I'm a little\lnervous and it'd be nice to have\lmy first battle against a friend.\pAnd you must be a pretty good\ntrainer to get through the Safari\lZone by yourself. I think I might\lbe in for quite the challenge.
'-----------
' Movements
'-----------
#org 0x8077B0
#raw 0x0 'Face Down
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements
#org 0x8077B4
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements
#org 0x8077BA
#raw 0x63 'Question Mark (?)
#raw 0xFE 'End of Movements
#org 0x8077BD
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x62 'Exclamation Mark (!)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
#org 0x8077C3
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements
Thanks in advance for any help!