mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 20:24:18 +01:00
143 lines
5.5 KiB
PHP
143 lines
5.5 KiB
PHP
ShoalCave_LowTideInnerRoom_MapScripts:: @ 8236EF5
|
|
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideInnerRoom_OnLoad
|
|
map_script MAP_SCRIPT_ON_TRANSITION, ShoalCave_LowTideInnerRoom_OnTransition
|
|
.byte 0
|
|
|
|
ShoalCave_LowTideInnerRoom_OnTransition: @ 8236F00
|
|
goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_SetHighTide
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_SetLowTide
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_SetHighTide:: @ 8236F0E
|
|
setmaplayoutindex LAYOUT_SHOAL_CAVE_HIGH_TIDE_INNER_ROOM
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_SetLowTide:: @ 8236F12
|
|
setmaplayoutindex LAYOUT_SHOAL_CAVE_LOW_TIDE_INNER_ROOM
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_OnLoad: @ 8236F16
|
|
call ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles
|
|
end
|
|
|
|
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
|
|
setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Large, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles2
|
|
end
|
|
|
|
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
|
|
setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Large, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles3:: @ 8236F5E
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4
|
|
setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Large, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles4:: @ 8236F76
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5
|
|
setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Large, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles5:: @ 8236F8E
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6
|
|
setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Large, 1
|
|
goto ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatiles6:: @ 8236FA6
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatilesEnd
|
|
setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Large, 1
|
|
return
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_SetShoalItemMetatilesEnd:: @ 8236FB9
|
|
return
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell1:: @ 8236FBA
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
|
|
giveitem ITEM_SHOAL_SHELL
|
|
compare VAR_RESULT, FALSE
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 41, 20, METATILE_Cave_ShoalCave_BlueStone_Small, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SHELL_1
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell:: @ 8236FEC
|
|
msgbox ShoalCave_Text_WasShoallShellNowNothing, MSGBOX_DEFAULT
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell2:: @ 8236FF6
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
|
|
giveitem ITEM_SHOAL_SHELL
|
|
compare VAR_RESULT, FALSE
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 41, 10, METATILE_Cave_ShoalCave_BlueStone_Small, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SHELL_2
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell3:: @ 8237028
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
|
|
giveitem ITEM_SHOAL_SHELL
|
|
compare VAR_RESULT, FALSE
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 6, 9, METATILE_Cave_ShoalCave_BlueStone_Small, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SHELL_3
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_ShoalShell4:: @ 823705A
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalShell
|
|
giveitem ITEM_SHOAL_SHELL
|
|
compare VAR_RESULT, FALSE
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 16, 13, METATILE_Cave_ShoalCave_BlueStone_Small, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SHELL_4
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt1:: @ 823708C
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt
|
|
giveitem ITEM_SHOAL_SALT
|
|
compare VAR_RESULT, FALSE
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 31, 8, METATILE_Cave_ShoalCave_DirtPile_Small, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SALT_1
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt:: @ 82370BE
|
|
msgbox ShoalCave_Text_WasShoalSaltNowNothing, MSGBOX_DEFAULT
|
|
releaseall
|
|
end
|
|
|
|
ShoalCave_LowTideInnerRoom_EventScript_ShoalSalt2:: @ 82370C8
|
|
lockall
|
|
goto_if_set FLAG_RECEIVED_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_ReceivedShoalSalt
|
|
giveitem ITEM_SHOAL_SALT
|
|
compare VAR_RESULT, FALSE
|
|
goto_if_eq Common_EventScript_ShowBagIsFull
|
|
setmetatile 14, 26, METATILE_Cave_ShoalCave_DirtPile_Small, 0
|
|
special DrawWholeMapView
|
|
setflag FLAG_RECEIVED_SHOAL_SALT_2
|
|
releaseall
|
|
end
|