summaryrefslogtreecommitdiff
path: root/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc')
-rw-r--r--data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc34
1 files changed, 17 insertions, 17 deletions
diff --git a/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc b/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc
index b1cf1bc89..44dd71179 100644
--- a/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc
+++ b/data/maps/SevenIsland_SeavaultCanyon_TanobyKey/scripts.inc
@@ -4,8 +4,8 @@ SevenIsland_SeavaultCanyon_TanobyKey_MapScripts:: @ 8164DCC
SevenIsland_SeavaultCanyon_TanobyKey_MapScript1_164DD2:: @ 8164DD2
setworldmapflag FLAG_WORLD_MAP_SEVEN_ISLAND_SEAVAULT_CANYON_TANOBY_KEY
- checkflag FLAG_0x849
- call_if 1, EventScript_164E07
+ checkflag FLAG_SYS_UNLOCKED_TANOBY_RUINS
+ call_if TRUE, EventScript_164E07
setvar VAR_0x4001, 0
setvar VAR_0x4002, 0
setvar VAR_0x4003, 0
@@ -29,77 +29,77 @@ EventScript_164E07:: @ 8164E07
SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164E39:: @ 8164E39
lockall
compare_var_to_value VAR_0x4001, 100
- goto_if_eq EventScript_164F8A
+ goto_if eq, EventScript_164F8A
call EventScript_164F2E
setvar VAR_0x4001, 100
compare_var_to_value VAR_0x4008, 7
- goto_if_eq EventScript_164F8C
+ goto_if eq, EventScript_164F8C
releaseall
end
SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164E5C:: @ 8164E5C
lockall
compare_var_to_value VAR_0x4002, 100
- goto_if_eq EventScript_164F8A
+ goto_if eq, EventScript_164F8A
call EventScript_164F2E
setvar VAR_0x4002, 100
compare_var_to_value VAR_0x4008, 7
- goto_if_eq EventScript_164F8C
+ goto_if eq, EventScript_164F8C
releaseall
end
SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164E7F:: @ 8164E7F
lockall
compare_var_to_value VAR_0x4003, 100
- goto_if_eq EventScript_164F8A
+ goto_if eq, EventScript_164F8A
call EventScript_164F2E
setvar VAR_0x4003, 100
compare_var_to_value VAR_0x4008, 7
- goto_if_eq EventScript_164F8C
+ goto_if eq, EventScript_164F8C
releaseall
end
SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164EA2:: @ 8164EA2
lockall
compare_var_to_value VAR_0x4004, 100
- goto_if_eq EventScript_164F8A
+ goto_if eq, EventScript_164F8A
call EventScript_164F2E
setvar VAR_0x4004, 100
compare_var_to_value VAR_0x4008, 7
- goto_if_eq EventScript_164F8C
+ goto_if eq, EventScript_164F8C
releaseall
end
SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164EC5:: @ 8164EC5
lockall
compare_var_to_value VAR_0x4005, 100
- goto_if_eq EventScript_164F8A
+ goto_if eq, EventScript_164F8A
call EventScript_164F2E
setvar VAR_0x4005, 100
compare_var_to_value VAR_0x4008, 7
- goto_if_eq EventScript_164F8C
+ goto_if eq, EventScript_164F8C
releaseall
end
SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164EE8:: @ 8164EE8
lockall
compare_var_to_value VAR_0x4006, 100
- goto_if_eq EventScript_164F8A
+ goto_if eq, EventScript_164F8A
call EventScript_164F2E
setvar VAR_0x4006, 100
compare_var_to_value VAR_0x4008, 7
- goto_if_eq EventScript_164F8C
+ goto_if eq, EventScript_164F8C
releaseall
end
SevenIsland_SeavaultCanyon_TanobyKey_EventScript_164F0B:: @ 8164F0B
lockall
compare_var_to_value VAR_0x4007, 100
- goto_if_eq EventScript_164F8A
+ goto_if eq, EventScript_164F8A
call EventScript_164F2E
setvar VAR_0x4007, 100
compare_var_to_value VAR_0x4008, 7
- goto_if_eq EventScript_164F8C
+ goto_if eq, EventScript_164F8C
releaseall
end
@@ -138,6 +138,6 @@ EventScript_164F8A:: @ 8164F8A
EventScript_164F8C:: @ 8164F8C
call EventScript_164F51
msgbox gUnknown_817D31B
- setflag FLAG_0x849
+ setflag FLAG_SYS_UNLOCKED_TANOBY_RUINS
releaseall
end