pokeemerald/data/maps/SkyPillar_Outside/scripts.inc

173 lines
4.7 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
SkyPillar_Outside_MapScripts:: @ 82392A8
map_script MAP_SCRIPT_ON_TRANSITION, SkyPillar_Outside_OnTransition
2019-11-08 09:37:46 +01:00
map_script MAP_SCRIPT_ON_LOAD, SkyPillar_Outside_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, SkyPillar_Outside_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
SkyPillar_Outside_OnTransition: @ 82392B8
2019-08-05 17:23:45 +02:00
compare VAR_SOOTOPOLIS_CITY_STATE, 3
2019-11-08 09:37:46 +01:00
call_if_eq SkyPillar_Outside_EventScript_HideMapNamePopup
2019-08-05 17:23:45 +02:00
compare VAR_SOOTOPOLIS_CITY_STATE, 4
2019-12-02 01:19:47 +01:00
call_if_ge SkyPillar_Outside_EventScript_CheckSetAbnormalWeather
2017-11-10 02:21:31 +01:00
end
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_EventScript_HideMapNamePopup:: @ 82392CF
2019-03-10 13:10:59 +01:00
setflag FLAG_HIDE_MAP_NAME_POPUP
2017-11-10 02:21:31 +01:00
return
2019-12-02 01:19:47 +01:00
SkyPillar_Outside_EventScript_CheckSetAbnormalWeather:: @ 82392D3
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAbnormalWeather
2017-11-10 02:21:31 +01:00
return
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_OnLoad: @ 82392DD
call_if_set FLAG_WALLACE_GOES_TO_SKY_PILLAR, SkyPillar_Outside_EventScript_OpenDoor
2017-11-10 02:21:31 +01:00
end
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_EventScript_OpenDoor:: @ 82392E7
2019-06-13 00:47:51 +02:00
setmetatile 14, 4, METATILE_Pacifidlog_SkyPillar_DoorOpen_Top, 0
setmetatile 14, 5, METATILE_Pacifidlog_SkyPillar_DoorOpen_Bottom, 0
2017-11-10 02:21:31 +01:00
return
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_OnFrame: @ 82392FA
map_script_2 VAR_SOOTOPOLIS_CITY_STATE, 3, SkyPillar_Outside_EventScript_WallaceScene
2017-11-10 02:21:31 +01:00
.2byte 0
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_EventScript_WallaceScene:: @ 8239304
2017-11-10 02:21:31 +01:00
lockall
2019-11-08 09:37:46 +01:00
applymovement 1, SkyPillar_Outside_Movement_WallaceApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-06 19:55:30 +02:00
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-08 09:37:46 +01:00
msgbox SkyPillar_Outside_Text_OpenedDoorToSkyPillar, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
delay 30
2019-09-30 07:42:52 +02:00
setvar VAR_0x8004, 1 @ vertical pan
setvar VAR_0x8005, 1 @ horizontal pan
setvar VAR_0x8006, 8 @ num shakes
setvar VAR_0x8007, 3 @ shake delay
special ShakeCamera
2017-11-10 02:21:31 +01:00
waitstate
delay 40
2019-11-08 09:37:46 +01:00
msgbox SkyPillar_Outside_Text_EarthquakeNotMomentToWaste, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-11-08 09:37:46 +01:00
applymovement EVENT_OBJ_ID_PLAYER, SkyPillar_Outside_Movement_PlayerClimbSkyPillar
applymovement 1, SkyPillar_Outside_Movement_WallaceClimbSkyPillar
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-09-30 07:42:52 +02:00
setvar VAR_0x8004, 1 @ vertical pan
setvar VAR_0x8005, 3 @ horizontal pan
setvar VAR_0x8006, 20 @ num shakes
setvar VAR_0x8007, 5 @ shake delay
special ShakeCamera
2017-11-10 02:21:31 +01:00
waitstate
delay 20
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 10
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestRight
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 20
2019-10-06 19:55:30 +02:00
applymovement 1, Common_Movement_WalkInPlaceFastestDown
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 30
2019-11-08 09:37:46 +01:00
msgbox SkyPillar_Outside_Text_SituationGettingWorse, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
setflag FLAG_SYS_WEATHER_CTRL
2019-12-02 01:19:47 +01:00
setweather WEATHER_ABNORMAL
2017-11-10 02:21:31 +01:00
doweather
special WaitWeather
2017-11-10 02:21:31 +01:00
waitstate
delay 30
2019-11-08 09:37:46 +01:00
msgbox SkyPillar_Outside_Text_GotToGoBackForSootopolis, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
playse SE_KAIDAN
2019-12-15 17:42:50 +01:00
fadescreenswapbuffers FADE_TO_BLACK
2019-03-10 13:10:59 +01:00
clearflag FLAG_HIDE_MAP_NAME_POPUP
2019-08-05 17:23:45 +02:00
setvar VAR_SOOTOPOLIS_CITY_STATE, 4
2017-11-10 02:21:31 +01:00
removeobject 1
2018-10-19 03:32:21 +02:00
clearflag FLAG_HIDE_SOOTOPOLIS_CITY_WALLACE
2019-12-15 17:42:50 +01:00
fadescreenswapbuffers FADE_FROM_BLACK
2017-11-10 02:21:31 +01:00
releaseall
end
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_Movement_WallaceApproachPlayer: @ 82393D3
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_down
walk_right
walk_right
walk_right
2017-11-10 02:21:31 +01:00
step_end
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_Movement_WallaceClimbSkyPillar: @ 82393DE
walk_left
walk_left
walk_left
walk_up
walk_up
walk_up
walk_up
walk_right
walk_up
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_Movement_PlayerClimbSkyPillar: @ 82393EB
walk_left
walk_left
walk_left
walk_left
walk_up
walk_up
walk_up
walk_up
walk_right
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_EventScript_Wallace:: @ 82393F8
2017-11-10 02:21:31 +01:00
end
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_EventScript_ClosedDoor:: @ 82393F9
msgbox SkyPillar_Outside_Text_DoorIsClosed, MSGBOX_SIGN
2017-11-10 09:24:21 +01:00
end
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_Text_DoorIsClosed: @ 8239402
2017-11-10 09:24:21 +01:00
.string "The door is closed.$"
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_Text_OpenedDoorToSkyPillar: @ 8239416
2018-12-07 16:41:08 +01:00
.string "WALLACE: Oh, my, I'm terribly sorry!\p"
.string "In my haste, I didn't notice that\n"
.string "I'd left you behind!\p"
.string "I've opened the locked door of\n"
.string "the SKY PILLAR.\p"
2018-12-07 16:41:08 +01:00
.string "{PLAYER}{KUN}, let's be on our way!$"
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_Text_EarthquakeNotMomentToWaste: @ 82394BC
2018-12-07 16:41:08 +01:00
.string "WALLACE: It's an earthquake!\p"
.string "There's not a moment to waste!\n"
.string "We've got to hurry!$"
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_Text_SituationGettingWorse: @ 823950C
.string "WALLACE: Hmm…\n"
.string "The situation is getting worse…$"
2019-11-08 09:37:46 +01:00
SkyPillar_Outside_Text_GotToGoBackForSootopolis: @ 823953A
2018-12-07 16:41:08 +01:00
.string "WALLACE: This isn't good…\p"
.string "The weather distortion is spreading\n"
.string "even here…\p"
.string "{PLAYER}{KUN}.\p"
.string "RAYQUAZA should be farther up\n"
.string "from here.\p"
2018-12-07 16:41:08 +01:00
.string "I'm worried about SOOTOPOLIS.\n"
.string "I've got to go back.\p"
.string "Everything is in your hands now.\n"
2018-12-07 16:41:08 +01:00
.string "Don't fail us!$"