- 7
- Posts
- 10
- Years
- Age 25
- Canada
- Seen Oct 17, 2023
This has been driving me crazy but I'm making a script on the ground and setting the variable at 8002.
I'm then using the following script in the script square.
Pksv UI script:
#dyn 0x740000
#org @start
'-----------------------------------
lockall
setvar 0x8002 0x0
checkflag 0x21A
if true jump @finished ' Flag is set
checkflag 0x21C
if true jump @afterwarp ' Flag is set
checkflag 0x219
if true jump @staycave ' Flag is set
message @voice ' You hear a raspy voi...
callstd MSG_NORMAL
compare PLAYERFACING DOWN
if == call @sup
compare PLAYERFACING UP
if == call @sdown
releaseall
end
#org @finished
'-----------------------------------
releaseall
end
#org @afterwarp
'-----------------------------------
message @serious ' Seriously?
callstd MSG_NORMAL
compare PLAYERFACING DOWN
if == call @sup
compare PLAYERFACING UP
if == call @sdown
releaseall
end
#org @sdown
'-----------------------------------
applymovement PLAYER @down
pauseevent 0x0
return
#org @sup
'-----------------------------------
applymovement PLAYER @up
pauseevent 0x0
return
#org @staycave
'-----------------------------------
compare PLAYERFACING UP
if == jump @finished ' Equal To
message @waterhere ' Maybe someone here\n...
callstd MSG_NORMAL
call @sup
releaseall
end
#org @voice
= You hear a raspy voice\nto your right.\pHelp me.....\nplease.....
#org @serious
= Seriously?
#org @waterhere
= Maybe someone here\nhas some fresh water.
#org @down
m walk_down look_up end
#org @up
m walk_up look_down end
Sorry for my spaghetti code.
However, it seems the first time the script is walked on the player isn't moved. After the first flag (219), the player is always moved down regardless of the direction the script was walked on, and the second flag (21C ), once again won't move the player after going through the text it just releases all and ends. The final flag (21A) is working as intended it locks then releases and ends. can anyone tell me why this is happening? I just don't understand, it makes no sense.
If anyone can help me it would be very much appreciated. Thanks!
I'm then using the following script in the script square.
Pksv UI script:
Spoiler:
#dyn 0x740000
#org @start
'-----------------------------------
lockall
setvar 0x8002 0x0
checkflag 0x21A
if true jump @finished ' Flag is set
checkflag 0x21C
if true jump @afterwarp ' Flag is set
checkflag 0x219
if true jump @staycave ' Flag is set
message @voice ' You hear a raspy voi...
callstd MSG_NORMAL
compare PLAYERFACING DOWN
if == call @sup
compare PLAYERFACING UP
if == call @sdown
releaseall
end
#org @finished
'-----------------------------------
releaseall
end
#org @afterwarp
'-----------------------------------
message @serious ' Seriously?
callstd MSG_NORMAL
compare PLAYERFACING DOWN
if == call @sup
compare PLAYERFACING UP
if == call @sdown
releaseall
end
#org @sdown
'-----------------------------------
applymovement PLAYER @down
pauseevent 0x0
return
#org @sup
'-----------------------------------
applymovement PLAYER @up
pauseevent 0x0
return
#org @staycave
'-----------------------------------
compare PLAYERFACING UP
if == jump @finished ' Equal To
message @waterhere ' Maybe someone here\n...
callstd MSG_NORMAL
call @sup
releaseall
end
#org @voice
= You hear a raspy voice\nto your right.\pHelp me.....\nplease.....
#org @serious
= Seriously?
#org @waterhere
= Maybe someone here\nhas some fresh water.
#org @down
m walk_down look_up end
#org @up
m walk_up look_down end
Sorry for my spaghetti code.
However, it seems the first time the script is walked on the player isn't moved. After the first flag (219), the player is always moved down regardless of the direction the script was walked on, and the second flag (21C ), once again won't move the player after going through the text it just releases all and ends. The final flag (21A) is working as intended it locks then releases and ends. can anyone tell me why this is happening? I just don't understand, it makes no sense.
If anyone can help me it would be very much appreciated. Thanks!