diff options
Diffstat (limited to 'engine/overworld')
-rw-r--r-- | engine/overworld/events.asm | 28 | ||||
-rw-r--r-- | engine/overworld/scripting.asm | 8 |
2 files changed, 18 insertions, 18 deletions
diff --git a/engine/overworld/events.asm b/engine/overworld/events.asm index c55e58de..d00796b7 100644 --- a/engine/overworld/events.asm +++ b/engine/overworld/events.asm @@ -963,17 +963,17 @@ DoPlayerEvent: PlayerEventScriptPointers: ; entries correspond to PLAYEREVENT_* constants - dba Invalid_0x96b60 ; PLAYEREVENT_NONE - dba SeenByTrainerScript ; PLAYEREVENT_SEENBYTRAINER - dba TalkToTrainerScript ; PLAYEREVENT_TALKTOTRAINER - dba FindItemInBallScript ; PLAYEREVENT_ITEMBALL - dba EdgeWarpScript ; PLAYEREVENT_CONNECTION - dba WarpToNewMapScript ; PLAYEREVENT_WARP - dba FallIntoMapScript ; PLAYEREVENT_FALL - dba Script_OverworldWhiteout ; PLAYEREVENT_WHITEOUT - dba HatchEggScript ; PLAYEREVENT_HATCH - dba ChangeDirectionScript ; PLAYEREVENT_JOYCHANGEFACING - dba Invalid_0x96b60 ; (NUM_PLAYER_EVENTS) + dba Invalid_0x96b60 ; PLAYEREVENT_NONE + dba SeenByTrainerScript ; PLAYEREVENT_SEENBYTRAINER + dba TalkToTrainerScript ; PLAYEREVENT_TALKTOTRAINER + dba FindItemInBallScript ; PLAYEREVENT_ITEMBALL + dba EdgeWarpScript ; PLAYEREVENT_CONNECTION + dba WarpToNewMapScript ; PLAYEREVENT_WARP + dba FallIntoMapScript ; PLAYEREVENT_FALL + dba OverworldWhiteoutScript ; PLAYEREVENT_WHITEOUT + dba HatchEggScript ; PLAYEREVENT_HATCH + dba ChangeDirectionScript ; PLAYEREVENT_JOYCHANGEFACING + dba Invalid_0x96b60 ; (NUM_PLAYER_EVENTS) Invalid_0x96b60: end @@ -1006,10 +1006,10 @@ LandAfterPitfallScript: earthquake 16 end -EdgeWarpScript: ; 4 - reloadandreturn MAPSETUP_CONNECTION +EdgeWarpScript: + reloadend MAPSETUP_CONNECTION -ChangeDirectionScript: ; 9 +ChangeDirectionScript: deactivatefacing 3 callasm EnableWildEncounters end diff --git a/engine/overworld/scripting.asm b/engine/overworld/scripting.asm index 11f3fc45..3ebc8dd4 100644 --- a/engine/overworld/scripting.asm +++ b/engine/overworld/scripting.asm @@ -206,9 +206,9 @@ ScriptCommandTable: dw Script_prioritysjump ; 8c dw Script_warpcheck ; 8d dw Script_stopandsjump ; 8e - dw Script_return ; 8f + dw Script_endcallback ; 8f dw Script_end ; 90 - dw Script_reloadandreturn ; 91 + dw Script_reloadend ; 91 dw Script_endall ; 92 dw Script_pokemart ; 93 dw Script_elevator ; 94 @@ -2072,7 +2072,7 @@ Script_newloadmap: call StopScript ret -Script_reloadandreturn: +Script_reloadend: call Script_newloadmap jp Script_end @@ -2157,7 +2157,7 @@ Script_end: call StopScript ret -Script_return: +Script_endcallback: call ExitScriptSubroutine jr c, .dummy .dummy |