2017-11-10 02:21:31 +01:00
|
|
|
IslandCave_MapScripts:: @ 8238E2A
|
|
|
|
map_script 5, IslandCave_MapScript1_238E3A
|
|
|
|
map_script 1, IslandCave_MapScript1_238E58
|
|
|
|
map_script 3, IslandCave_MapScript1_238E99
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
IslandCave_MapScript1_238E3A: @ 8238E3A
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, IslandCave_EventScript_238E44
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
IslandCave_EventScript_238E44:: @ 8238E44
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 7
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_ne IslandCave_EventScript_27374E
|
2017-11-10 02:21:31 +01:00
|
|
|
removeobject VAR_LAST_TALKED
|
|
|
|
return
|
|
|
|
|
|
|
|
IslandCave_MapScript1_238E58: @ 8238E58
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_unset FLAG_SYS_BRAILLE_WAIT, IslandCave_EventScript_238E62
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
IslandCave_EventScript_238E62:: @ 8238E62
|
|
|
|
setmetatile 7, 19, 553, 1
|
|
|
|
setmetatile 8, 19, 553, 1
|
|
|
|
setmetatile 9, 19, 553, 1
|
|
|
|
setmetatile 7, 20, 565, 1
|
|
|
|
setmetatile 8, 20, 565, 1
|
|
|
|
setmetatile 9, 20, 565, 1
|
|
|
|
return
|
|
|
|
|
|
|
|
IslandCave_MapScript1_238E99: @ 8238E99
|
2017-12-27 04:20:29 +01:00
|
|
|
setflag FLAG_LANDMARK_ISLAND_CAVE
|
2017-11-10 02:21:31 +01:00
|
|
|
call IslandCave_EventScript_238F45
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_unset FLAG_0x1BC, IslandCave_EventScript_238EAB
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
IslandCave_EventScript_238EAB:: @ 8238EAB
|
2018-10-18 04:07:23 +02:00
|
|
|
clearflag FLAG_HIDE_REGICE
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2017-11-10 09:24:21 +01:00
|
|
|
IslandCave_EventScript_238EAF:: @ 8238EAF
|
|
|
|
setmetatile 7, 19, 554, 1
|
|
|
|
setmetatile 8, 19, 555, 1
|
|
|
|
setmetatile 9, 19, 556, 1
|
|
|
|
setmetatile 7, 20, 562, 1
|
|
|
|
setmetatile 8, 20, 563, 0
|
|
|
|
setmetatile 9, 20, 564, 1
|
|
|
|
special DrawWholeMapView
|
|
|
|
playse SE_BAN
|
|
|
|
setflag FLAG_SYS_BRAILLE_WAIT
|
|
|
|
end
|
2017-11-10 08:36:41 +01:00
|
|
|
|
|
|
|
IslandCave_EventScript_238EEF:: @ 8238EEF
|
|
|
|
lockall
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_set FLAG_TEMP_3, IslandCave_EventScript_238F45
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_set FLAG_SYS_BRAILLE_WAIT, IslandCave_EventScript_238F13
|
2017-11-10 08:36:41 +01:00
|
|
|
braillemessage IslandCave_Braille_2A6CD4
|
2018-10-17 18:25:12 +02:00
|
|
|
setflag FLAG_TEMP_2
|
2017-11-10 08:36:41 +01:00
|
|
|
special ShouldDoBrailleRegicePuzzle
|
|
|
|
goto IslandCave_EventScript_238F41
|
|
|
|
end
|
|
|
|
|
|
|
|
IslandCave_EventScript_238F13:: @ 8238F13
|
2018-12-02 09:37:46 +01:00
|
|
|
msgbox gUnknown_0827304E, MSGBOX_DEFAULT
|
2017-11-10 08:36:41 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
IslandCave_EventScript_238F1D:: @ 8238F1D
|
|
|
|
lockall
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_set FLAG_TEMP_3, IslandCave_EventScript_238F45
|
2017-11-10 08:36:41 +01:00
|
|
|
braillemessage IslandCave_Braille_2A6CD4
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_set FLAG_SYS_BRAILLE_WAIT, IslandCave_EventScript_238F41
|
2018-10-17 18:25:12 +02:00
|
|
|
setflag FLAG_TEMP_2
|
2017-11-10 08:36:41 +01:00
|
|
|
special ShouldDoBrailleRegicePuzzle
|
|
|
|
goto IslandCave_EventScript_238F41
|
|
|
|
end
|
|
|
|
|
|
|
|
IslandCave_EventScript_238F41:: @ 8238F41
|
|
|
|
waitbuttonpress
|
|
|
|
hidebox2
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
IslandCave_EventScript_238F45:: @ 8238F45
|
|
|
|
setvar VAR_0x403B, 0
|
|
|
|
setvar VAR_0x403C, 0
|
|
|
|
setvar VAR_0x403D, 0
|
2018-10-17 18:25:12 +02:00
|
|
|
clearflag FLAG_TEMP_3
|
2017-11-10 08:36:41 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
IslandCave_EventScript_238F58:: @ 8238F58
|
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
waitse
|
|
|
|
playmoncry SPECIES_REGICE, 2
|
|
|
|
delay 40
|
|
|
|
waitmoncry
|
|
|
|
setwildbattle SPECIES_REGICE, 40, ITEM_NONE
|
|
|
|
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
2017-11-28 23:02:09 +01:00
|
|
|
special StartRegiBattle
|
2017-11-10 08:36:41 +01:00
|
|
|
waitstate
|
|
|
|
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq IslandCave_EventScript_238F9F
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 4
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq IslandCave_EventScript_238FA8
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 5
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq IslandCave_EventScript_238FA8
|
2017-11-10 08:36:41 +01:00
|
|
|
setflag FLAG_0x1BC
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
IslandCave_EventScript_238F9F:: @ 8238F9F
|
|
|
|
setflag FLAG_0x1BC
|
|
|
|
goto IslandCave_EventScript_27376D
|
|
|
|
end
|
|
|
|
|
|
|
|
IslandCave_EventScript_238FA8:: @ 8238FA8
|
|
|
|
setvar VAR_0x8004, 402
|
|
|
|
goto IslandCave_EventScript_273776
|
|
|
|
end
|