- 3
- Posts
- 3
- Years
- Seen Oct 12, 2021
I'm new to ROM hacking, and I'm trying to have some dialogue appear when the game starts, however I can never use setvar to stop the map script from repeating because using it results in the following behavior:
This is what my script looks like
And this is the Advance Map setup
I've looked at similar scripts from other ROM hacks and in the base game and I have no idea what I'm doing wrong. I originally thought it may be because I have a CFRU patch on my ROM but I get this exact same behavior in a Vanilla ROM. If anyone knows how to fix this I would be very grateful!
![[PokeCommunity.com] Using setvar in a map script (type 02) with a msgbox results in broken dialogue loop [PokeCommunity.com] Using setvar in a map script (type 02) with a msgbox results in broken dialogue loop](https://i.gyazo.com/ac3b4bae440aa408cbc54b3ea698736d.gif)
This is what my script looks like
Code:
'---------------
#org 0x800000
setvar 0x5100 0x1
lock
msgbox 0x8800011 MSG_KEEPOPEN '"Test"
release
end
'---------
' Strings
'---------
#org 0x800011
= Test
And this is the Advance Map setup
![[PokeCommunity.com] Using setvar in a map script (type 02) with a msgbox results in broken dialogue loop [PokeCommunity.com] Using setvar in a map script (type 02) with a msgbox results in broken dialogue loop](https://i.gyazo.com/4988f75822a8b5d9f887e2413ae4c48e.png)
I've looked at similar scripts from other ROM hacks and in the base game and I have no idea what I'm doing wrong. I originally thought it may be because I have a CFRU patch on my ROM but I get this exact same behavior in a Vanilla ROM. If anyone knows how to fix this I would be very grateful!