pokeemerald/data/maps/ShoalCave_LowTideInnerRoom/scripts.inc

137 lines
5.3 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_MapScripts::
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
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_OnTransition:
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
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_SetHighTide::
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
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_SetLowTide::
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
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_OnLoad:
2019-11-07 18:17:28 +01:00
call ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles::
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
2021-11-16 23:12:16 +01:00
setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Large, TRUE
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2::
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
2021-11-16 23:12:16 +01:00
setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Large, TRUE
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3::
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4
2021-11-16 23:12:16 +01:00
setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Large, TRUE
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4::
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5
2021-11-16 23:12:16 +01:00
setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Large, TRUE
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5::
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6
2021-11-16 23:12:16 +01:00
setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Large, TRUE
2019-11-07 18:17:28 +01:00
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6::
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatilesEnd
2021-11-16 23:12:16 +01:00
setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Large, TRUE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatilesEnd::
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell1::
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
giveitem ITEM_SHOAL_SHELL
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2021-11-16 23:12:16 +01:00
setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Small, FALSE
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
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell::
2019-11-07 18:17:28 +01:00
msgbox ShoalCave_Text_WasShoallShellNowNothing, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell2::
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
giveitem ITEM_SHOAL_SHELL
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2021-11-16 23:12:16 +01:00
setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Small, FALSE
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
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell3::
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
giveitem ITEM_SHOAL_SHELL
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2021-11-16 23:12:16 +01:00
setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Small, FALSE
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
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell4::
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
giveitem ITEM_SHOAL_SHELL
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2021-11-16 23:12:16 +01:00
setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Small, FALSE
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
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt1::
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
giveitem ITEM_SHOAL_SALT
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2021-11-16 23:12:16 +01:00
setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Small, FALSE
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
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt::
2019-11-07 18:17:28 +01:00
msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt2::
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
giveitem ITEM_SHOAL_SALT
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2021-11-16 23:12:16 +01:00
setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Small, FALSE
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