pokeemerald/data/maps/ShoalCave_LowTideLowerRoom/scripts.inc

61 lines
2.1 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
ShoalCave_LowTideLowerRoom_MapScripts:: @ 8237156
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
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideLowerRoom_OnLoad: @ 823715C
call ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatiles
2017-11-10 02:21:31 +01:00
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatiles:: @ 8237162
goto_if_set FLAG_RECEIVED_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatilesEnd
setmetatile 18, 2, METATILE_Cave_ShoalCave_DirtPile_Large, 1
2017-11-10 02:21:31 +01:00
return
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideLowerRoom_EventScript_SetShoalItemMetatilesEnd:: @ 8237175
2017-11-10 02:21:31 +01:00
return
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideLowerRoom_EventScript_ShoalSalt4:: @ 8237176
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
2019-11-07 18:17:28 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-11-07 18:17:28 +01:00
setmetatile 18, 2, 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_4
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideLowerRoom_EventScript_ReceivedShoalSalt:: @ 82371A8
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_LowTideLowerRoom_EventScript_BlackBelt:: @ 82371B2
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
2019-11-07 18:17:28 +01:00
compare VAR_RESULT, FALSE
goto_if_eq 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
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideLowerRoom_EventScript_ReceivedFocusBand:: @ 82371E1
msgbox ShoalCave_LowTideLowerRoom_Text_EverythingStartsWithFocus, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideLowerRoom_Text_CanOvercomeColdWithFocus: @ 82371EB
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!$"
2019-11-07 18:17:28 +01:00
ShoalCave_LowTideLowerRoom_Text_EverythingStartsWithFocus: @ 823728D
2017-11-10 02:21:31 +01:00
.string "Everything starts with focus!$"