- 13
- Posts
- 12
- Years
- Seen Nov 11, 2024
Ok so I'm writing a script in my Rom Hack and basically an event triggers when you try to enter the gym. A grunt leaves the gym and runs off, then the gym leader runs out next and says some dialogue then chases after the grunt.
The issue I'm having is the gym leader not appearing, the grunt pops up just fine but the gym leader is invisible for some reason. I have Person ID's set to both of them in AdvanceMap and there flags are set beforehand and cleared for the scipt, then set again once the script ends. I've looked through the script countless times and I can pinpoint what the issue might be. The grunt uses flag 0x20E, and the gym leader Katria uses flag 0x20C.
I have tried assigning different flags to her before and to no avail. Anyway, is somebody can take a look at the script and possibly help me out, I would appreciate it greatly. Thank you!
-Jordyn
The issue I'm having is the gym leader not appearing, the grunt pops up just fine but the gym leader is invisible for some reason. I have Person ID's set to both of them in AdvanceMap and there flags are set beforehand and cleared for the scipt, then set again once the script ends. I've looked through the script countless times and I can pinpoint what the issue might be. The grunt uses flag 0x20E, and the gym leader Katria uses flag 0x20C.
I have tried assigning different flags to her before and to no avail. Anyway, is somebody can take a look at the script and possibly help me out, I would appreciate it greatly. Thank you!
-Jordyn
Code:
#dynamic 0x965710
#org @start
checkflag 0x820
if 0x0 goto @done1
checkflag 0x20F
if 0x1 goto @done2
lockall
setdooropened 0x1D 0x14
doorchange
clearflag 0x20E
showsprite 0x5
applymovement 0x5 @gruntexitgym
setdoorclosed 0x1D 0x14
doorchange
textcolor 0x0
msgbox @outtatheway 0x6
applymovement 0x5 @gruntrunaway
waitmovement 0x0
hidesprite 0x5
setflag 0x20E
setdooropened 0x1D 0x14
doorchange
clearflag 0x20C
showsprite 0x6
applymovement 0x6 @katriaexitgym
setdoorclosed 0x1D 0x14
doorchange
textcolor 0x1
msgbox @hey 0x6
textcolor 0x2
msgbox @reply1 0x6
textcolor 0x1
msgbox @reply2 0x6
applymovement 0x6 @katriarunaway
waitmovement 0x0
hidesprite 0x6
setflag 0x20C
setflag 0x20F
releaseall
end
#org @done1
release
end
#org @done2
release
end
#org @gruntexitgym
#raw 0x1D
#raw 0xFE
#org @outtatheway
= Grunt: OUTTA THE WAY!
#org @gruntrunaway
#raw 0x20
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE
#org @katriaexitgym
#raw 0x1D
#raw 0xFE
#org @hey
= Katria: This is exactly what the\nfuck I was talking about!\pThose assholes are gonna get it!
#org @reply1
= [player]: What the hell happened\nhere?
#org @reply2
= Katria: As much as I'd love to\ntell you, there isn't really any\ltime.\pI could use your help though.\nYou coming?
#org @katriarunaway
#raw 0x20
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE