summaryrefslogtreecommitdiff
path: root/data/maps/RusturfTunnel
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-11-22 19:10:49 -0500
committerGitHub <noreply@github.com>2021-11-22 19:10:49 -0500
commite0fae879da1b773bf90fca145e047ccdb7613938 (patch)
treeb1be0ec73e33fccf2fe2deac44d62aa10ae391e4 /data/maps/RusturfTunnel
parent5cb875b6cb798cf890e156f54a150ff90735ddab (diff)
parent42a83ee50e3364f3f7361dacb3d3616053f4c5bf (diff)
Merge pull request #1558 from GriffinRichards/update-macros
Update event macro comments
Diffstat (limited to 'data/maps/RusturfTunnel')
-rw-r--r--data/maps/RusturfTunnel/scripts.inc36
1 files changed, 12 insertions, 24 deletions
diff --git a/data/maps/RusturfTunnel/scripts.inc b/data/maps/RusturfTunnel/scripts.inc
index 97a158f22..e7eee5817 100644
--- a/data/maps/RusturfTunnel/scripts.inc
+++ b/data/maps/RusturfTunnel/scripts.inc
@@ -15,8 +15,7 @@ RusturfTunnel_OnFrame:
.2byte 0
RusturfTunnel_OnTransition:
- compare VAR_RUSTURF_TUNNEL_STATE, 2
- call_if_eq RusturfTunnel_EventScript_SetAquaGruntAndPeekoPos
+ call_if_eq VAR_RUSTURF_TUNNEL_STATE, 2, RusturfTunnel_EventScript_SetAquaGruntAndPeekoPos
end
RusturfTunnel_EventScript_SetAquaGruntAndPeekoPos::
@@ -56,36 +55,25 @@ RusturfTunnel_EventScript_AlreadySpokenTo::
RusturfTunnel_EventScript_ClearTunnelScene::
lockall
- compare VAR_TEMP_1, 1
- call_if_eq RusturfTunnel_EventScript_FaceWandasBoyfriend1
- compare VAR_TEMP_1, 2
- call_if_eq RusturfTunnel_EventScript_FaceWandasBoyfriend2
- compare VAR_TEMP_1, 3
- call_if_eq RusturfTunnel_EventScript_FaceWandasBoyfriend3
+ call_if_eq VAR_TEMP_1, 1, RusturfTunnel_EventScript_FaceWandasBoyfriend1
+ call_if_eq VAR_TEMP_1, 2, RusturfTunnel_EventScript_FaceWandasBoyfriend2
+ call_if_eq VAR_TEMP_1, 3, RusturfTunnel_EventScript_FaceWandasBoyfriend3
call RusturfTunnel_EventScript_WandasBoyfriendNotice
msgbox RusturfTunnel_Text_YouShatteredBoulderTakeHM, MSGBOX_DEFAULT
- compare VAR_TEMP_1, 2
- call_if_eq RusturfTunnel_EventScript_WandasBoyfriendApproachPlayer
- compare VAR_TEMP_1, 3
- call_if_eq RusturfTunnel_EventScript_WandasBoyfriendApproachPlayer
+ call_if_eq VAR_TEMP_1, 2, RusturfTunnel_EventScript_WandasBoyfriendApproachPlayer
+ call_if_eq VAR_TEMP_1, 3, RusturfTunnel_EventScript_WandasBoyfriendApproachPlayer
giveitem ITEM_HM04
setflag FLAG_RECEIVED_HM04
msgbox RusturfTunnel_Text_ExplainStrength, MSGBOX_DEFAULT
closemessage
- compare VAR_TEMP_1, 1
- call_if_eq RusturfTunnel_EventScript_BoyfriendApproachWanda1
- compare VAR_TEMP_1, 2
- call_if_eq RusturfTunnel_EventScript_BoyfriendApproachWanda2
- compare VAR_TEMP_1, 3
- call_if_eq RusturfTunnel_EventScript_BoyfriendApproachWanda3
+ call_if_eq VAR_TEMP_1, 1, RusturfTunnel_EventScript_BoyfriendApproachWanda1
+ call_if_eq VAR_TEMP_1, 2, RusturfTunnel_EventScript_BoyfriendApproachWanda2
+ call_if_eq VAR_TEMP_1, 3, RusturfTunnel_EventScript_BoyfriendApproachWanda3
msgbox RusturfTunnel_Text_WandaReunion, MSGBOX_DEFAULT
closemessage
- compare VAR_TEMP_1, 1
- call_if_eq RusturfTunnel_EventScript_WandaAndBoyfriendExit1
- compare VAR_TEMP_1, 2
- call_if_eq RusturfTunnel_EventScript_WandaAndBoyfriendExit
- compare VAR_TEMP_1, 3
- call_if_eq RusturfTunnel_EventScript_WandaAndBoyfriendExit
+ call_if_eq VAR_TEMP_1, 1, RusturfTunnel_EventScript_WandaAndBoyfriendExit1
+ call_if_eq VAR_TEMP_1, 2, RusturfTunnel_EventScript_WandaAndBoyfriendExit
+ call_if_eq VAR_TEMP_1, 3, RusturfTunnel_EventScript_WandaAndBoyfriendExit
call RusturfTunnel_EventScript_SetRusturfTunnelOpen
releaseall
end