pokeemerald/data/maps/JaggedPass/scripts.inc

275 lines
8.1 KiB
PHP
Raw Normal View History

.set LOCALID_HIDEOUT_GUARD, 5
2021-07-20 21:18:31 +02:00
JaggedPass_MapScripts::
2019-11-01 22:50:54 +01:00
map_script MAP_SCRIPT_ON_RESUME, JaggedPass_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, JaggedPass_OnTransition
2019-11-01 22:50:54 +01:00
map_script MAP_SCRIPT_ON_LOAD, JaggedPass_OnLoad
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
JaggedPass_OnResume:
setstepcallback STEP_CB_ASH
compare VAR_JAGGED_PASS_STATE, 0
2019-11-01 22:50:54 +01:00
call_if_eq JaggedPass_EventScript_CheckHasMagmaEmblem
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_CheckHasMagmaEmblem::
2021-08-05 18:46:11 +02:00
checkitem ITEM_MAGMA_EMBLEM
compare VAR_RESULT, TRUE
2019-11-01 22:50:54 +01:00
goto_if_eq JaggedPass_EventScript_SetReadyToOpenHideout
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_SetReadyToOpenHideout::
setvar VAR_JAGGED_PASS_STATE, 1
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
JaggedPass_OnTransition:
2019-02-22 10:18:43 +01:00
compare VAR_JAGGED_PASS_ASH_WEATHER, 1
2019-11-01 22:50:54 +01:00
call_if_eq JaggedPass_EventScript_SetWeatherAsh
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_SetWeatherAsh::
2019-12-02 01:19:47 +01:00
setweather WEATHER_VOLCANIC_ASH
2017-11-10 02:21:31 +01:00
doweather
return
2021-07-20 21:18:31 +02:00
JaggedPass_OnLoad:
compare VAR_JAGGED_PASS_STATE, 1
2019-11-01 22:50:54 +01:00
goto_if_le JaggedPass_EventScript_ConcealHideoutEntrance
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_ConcealHideoutEntrance::
setmetatile 16, 17, METATILE_Lavaridge_RockWall, 1
setmetatile 16, 18, METATILE_Lavaridge_RockWall, 1
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_OpenMagmaHideout::
2017-11-10 02:21:31 +01:00
lockall
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, 5 @ shake delay
special ShakeCamera
2017-11-10 02:21:31 +01:00
waitstate
2019-11-01 22:50:54 +01:00
msgbox JaggedPass_Text_BoulderShakingInResponseToEmblem, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-09-30 07:42:52 +02:00
setvar VAR_0x8004, 1 @ vertical pan
setvar VAR_0x8005, 1 @ horizontal pan
setvar VAR_0x8006, 16 @ num shakes
setvar VAR_0x8007, 3 @ shake delay
special ShakeCamera
2017-11-10 02:21:31 +01:00
waitstate
2020-08-21 00:02:00 +02:00
playse SE_EFFECTIVE
setmetatile 16, 17, METATILE_Lavaridge_CaveEntrance_Top, 1
setmetatile 16, 18, METATILE_Lavaridge_CaveEntrance_Bottom, 0
2017-11-10 02:21:31 +01:00
special DrawWholeMapView
delay 30
setvar VAR_JAGGED_PASS_STATE, 2
2017-11-10 02:21:31 +01:00
waitse
releaseall
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_MagmaHideoutGuard::
2017-11-10 02:21:31 +01:00
lockall
2019-11-01 22:50:54 +01:00
goto_if_set FLAG_BEAT_MAGMA_GRUNT_JAGGED_PASS, JaggedPass_EventScript_GuardDefeated
2017-11-10 02:21:31 +01:00
waitse
playse SE_PIN
applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_FacePlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
msgbox JaggedPass_Text_GruntIntro, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
trainerbattle_no_intro TRAINER_GRUNT_JAGGED_PASS, JaggedPass_Text_GruntDefeat
2019-01-02 22:12:43 +01:00
setflag FLAG_BEAT_MAGMA_GRUNT_JAGGED_PASS
applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_FaceOriginalDirection
2017-11-10 02:21:31 +01:00
waitmovement 0
releaseall
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_GuardDefeated::
applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_FacePlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 22:50:54 +01:00
msgbox JaggedPass_Text_GoWhereverYouWant, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_HIDEOUT_GUARD, Common_Movement_FaceOriginalDirection
2017-11-10 02:21:31 +01:00
waitmovement 0
releaseall
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_Eric::
2019-11-01 22:50:54 +01:00
trainerbattle_single TRAINER_ERIC, JaggedPass_Text_EricIntro, JaggedPass_Text_EricDefeat
msgbox JaggedPass_Text_EricPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_Diana::
2019-11-01 22:50:54 +01:00
trainerbattle_single TRAINER_DIANA_1, JaggedPass_Text_DianaIntro, JaggedPass_Text_DianaDefeat, JaggedPass_EventScript_RegisterDiana
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, TRUE
2019-11-01 22:50:54 +01:00
goto_if_eq JaggedPass_EventScript_DianaRematch
msgbox JaggedPass_Text_DianaPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_RegisterDiana::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2019-11-01 22:50:54 +01:00
msgbox JaggedPass_Text_DianaRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_DIANA_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_DianaRematch::
2019-11-01 22:50:54 +01:00
trainerbattle_rematch TRAINER_DIANA_1, JaggedPass_Text_DianaRematchIntro, JaggedPass_Text_DianaRematchDefeat
msgbox JaggedPass_Text_DianaPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_Ethan::
2019-11-01 22:50:54 +01:00
trainerbattle_single TRAINER_ETHAN_1, JaggedPass_Text_EthanIntro, JaggedPass_Text_EthanDefeat, JaggedPass_EventScript_RegisterEthan
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, TRUE
2019-11-01 22:50:54 +01:00
goto_if_eq JaggedPass_EventScript_EthanRematch
msgbox JaggedPass_Text_EthanPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_RegisterEthan::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2019-11-01 22:50:54 +01:00
msgbox JaggedPass_Text_EthanRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_ETHAN_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_EthanRematch::
2019-11-01 22:50:54 +01:00
trainerbattle_rematch TRAINER_ETHAN_1, JaggedPass_Text_EthanRematchIntro, JaggedPass_Text_EthanRematchDefeat
msgbox JaggedPass_Text_EthanPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_Julio::
2019-11-01 22:50:54 +01:00
trainerbattle_single TRAINER_JULIO, JaggedPass_Text_JulioIntro, JaggedPass_Text_JulioDefeat
msgbox JaggedPass_Text_JulioPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
JaggedPass_EventScript_Autumn::
2019-11-01 22:50:54 +01:00
trainerbattle_single TRAINER_AUTUMN, JaggedPass_Text_AutumnIntro, JaggedPass_Text_AutumnDefeat
msgbox JaggedPass_Text_AutumnPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EricIntro:
2018-12-07 16:41:08 +01:00
.string "MT. CHIMNEY's JAGGED PASS…\p"
.string "Now this is what I've always wanted\n"
2017-11-10 02:21:31 +01:00
.string "in a mountain.\p"
.string "This jagged bumpiness…\n"
.string "It rocks my soul!$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EricDefeat:
2017-11-10 02:21:31 +01:00
.string "Losing left me bitter!$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EricPostBattle:
2017-11-10 02:21:31 +01:00
.string "Yes, I did lose at POKéMON…\p"
.string "But, when it comes to the love of\n"
.string "the mountains, I have you beat!$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_DianaIntro:
2018-12-07 16:41:08 +01:00
.string "This place isn't your casual hike.\n"
.string "It's not suited for a picnic.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
JaggedPass_Text_DianaDefeat:
2017-11-10 02:21:31 +01:00
.string "Ohhh, no!\n"
.string "The ground is too bumpy…$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_DianaPostBattle:
2017-11-10 02:21:31 +01:00
.string "Did you know?\p"
.string "Some people cleverly ride their\n"
.string "bicycles up this horribly bumpy pass.$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_DianaRegister:
2017-11-10 02:21:31 +01:00
.string "Will you ever be back in this area?\n"
2018-12-07 16:41:08 +01:00
.string "If you do return, I'd like a rematch.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
JaggedPass_Text_DianaRematchIntro:
2017-11-10 02:21:31 +01:00
.string "Picnics are fun wherever you go.\n"
.string "Just like POKéMON!$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_DianaRematchDefeat:
2017-11-10 02:21:31 +01:00
.string "I only lost because the ground is\n"
.string "too bumpy!$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_DianaPostRematch:
2018-12-07 16:41:08 +01:00
.string "I'll forget about losing and just\n"
2017-11-10 02:21:31 +01:00
.string "enjoy this bumpy hike.$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EthanIntro:
2017-11-10 02:21:31 +01:00
.string "JAGGED PASS is hard to walk on.\n"
2018-12-07 16:41:08 +01:00
.string "It's a good place for training.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EthanDefeat:
2017-11-10 02:21:31 +01:00
.string "It was all over while we were still\n"
.string "trying to find a good footing…$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EthanPostBattle:
2018-12-07 16:41:08 +01:00
.string "If I had an ACRO BIKE, I'd be able to\n"
2017-11-10 02:21:31 +01:00
.string "jump ledges.$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EthanRegister:
2017-11-10 02:21:31 +01:00
.string "When I get more used to this bumpiness,\n"
2018-12-07 16:41:08 +01:00
.string "I'll be sure to win!\p"
2017-11-10 02:21:31 +01:00
.string "Can you register me in your POKéNAV?$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EthanRematchIntro:
2017-11-10 02:21:31 +01:00
.string "I got used to this bumpiness.\n"
.string "I sing while I climb now.$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EthanRematchDefeat:
2018-12-07 16:41:08 +01:00
.string "It's still not easy to battle on this\n"
2017-11-10 02:21:31 +01:00
.string "bumpy ground…$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_EthanPostRematch:
2017-11-10 02:21:31 +01:00
.string "I should get an ACRO BIKE from RYDEL\n"
.string "in MAUVILLE CITY…$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_GruntIntro:
2017-11-10 02:21:31 +01:00
.string "Wah!\n"
.string "What are you doing here?\p"
.string "What am I doing in a place like this?\p"
.string "What business is it of yours?$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_GruntDefeat:
2017-11-10 02:21:31 +01:00
.string "Urrrgh…\p"
2018-12-07 16:41:08 +01:00
.string "I should've ducked into our HIDEOUT\n"
2017-11-10 02:21:31 +01:00
.string "right away…$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_GoWhereverYouWant:
2017-11-10 02:21:31 +01:00
.string "Okay, oh-kay!\n"
2018-12-07 16:41:08 +01:00
.string "I admit it--you're strong!\p"
.string "Don't worry about me.\n"
2017-11-10 02:21:31 +01:00
.string "Go wherever you want!$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_BoulderShakingInResponseToEmblem:
2017-11-10 02:21:31 +01:00
.string "Oh! This boulder is shaking in response\n"
.string "to the MAGMA EMBLEM!$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_JulioIntro:
2018-12-07 16:41:08 +01:00
.string "Aiyeeh! It's awfully scary to shoot\n"
2017-11-10 02:21:31 +01:00
.string "down the mountain in one go!$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_JulioDefeat:
2018-12-07 16:41:08 +01:00
.string "I feel like I'm falling apart…$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
JaggedPass_Text_JulioPostBattle:
2017-11-10 02:21:31 +01:00
.string "My bicycle bounced around so much,\n"
2018-12-07 16:41:08 +01:00
.string "my rear end's sore…$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
JaggedPass_Text_AutumnIntro:
2017-11-10 02:21:31 +01:00
.string "I climb this hill every day.\n"
.string "I have confidence in my strength!$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_AutumnDefeat:
2017-11-10 02:21:31 +01:00
.string "Hmm…\n"
.string "What went wrong?$"
2021-07-20 21:18:31 +02:00
JaggedPass_Text_AutumnPostBattle:
2017-11-10 02:21:31 +01:00
.string "What is that odd rock protrusion\n"
.string "a little up the hill from here?$"