- 2
- Posts
- 6
- Years
- Seen Jul 12, 2023
Hi!
I've been trying to make a simple level script in XSE. It's supposed to hide a sprite in another map, move player and NPCs and prompt messageboxes. It seems to run as intended but when the script ends, the player freezes (but music keeps playing). What have I missed?
I'm pretty sure I've included all neccesary 0xFE, waitmovement and releaseall commands. At A-map (1.92) I've used script type: 02, flag 0x4011, value:0001 and script offset same as compiled.
The script itself:
Edit: I'm using Fire Red as a base
I've been trying to make a simple level script in XSE. It's supposed to hide a sprite in another map, move player and NPCs and prompt messageboxes. It seems to run as intended but when the script ends, the player freezes (but music keeps playing). What have I missed?
I'm pretty sure I've included all neccesary 0xFE, waitmovement and releaseall commands. At A-map (1.92) I've used script type: 02, flag 0x4011, value:0001 and script offset same as compiled.
The script itself:
Code:
#dynamic 0xAF2985
#org @start
spriteinvisible 0x1 0x4 0x3
setflag 0x154
applymovement 0x2 @o1
waitmovement 0x0
msgbox @hey 0x6
applymovement 0xFF @p1
waitmovement 0x0
msgbox @oak 0x6
applymovement 0x2 @o2
waitmovement 0x0
setvar 0x4011 0x2
releaseall
end
#org @o1
#raw 0x62
#raw 0x00
#raw 0xFE
#org @p1
#raw 0x11
#raw 0xFE
#org @o2
#raw 0x13
#raw 0x13
#raw 0x02
#raw 0xFE
#org @hey
= Oh, there you are [PLAYER]!\nCome on up.
#org @oak
= Your mother told me you were going\nto registrate as an officially\llicensed Pokémon Trainer today,\lbut I was starting to doubt\lwhether you'd really show up.\lWell whatever.\l[Cyan_fr]Cian[black_fr] and [red_fr]Lass[black_fr] have been\lwaiting patiently, but today it\lpays of being late!\l[PLAYER], go ahead and choose your very\lfirst Pokémon!
Edit: I'm using Fire Red as a base