- 5,256
- Posts
- 17
- Years
- Age 27
- Leicester, UK
- Seen Mar 31, 2025
I'm afraid you're chances of getting your question answered are low as, I think it's safe to say, Pokéscript is obsolete compared to languages like those present in XSE. Sorry. >:
I seem to have some trouble with this trigger script.
XSE, FireRed, Trigger Script
...
hidesprite 0x10
setflag 0x901
hidesprite 0x11
setflag 0x905
...
Okay, so what's meant to happen in this portion of the script is basically: screen fades to white, Raikou's cry is heard, the player, and events 7, 8 and 9 face left, the screen fades back to normal. Up to here works. Until, when I want Person # 10 and Person ID 901 to appear as it doesn't appear. Afterwards, a message is shown, person nine moves, more text is shown, which all works, until Person # 11 and Person ID 905 appears, followed by the hiding of #10, which also doesn't work. The pause for half a second works, but then, lo and behold, the hiding of #11 doesn't work.
The second spoiler shows part of the level script which hides #10 and #11 to begin with. The rest of this level script works, so I don't think that's the problem.
This is really annoying me. Any ideas why it's happening?
e: Although the rest of the script works, if I exit and re-enter the map, the script executes again, but if I stay in the map and walk over the tile, nothing happens. I have put flags in, so I dunno why that happens either. >:
I seem to have some trouble with this trigger script.
XSE, FireRed, Trigger Script
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x1205
if 0x1 goto @end
lock
clearflag 0x902
showsprite 0x7
showsprite 0x8
showsprite 0x9
msgbox @1 0x6
fadesong 0x14b // Mt Ember, tbr
applymovement 0xFF @shock
applymovement 0x7 @grunt1
applymovement 0x8 @grunt2
applymovement 0x9 @lilith1
waitmovement 0x0
msgbox @2 0x6
fadescreen 0x1
msgbox @3 0x4
closeonkeypress
setweather 0xD
fadescreen 0x0
doweather
applymovement 0x9 @lshock
waitmovement 0x0
msgbox @4 0x6
fadescreen 0x3
cry 0xFE 0x0
waitcry
spriteface 0xFF 0x3
spriteface 0x7 0x3
spriteface 0x8 0x3
spriteface 0x9 0x3
fadescreen 0x2
clearflag 0x901
showsprite 0x10
msgbox @5 0x6
applymovement 0x9 @lilith3
waitmovement 0x0
msgbox @6 0x6
clearflag 0x905
showsprite 0x11
hidesprite 0x10
setflag 0x901
hidesprite 0x11
setflag 0x905
spriteface 0xFF 0x1
spriteface 0x7 0x2
spriteface 0x8 0x2
applymovement 0x9 @movelil
applymovement 0x7 @movegrunt
applymovement 0x8 @movegrunt1
waitmovement 0x0
hidesprite 0x9
hidesprite 0x8
hidesprite 0x7
setflag 0x902
fadedefault
setflag 0x1205
release
end
#org @end
release
end
movements and text removed
#org @start
checkflag 0x1205
if 0x1 goto @end
lock
clearflag 0x902
showsprite 0x7
showsprite 0x8
showsprite 0x9
msgbox @1 0x6
fadesong 0x14b // Mt Ember, tbr
applymovement 0xFF @shock
applymovement 0x7 @grunt1
applymovement 0x8 @grunt2
applymovement 0x9 @lilith1
waitmovement 0x0
msgbox @2 0x6
fadescreen 0x1
msgbox @3 0x4
closeonkeypress
setweather 0xD
fadescreen 0x0
doweather
applymovement 0x9 @lshock
waitmovement 0x0
msgbox @4 0x6
fadescreen 0x3
cry 0xFE 0x0
waitcry
spriteface 0xFF 0x3
spriteface 0x7 0x3
spriteface 0x8 0x3
spriteface 0x9 0x3
fadescreen 0x2
clearflag 0x901
showsprite 0x10
msgbox @5 0x6
applymovement 0x9 @lilith3
waitmovement 0x0
msgbox @6 0x6
clearflag 0x905
showsprite 0x11
hidesprite 0x10
setflag 0x901
hidesprite 0x11
setflag 0x905
spriteface 0xFF 0x1
spriteface 0x7 0x2
spriteface 0x8 0x2
applymovement 0x9 @movelil
applymovement 0x7 @movegrunt
applymovement 0x8 @movegrunt1
waitmovement 0x0
hidesprite 0x9
hidesprite 0x8
hidesprite 0x7
setflag 0x902
fadedefault
setflag 0x1205
release
end
#org @end
release
end
movements and text removed
Spoiler:
...
hidesprite 0x10
setflag 0x901
hidesprite 0x11
setflag 0x905
...
Okay, so what's meant to happen in this portion of the script is basically: screen fades to white, Raikou's cry is heard, the player, and events 7, 8 and 9 face left, the screen fades back to normal. Up to here works. Until, when I want Person # 10 and Person ID 901 to appear as it doesn't appear. Afterwards, a message is shown, person nine moves, more text is shown, which all works, until Person # 11 and Person ID 905 appears, followed by the hiding of #10, which also doesn't work. The pause for half a second works, but then, lo and behold, the hiding of #11 doesn't work.
The second spoiler shows part of the level script which hides #10 and #11 to begin with. The rest of this level script works, so I don't think that's the problem.
This is really annoying me. Any ideas why it's happening?
e: Although the rest of the script works, if I exit and re-enter the map, the script executes again, but if I stay in the map and walk over the tile, nothing happens. I have put flags in, so I dunno why that happens either. >:
Last edited: