pokeemerald/data/maps/ShoalCave_LowTideLowerRoom/scripts.inc

59 lines
2.0 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
ShoalCave_LowTideLowerRoom_MapScripts::
2019-11-07 18:17:28 +01:00
map_script MAP_SCRIPT_ON_LOAD, ShoalCave_LowTideLowerRoom_OnLoad
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideLowerRoom_OnLoad:
2019-11-07 18:17:28 +01:00
call ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatiles
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatiles::
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatilesEnd
2021-11-16 23:12:16 +01:00
setmetatile 18, 2, METATILE_Cave_ShoalCave_DirtPile_Large, TRUE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatilesEnd::
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideLowerRoom_EventScript_ShoalSalt4::
2017-11-10 02:21:31 +01:00
lockall
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_ReceivedShoalSalt
giveitem ITEM_SHOAL_SALT
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2021-11-16 23:12:16 +01:00
setmetatile 18, 2, 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_4
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideLowerRoom_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_LowTideLowerRoom_EventScript_BlackBelt::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-07 18:17:28 +01:00
goto_if_set FLAG_RECEIVED_FOCUS_BAND, ShoalCave_LowTideLowerRoom_EventScript_ReceivedFocusBand
msgbox ShoalCave_LowTideLowerRoom_Text_CanOvercomeColdWithFocus, MSGBOX_DEFAULT
giveitem ITEM_FOCUS_BAND
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_FOCUS_BAND
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideLowerRoom_EventScript_ReceivedFocusBand::
2019-11-07 18:17:28 +01:00
msgbox ShoalCave_LowTideLowerRoom_Text_EverythingStartsWithFocus, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideLowerRoom_Text_CanOvercomeColdWithFocus:
2017-11-10 02:21:31 +01:00
.string "The penetrating cold around these\n"
.string "parts is an impediment to training.\p"
.string "But with focus, one can overcome!\p"
.string "With this FOCUS BAND, buckle down and\n"
.string "withstand the cold!$"
2021-07-20 21:18:31 +02:00
ShoalCave_LowTideLowerRoom_Text_EverythingStartsWithFocus:
2017-11-10 02:21:31 +01:00
.string "Everything starts with focus!$"