pokeemerald/data/maps/Route128/scripts.inc

309 lines
8.9 KiB
PHP
Raw Normal View History

.set LOCALID_STEVEN, 3
.set LOCALID_ARCHIE, 4
.set LOCALID_MAXIE, 5
2017-11-10 02:21:31 +01:00
Route128_MapScripts:: @ 81F6B38
map_script MAP_SCRIPT_ON_TRANSITION, Route128_OnTransition
2019-11-11 23:19:39 +01:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route128_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
Route128_OnTransition: @ 81F6B43
2019-12-02 01:19:47 +01:00
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAbnormalWeather
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route128_OnFrame: @ 81F6B4D
map_script_2 VAR_ROUTE128_STATE, 1, Route128_EventScript_KyogreAwakenedScene
2017-11-10 02:21:31 +01:00
.2byte 0
2019-11-11 23:19:39 +01:00
Route128_EventScript_KyogreAwakenedScene:: @ 81F6B57
2017-11-10 02:21:31 +01:00
lockall
delay 20
applymovement LOCALID_ARCHIE, Route128_Movement_ArchieLookAround
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_ArchieWhatHappened, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_ARCHIE, Route128_Movement_ArchieBackUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_ArchieIOnlyWanted, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_MAXIE, Route128_Movement_MaxieApproachArchie
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFastestUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_MaxieDoYouUnderstandNow, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_MAXIE, Route128_Movement_MaxieApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_MaxieResposibilityFallsToArchieAndMe, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_ARCHIE, Route128_Movement_ArchieRunLeft
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
applymovement LOCALID_MAXIE, Route128_Movement_MaxieWalkLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_MaxieThisDefiesBelief, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
delay 40
applymovement LOCALID_MAXIE, Route128_Movement_MaxieExit
applymovement LOCALID_ARCHIE, Route128_Movement_ArchieExit
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject LOCALID_MAXIE
removeobject LOCALID_ARCHIE
2017-11-10 02:21:31 +01:00
delay 100
setfieldeffectargument 0, 1
dofieldeffect FLDEFF_NPCFLY_OUT
waitfieldeffect FLDEFF_NPCFLY_OUT
addobject LOCALID_STEVEN
applymovement LOCALID_STEVEN, Route128_Movement_StevenApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestRight
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_StevenWhatIsHappening, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_STEVEN, Route128_Movement_StevenWalkUp
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_StevenWholeWorldWillDrown, MSGBOX_DEFAULT
applymovement LOCALID_STEVEN, Common_Movement_WalkInPlaceFastestDown
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_StevenImGoingToSootopolis, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_STEVEN, Common_Movement_WalkInPlaceFastestDown
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 50
setfieldeffectargument 0, 1
dofieldeffect FLDEFF_NPCFLY_OUT
2017-11-10 02:21:31 +01:00
delay 15
removeobject LOCALID_STEVEN
waitfieldeffect FLDEFF_NPCFLY_OUT
2019-03-10 13:10:59 +01:00
clearflag FLAG_HIDE_MAP_NAME_POPUP
setvar VAR_ROUTE128_STATE, 2
2017-11-10 02:21:31 +01:00
releaseall
end
Route128_Movement_Unused1: @ 81F6C76
walk_fast_left
step_end
Route128_Movement_Unused2: @ 81F6C78
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_up
walk_up
walk_up
walk_up
walk_up
walk_up
step_end
2017-11-10 02:21:31 +01:00
2019-11-11 23:19:39 +01:00
Route128_Movement_StevenWalkUp: @ 81F6C85
walk_up
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_Movement_StevenApproachPlayer: @ 81F6C87
walk_fast_left
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_Movement_ArchieLookAround: @ 81F6C89
walk_fast_down
walk_in_place_fastest_left
delay_16
walk_in_place_fastest_right
delay_16
delay_16
walk_in_place_fastest_down
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_Movement_ArchieBackUp: @ 81F6C91
lock_facing_direction
walk_slow_up
delay_16
unlock_facing_direction
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_Movement_ArchieRunLeft: @ 81F6C96
walk_fast_left
walk_fast_left
walk_fast_left
walk_in_place_fastest_right
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_Movement_ArchieExit: @ 81F6C9B
delay_16
delay_16
walk_fast_up
walk_fast_left
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_Movement_MaxieWalkLeft: @ 81F6CA8
walk_left
walk_left
delay_8
delay_4
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_Movement_MaxieApproachArchie: @ 81F6CAD
walk_left
walk_in_place_fastest_down
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_Movement_MaxieExit: @ 81F6CB0
walk_fast_left
walk_fast_left
walk_fast_left
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_up
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_Movement_MaxieApproachPlayer: @ 81F6CBB
walk_right
walk_in_place_fastest_down
2017-11-10 02:21:31 +01:00
step_end
2019-11-11 23:19:39 +01:00
Route128_EventScript_Isaiah:: @ 81F6CBE
trainerbattle_single TRAINER_ISAIAH_1, Route128_Text_IsaiahIntro, Route128_Text_IsaiahDefeat, Route128_EventScript_RegisterIsaiah
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
2019-11-11 23:19:39 +01:00
compare VAR_RESULT, TRUE
goto_if_eq Route128_EventScript_RematchIsaiah
msgbox Route128_Text_IsaiahPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_RegisterIsaiah:: @ 81F6CEA
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_IsaiahRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_ISAIAH_1
2017-11-10 02:21:31 +01:00
release
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_RematchIsaiah:: @ 81F6D09
trainerbattle_rematch TRAINER_ISAIAH_1, Route128_Text_IsaiahRematchIntro, Route128_Text_IsaiahRematchDefeat
msgbox Route128_Text_IsaiahPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_Katelyn:: @ 81F6D20
trainerbattle_single TRAINER_KATELYN_1, Route128_Text_KatelynIntro, Route128_Text_KatelynDefeat, Route128_EventScript_RegisterKatelyn
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
2019-11-11 23:19:39 +01:00
compare VAR_RESULT, TRUE
goto_if_eq Route128_EventScript_RematchKatelyn
msgbox Route128_Text_KatelynPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_RegisterKatelyn:: @ 81F6D4C
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route128_Text_KatelynRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_KATELYN_1
2017-11-10 02:21:31 +01:00
release
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_RematchKatelyn:: @ 81F6D6B
trainerbattle_rematch TRAINER_KATELYN_1, Route128_Text_KatelynRematchIntro, Route128_Text_KatelynRematchDefeat
msgbox Route128_Text_KatelynPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_Alexa:: @ 81F6D82
trainerbattle_single TRAINER_ALEXA, Route128_Text_AlexaIntro, Route128_Text_AlexaDefeat
msgbox Route128_Text_AlexaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_Ruben:: @ 81F6D99
trainerbattle_single TRAINER_RUBEN, Route128_Text_RubenIntro, Route128_Text_RubenDefeat
msgbox Route128_Text_RubenPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_Wayne:: @ 81F6DB0
trainerbattle_single TRAINER_WAYNE, Route128_Text_WayneIntro, Route128_Text_WayneDefeat
msgbox Route128_Text_WaynePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_Harrison:: @ 81F6DC7
trainerbattle_single TRAINER_HARRISON, Route128_Text_HarrisonIntro, Route128_Text_HarrisonDefeat
msgbox Route128_Text_HarrisonPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route128_EventScript_Carlee:: @ 81F6DDE
trainerbattle_single TRAINER_CARLEE, Route128_Text_CarleeIntro, Route128_Text_CarleeDefeat
msgbox Route128_Text_CarleePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route128_Text_ArchieWhatHappened: @ 81F6DF5
2017-11-10 02:21:31 +01:00
.string "ARCHIE: What happened…\n"
.string "What is this wretched scene…\p"
.string "Did I…make a horrible mistake?$"
2019-11-11 23:19:39 +01:00
Route128_Text_ArchieIOnlyWanted: @ 81F6E48
2017-11-10 02:21:31 +01:00
.string "I…\n"
.string "I only wanted…$"
2019-11-11 23:19:39 +01:00
Route128_Text_MaxieDoYouUnderstandNow: @ 81F6E5A
2017-11-10 02:21:31 +01:00
.string "MAXIE: Do you understand now,\n"
.string "ARCHIE?\p"
.string "Do you finally see how disastrous\n"
.string "your dream turned out to be?\p"
.string "We have to hurry! We have to do\n"
.string "something before the situation goes\l"
.string "completely out of control!$"
2019-11-11 23:19:39 +01:00
Route128_Text_MaxieResposibilityFallsToArchieAndMe: @ 81F6F1E
2018-12-07 16:41:08 +01:00
.string "MAXIE: {PLAYER}, don't say anything.\p"
2017-11-10 02:21:31 +01:00
.string "I know that I have no right to be\n"
.string "critical of ARCHIE…\p"
.string "But the way things are now, I doubt\n"
.string "that we humans will be capable of\l"
.string "doing anything about it.\p"
.string "But neither can we stand by and\n"
.string "just watch helplessly.\p"
.string "The responsibility for putting an end\n"
.string "to this falls to ARCHIE and me…$"
2019-11-11 23:19:39 +01:00
Route128_Text_MaxieThisDefiesBelief: @ 81F704F
2017-11-10 02:21:31 +01:00
.string "MAXIE: This defies belief…\p"
.string "Those super-ancient POKéMON…\p"
.string "Their power is unbelievable.\n"
2018-12-07 16:41:08 +01:00
.string "They've upset the balance of nature…$"
2017-11-10 02:21:31 +01:00
2019-11-11 23:19:39 +01:00
Route128_Text_StevenWhatIsHappening: @ 81F70C9
2017-11-10 02:21:31 +01:00
.string "STEVEN: {PLAYER}{KUN}!\n"
.string "What is happening?$"
2019-11-11 23:19:39 +01:00
Route128_Text_StevenWholeWorldWillDrown: @ 81F70EA
2017-11-10 02:21:31 +01:00
.string "This is terrible…\p"
.string "After the scorching heat wave ended,\n"
.string "this deluge began.\p"
2018-12-07 16:41:08 +01:00
.string "If this doesn't stop, all of HOENN…\n"
2017-11-10 02:21:31 +01:00
.string "No, the whole world will drown.\p"
.string "This huge rain cloud is spreading\n"
.string "from above SOOTOPOLIS…\p"
.string "What in the world is taking place there?\p"
2018-12-07 16:41:08 +01:00
.string "There's no point arguing here…\n"
2017-11-10 02:21:31 +01:00
.string "SOOTOPOLIS might provide answers…$"
2019-11-11 23:19:39 +01:00
Route128_Text_StevenImGoingToSootopolis: @ 81F721B
2017-11-10 02:21:31 +01:00
.string "{PLAYER}{KUN}…\n"
2018-12-07 16:41:08 +01:00
.string "I don't know what you intend to do,\l"
.string "but don't do anything reckless.\p"
2017-11-10 02:21:31 +01:00
.string "Okay.\n"
2018-12-07 16:41:08 +01:00
.string "I'm going to SOOTOPOLIS.$"
2017-11-10 02:21:31 +01:00