pokeemerald/data/maps/ShoalCave_LowTideInnerRoom/scripts.inc

143 lines
5.5 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
ShoalCave_LowTideInnerRoom_MapScripts:: @ 8236EF5
2019-11-07 18:17:28 +01:00
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideInnerRoom_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, ShoalCave_LowTideInnerRoom_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
ShoalCave_LowTideInnerRoom_OnTransition: @ 8236F00
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_SetHighTide
goto ShoalCave_LowTideInnerRoom_EventScript_SetLowTide
2017-11-10 02:21:31 +01:00
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_SetHighTide:: @ 8236F0E
2019-01-31 22:51:20 +01:00
setmaplayoutindex LAYOUT_SHOAL_CAVE_HIGH_TIDE_INNER_ROOM
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_SetLowTide:: @ 8236F12
2019-01-31 22:51:20 +01:00
setmaplayoutindex LAYOUT_SHOAL_CAVE_LOW_TIDE_INNER_ROOM
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_OnLoad: @ 8236F16
call ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles:: @ 8236F1C
goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
2019-06-13 00:47:51 +02:00
setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Large, 1
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2:: @ 8236F3D
goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
2019-06-13 00:47:51 +02:00
setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Large, 1
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3:: @ 8236F5E
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4
2019-06-13 00:47:51 +02:00
setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Large, 1
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4:: @ 8236F76
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5
2019-06-13 00:47:51 +02:00
setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Large, 1
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5:: @ 8236F8E
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6
2019-06-13 00:47:51 +02:00
setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Large, 1
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6:: @ 8236FA6
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatilesEnd
2019-06-13 00:47:51 +02:00
setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Large, 1
2017-11-10 02:21:31 +01:00
return
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatilesEnd:: @ 8236FB9
2017-11-10 02:21:31 +01:00
return
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell1:: @ 8236FBA
2017-11-10 02:21:31 +01:00
lockall
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_SHOAL_SHELL
2019-11-07 18:17:28 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-06-13 00:47:51 +02:00
setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Small, 0
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
2019-01-03 02:54:55 +01:00
setflag FLAG_RECEIVED_SHOAL_SHELL_1
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell:: @ 8236FEC
msgbox ShoalCave_Text_WasShoallShellNowNothing, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell2:: @ 8236FF6
2017-11-10 02:21:31 +01:00
lockall
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_SHOAL_SHELL
2019-11-07 18:17:28 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-06-13 00:47:51 +02:00
setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Small, 0
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
2019-01-03 02:54:55 +01:00
setflag FLAG_RECEIVED_SHOAL_SHELL_2
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell3:: @ 8237028
2017-11-10 02:21:31 +01:00
lockall
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_SHOAL_SHELL
2019-11-07 18:17:28 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-06-13 00:47:51 +02:00
setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Small, 0
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
2019-01-03 02:54:55 +01:00
setflag FLAG_RECEIVED_SHOAL_SHELL_3
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell4:: @ 823705A
2017-11-10 02:21:31 +01:00
lockall
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_SHOAL_SHELL
2019-11-07 18:17:28 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-06-13 00:47:51 +02:00
setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Small, 0
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
2019-01-03 02:54:55 +01:00
setflag FLAG_RECEIVED_SHOAL_SHELL_4
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt1:: @ 823708C
2017-11-10 02:21:31 +01:00
lockall
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_SHOAL_SALT
2019-11-07 18:17:28 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-06-13 00:47:51 +02:00
setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Small, 0
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
2019-01-03 02:54:55 +01:00
setflag FLAG_RECEIVED_SHOAL_SALT_1
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt:: @ 82370BE
msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt2:: @ 82370C8
2017-11-10 02:21:31 +01:00
lockall
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt
2017-11-10 02:21:31 +01:00
giveitem_std ITEM_SHOAL_SALT
2019-11-07 18:17:28 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-06-13 00:47:51 +02:00
setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Small, 0
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
2019-01-03 02:54:55 +01:00
setflag FLAG_RECEIVED_SHOAL_SALT_2
2017-11-10 02:21:31 +01:00
releaseall
end