mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-18 20:47:40 +01:00
143 lines
4.7 KiB
PHP
143 lines
4.7 KiB
PHP
ShoalCave_LowTideInnerRoom_MapScripts:: @ 8236EF5
|
|
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideInnerRoom_MapScript1_236F16
|
|
map_script MAP_SCRIPT_ON_TRANSITION, ShoalCave_LowTideInnerRoom_MapScript1_236F00
|
|
.byte 0
|
|
|
|
ShoalCave_LowTideInnerRoom_MapScript1_236F00: @ 8236F00
|
|
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_236F0E
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_236F12
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236F0E:: @ 8236F0E
|
|
setmaplayoutindex LAYOUT_SHOAL_CAVE_HIGH_TIDE_INNER_ROOM
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236F12:: @ 8236F12
|
|
setmaplayoutindex LAYOUT_SHOAL_CAVE_LOW_TIDE_INNER_ROOM
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_MapScript1_236F16: @ 8236F16
|
|
call ShoalCave_LowTideInnerRoom_EventScript_236F1C
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236F1C:: @ 8236F1C
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_236F3D
|
|
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_236F3D
|
|
setmetatile 31, 8, 856, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_236F3D
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236F3D:: @ 8236F3D
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_236F5E
|
|
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_236F5E
|
|
setmetatile 14, 26, 856, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_236F5E
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236F5E:: @ 8236F5E
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_236F76
|
|
setmetatile 41, 20, 857, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_236F76
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236F76:: @ 8236F76
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_236F8E
|
|
setmetatile 41, 10, 857, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_236F8E
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236F8E:: @ 8236F8E
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_236FA6
|
|
setmetatile 6, 9, 857, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_236FA6
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236FA6:: @ 8236FA6
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_236FB9
|
|
setmetatile 16, 13, 857, 1
|
|
return
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236FB9:: @ 8236FB9
|
|
return
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236FBA:: @ 8236FBA
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_236FEC
|
|
giveitem_std ITEM_SHOAL_SHELL
|
|
compare VAR_RESULT, 0
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 41, 20, 859, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SHELL_1
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236FEC:: @ 8236FEC
|
|
msgbox ShoalCave_LowTideInnerRoom_Text_2A81A8, MSGBOX_DEFAULT
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_236FF6:: @ 8236FF6
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_236FEC
|
|
giveitem_std ITEM_SHOAL_SHELL
|
|
compare VAR_RESULT, 0
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 41, 10, 859, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SHELL_2
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_237028:: @ 8237028
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_236FEC
|
|
giveitem_std ITEM_SHOAL_SHELL
|
|
compare VAR_RESULT, 0
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 6, 9, 859, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SHELL_3
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_23705A:: @ 823705A
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_236FEC
|
|
giveitem_std ITEM_SHOAL_SHELL
|
|
compare VAR_RESULT, 0
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 16, 13, 859, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SHELL_4
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_23708C:: @ 823708C
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_2370BE
|
|
giveitem_std ITEM_SHOAL_SALT
|
|
compare VAR_RESULT, 0
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 31, 8, 858, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SALT_1
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_2370BE:: @ 82370BE
|
|
msgbox ShoalCave_LowTideInnerRoom_Text_2A8169, MSGBOX_DEFAULT
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_2370C8:: @ 82370C8
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_2370BE
|
|
giveitem_std ITEM_SHOAL_SALT
|
|
compare VAR_RESULT, 0
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 14, 26, 858, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SALT_2
|
|
releaseall
|
|
end
|