1178 lines
37 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.set LOCALID_FAT_MAN, 1
.set LOCALID_MAN_1, 2
.set LOCALID_RICH_BOY, 3
.set LOCALID_GRUNT_1, 5
.set LOCALID_COOK, 6
.set LOCALID_OLD_WOMAN, 7
.set LOCALID_GIRL, 8
.set LOCALID_TY, 9
.set LOCALID_GABBY, 10
.set LOCALID_CAPT_STERN, 11
.set LOCALID_GRUNT_2, 18
.set LOCALID_GRUNT_3, 19
.set LOCALID_GRUNT_4, 26
.set LOCALID_GRUNT_5, 27
.set LOCALID_GRUNT_6, 28
.set LOCALID_GRUNT_7, 29
.set LOCALID_GRUNT_8, 30
.set LOCALID_GRUNT_9, 31
.set LOCALID_GRUNT_11, 33
.set LOCALID_SCOTT, 35
@ Note: LOCALID_SLATEPORT_ENERGY_GURU is a local id for this map used elsewhere. It's defined in event_objects.h
SlateportCity_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, SlateportCity_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, SlateportCity_OnFrame
.byte 0
SlateportCity_OnTransition:
setvar VAR_SLATEPORT_MUSEUM_1F_STATE, 0
call SlateportCity_EventScript_EnterSlateport
call_if_eq VAR_SLATEPORT_CITY_STATE, 1, SlateportCity_EventScript_MovePeopleForSternInterview
call_if_eq VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE, 1, SlateportCity_EventScript_SetReadyForScottScene
end
SlateportCity_EventScript_EnterSlateport::
setflag FLAG_VISITED_SLATEPORT_CITY
setvar VAR_CONTEST_HALL_STATE, 0
setflag FLAG_HIDE_SLATEPORT_CITY_CONTEST_REPORTER
return
SlateportCity_EventScript_MovePeopleForSternInterview::
setobjectxyperm LOCALID_CAPT_STERN, 28, 13
setobjectxyperm LOCALID_OLD_WOMAN, 25, 13
setobjectxyperm LOCALID_RICH_BOY, 25, 14
setobjectxyperm LOCALID_COOK, 27, 16
setobjectxyperm LOCALID_GIRL, 28, 16
setobjectxyperm LOCALID_FAT_MAN, 29, 16
setobjectxyperm LOCALID_MAN_1, 31, 14
setobjectmovementtype LOCALID_CAPT_STERN, MOVEMENT_TYPE_FACE_DOWN
setobjectmovementtype LOCALID_OLD_WOMAN, MOVEMENT_TYPE_FACE_DOWN_AND_RIGHT
setobjectmovementtype LOCALID_RICH_BOY, MOVEMENT_TYPE_FACE_UP_AND_RIGHT
setobjectmovementtype LOCALID_COOK, MOVEMENT_TYPE_FACE_UP
setobjectmovementtype LOCALID_GIRL, MOVEMENT_TYPE_FACE_UP
setobjectmovementtype LOCALID_FAT_MAN, MOVEMENT_TYPE_FACE_UP
setobjectmovementtype LOCALID_MAN_1, MOVEMENT_TYPE_FACE_LEFT
return
SlateportCity_EventScript_SetReadyForScottScene::
setflag FLAG_HIDE_MAP_NAME_POPUP
getplayerxy VAR_0x8004, VAR_0x8005
goto_if_eq VAR_0x8004, 30, SlateportCity_EventScript_MoveScottLeft
setobjectxyperm LOCALID_SCOTT, 23, 27
setobjectmovementtype LOCALID_SCOTT, MOVEMENT_TYPE_FACE_RIGHT
return
SlateportCity_EventScript_MoveScottLeft::
setobjectxyperm LOCALID_SCOTT, 22, 27
setobjectmovementtype LOCALID_SCOTT, MOVEMENT_TYPE_FACE_RIGHT
return
SlateportCity_OnFrame:
map_script_2 VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE, 1, SlateportCity_EventScript_ScottScene
.2byte 0
SlateportCity_EventScript_ScottScene::
lockall
addobject LOCALID_SCOTT
applymovement OBJ_EVENT_ID_PLAYER, SlateportCity_Movement_PlayerFaceScott
applymovement LOCALID_SCOTT, SlateportCity_Movement_ScottApproachPlayer
waitmovement 0
msgbox SlateportCity_Text_YouDroveTeamAquaAway, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_SCOTT, Common_Movement_WalkInPlaceFasterLeft
waitmovement 0
delay 60
msgbox SlateportCity_Text_MaybeThisTrainer, MSGBOX_DEFAULT
applymovement LOCALID_SCOTT, Common_Movement_WalkInPlaceFasterRight
waitmovement 0
msgbox SlateportCity_Text_LetsRegisterEachOther, MSGBOX_DEFAULT
closemessage
delay 30
playfanfare MUS_REGISTER_MATCH_CALL
msgbox SlateportCity_Text_RegisteredScott, MSGBOX_DEFAULT
waitfanfare
closemessage
delay 30
setflag FLAG_ENABLE_SCOTT_MATCH_CALL
msgbox SlateportCity_Text_KeepEyeOnTrainersBeSeeingYou, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_SCOTT, SlateportCity_Movement_ScottExit
waitmovement 0
removeobject LOCALID_SCOTT
setobjectxyperm LOCALID_SCOTT, 10, 12
setobjectmovementtype LOCALID_SCOTT, MOVEMENT_TYPE_FACE_DOWN
clearflag FLAG_HIDE_MAP_NAME_POPUP
setvar VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE, 2
addvar VAR_SCOTT_STATE, 1
releaseall
end
SlateportCity_Movement_PlayerFaceScott:
delay_16
delay_8
walk_in_place_faster_left
step_end
SlateportCity_Movement_ScottApproachPlayer:
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
step_end
SlateportCity_Movement_ScottExit:
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
step_end
SlateportCity_EventScript_EnergyGuru::
lock
faceplayer
message SlateportCity_Text_EnergyGuruSellWhatYouNeed
waitmessage
pokemart SlateportCity_Pokemart_EnergyGuru
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
SlateportCity_Pokemart_EnergyGuru:
.2byte ITEM_PROTEIN
.2byte ITEM_IRON
.2byte ITEM_CARBOS
.2byte ITEM_ZINC
.2byte ITEM_CALCIUM
.2byte ITEM_HP_UP
pokemartlistend
SlateportCity_EventScript_EffortRibbonWoman::
lock
faceplayer
bufferleadmonspeciesname STR_VAR_1
msgbox SlateportCity_Text_OhYourPokemon, MSGBOX_DEFAULT
specialvar VAR_RESULT, LeadMonHasEffortRibbon
call_if_eq VAR_RESULT, TRUE, SlateportCity_EventScript_MonHasEffortRibbon
specialvar VAR_RESULT, Special_AreLeadMonEVsMaxedOut
call_if_eq VAR_RESULT, FALSE, SlateportCity_EventScript_MonEVsNotMaxed
msgbox SlateportCity_Text_PleaseGiveItThisEffortRibbon, MSGBOX_DEFAULT
playfanfare MUS_OBTAIN_ITEM
message SlateportCity_Text_ReceivedEffortRibbon
waitfanfare
msgbox SlateportCity_Text_PutEffortRibbonOnMon, MSGBOX_DEFAULT
special GiveLeadMonEffortRibbon
release
end
SlateportCity_EventScript_MonEVsNotMaxed::
msgbox SlateportCity_Text_GoForItLittleHarder, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_MonHasEffortRibbon::
msgbox SlateportCity_Text_EffortRibbonLooksGoodOnIt, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_Cook::
lock
faceplayer
call_if_eq VAR_SLATEPORT_CITY_STATE, 1, SlateportCity_EventScript_CookSternInterview
msgbox SlateportCity_Text_SeaweedFullOfLife, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_CookSternInterview::
msgbox SlateportCity_Text_CaptainComeBackWithBigFish, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_OldWoman::
lock
faceplayer
call_if_eq VAR_SLATEPORT_CITY_STATE, 1, SlateportCity_EventScript_OldWomanSternInterview
msgbox SlateportCity_Text_HowTownIsBornAndGrows, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_OldWomanSternInterview::
msgbox SlateportCity_Text_CaptSternBeingInterviewed, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_Girl::
lock
faceplayer
call_if_eq VAR_SLATEPORT_CITY_STATE, 1, SlateportCity_EventScript_GirlSternInterview
goto_if_set FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_GirlSecretBase
msgbox SlateportCity_Text_SlateportWonderfulPlace, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_GirlSternInterview::
msgbox SlateportCity_Text_InterviewerSoCool, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_GirlSecretBase::
msgbox SlateportCity_Text_BuyBricksSoDecorWontGetDirty, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_RichBoy::
lock
faceplayer
call_if_eq VAR_SLATEPORT_CITY_STATE, 1, SlateportCity_EventScript_RichBoySternInterview
msgbox SlateportCity_Text_GoingToCompeteInBattleTent, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_RichBoySternInterview::
msgbox SlateportCity_Text_SternSaysDiscoveredSomething, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_FatMan::
goto_if_eq VAR_SLATEPORT_CITY_STATE, 1, SlateportCity_EventScript_FatManSternInterview
msgbox SlateportCity_Text_BushedHikingFromMauville, MSGBOX_NPC
end
SlateportCity_EventScript_FatManSternInterview::
msgbox SlateportCity_Text_AmIOnTV, MSGBOX_SIGN
end
SlateportCity_EventScript_Man1::
lock
faceplayer
call_if_eq VAR_SLATEPORT_CITY_STATE, 1, SlateportCity_EventScript_Man1SternInterview
msgbox SlateportCity_Text_EveryoneCallsHimCaptStern, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_Man1SternInterview::
msgbox SlateportCity_Text_CaptainsACelebrity, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_Woman1::
lock
faceplayer
goto_if_set FLAG_DOCK_REJECTED_DEVON_GOODS, SlateportCity_EventScript_Woman1AquaGone
msgbox SlateportCity_Text_WhatsLongLineOverThere, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_Woman1AquaGone::
msgbox SlateportCity_Text_VisitedMuseumOften, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_BattleTentSign::
msgbox SlateportCity_Text_BattleTentSign, MSGBOX_SIGN
end
SlateportCity_EventScript_SternsShipyardSign::
lockall
goto_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_EventScript_SternsShipyardFerryComplete
goto_if_set FLAG_BADGE07_GET, SlateportCity_EventScript_SternsShipyardNearsCompletion
msgbox SlateportCity_Text_SternsShipyardWantedSign, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_SternsShipyardNearsCompletion::
msgbox SlateportCity_Text_SternsShipyardNearsCompletion, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_SternsShipyardFerryComplete::
msgbox SlateportCity_Text_SternsShipyardFerryComplete, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_PokemonFanClubSign::
msgbox SlateportCity_Text_PokemonFanClubSign, MSGBOX_SIGN
end
SlateportCity_EventScript_OceanicMuseumSign::
msgbox SlateportCity_Text_OceanicMuseumSign, MSGBOX_SIGN
end
SlateportCity_EventScript_CitySign::
msgbox SlateportCity_Text_CitySign, MSGBOX_SIGN
end
SlateportCity_EventScript_MarketSign::
msgbox SlateportCity_Text_MarketSign, MSGBOX_SIGN
end
SlateportCity_EventScript_HarborSign::
lockall
goto_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_EventScript_HarborSignFerryComplete
msgbox SlateportCity_Text_HarborFerryUnderConstruction, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_HarborSignFerryComplete::
msgbox SlateportCity_Text_HarborSign, MSGBOX_DEFAULT
releaseall
end
SlateportCity_EventScript_NameRatersHouseSign::
msgbox SlateportCity_Text_NameRatersHouseSign, MSGBOX_SIGN
end
SlateportCity_EventScript_Maniac::
lock
faceplayer
call_if_eq VAR_SLATEPORT_CITY_STATE, 1, SlateportCity_EventScript_ManiacSternInterview
msgbox SlateportCity_Text_GetNameRaterToHelpYou, MSGBOX_DEFAULT
release
end
@ Unclear if the text here was meant to be different, but its not
SlateportCity_EventScript_ManiacSternInterview::
msgbox SlateportCity_Text_GetNameRaterToHelpYou, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_Woman2::
msgbox SlateportCity_Text_CantChangeTradeMonName, MSGBOX_NPC
end
SlateportCity_EventScript_Sailor1::
msgbox SlateportCity_Text_SeaIsSoWet, MSGBOX_NPC
end
SlateportCity_EventScript_Sailor2::
msgbox SlateportCity_Text_SinkOldBoats, MSGBOX_NPC
end
SlateportCity_EventScript_PokefanF::
msgbox SlateportCity_Text_BuyTooMuch, MSGBOX_NPC
end
SlateportCity_EventScript_Man2::
msgbox SlateportCity_Text_BattleTentBuiltRecently, MSGBOX_NPC
end
SlateportCity_EventScript_AquaGrunt1::
lock
faceplayer
msgbox SlateportCity_Text_QuitPushing, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_1, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_AquaGrunt2::
lock
faceplayer
msgbox SlateportCity_Text_AquaHasPolicy, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_2, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_AquaGrunt3::
lock
faceplayer
msgbox SlateportCity_Text_BossIsBrilliant, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_3, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_AquaGrunt4::
lock
faceplayer
msgbox SlateportCity_Text_WhatsNewSchemeIWonder, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_4, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_AquaGrunt5::
lock
faceplayer
msgbox SlateportCity_Text_ShouldTakeItAll, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_5, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_AquaGrunt6::
lock
faceplayer
msgbox SlateportCity_Text_DontButtIn, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_6, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_AquaGrunt7::
lock
faceplayer
msgbox SlateportCity_Text_RemindsMeOfLongLineForGames, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_7, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_AquaGrunt8::
lock
faceplayer
msgbox SlateportCity_Text_WhyAreWeLiningUp, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_8, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_AquaGrunt9::
lock
faceplayer
playse SE_PIN
applymovement LOCALID_GRUNT_9, Common_Movement_ExclamationMark
waitmovement 0
applymovement LOCALID_GRUNT_9, Common_Movement_Delay48
waitmovement 0
msgbox SlateportCity_Text_WhatDoYouWant, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_9, Common_Movement_FaceOriginalDirection
waitmovement 0
applymovement LOCALID_GRUNT_9, SlateportCity_Movement_DelayAquaGrunt
waitmovement 0
applymovement LOCALID_GRUNT_9, Common_Movement_FacePlayer
waitmovement 0
msgbox SlateportCity_Text_IllReadSignForYou, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_9, Common_Movement_FaceOriginalDirection
waitmovement 0
applymovement LOCALID_GRUNT_9, SlateportCity_Movement_DelayAquaGrunt
waitmovement 0
msgbox SlateportCity_Text_SaysSomethingLikeSeaIsEndless, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_9, Common_Movement_FacePlayer
waitmovement 0
applymovement LOCALID_GRUNT_9, SlateportCity_Movement_DelayAquaGrunt
waitmovement 0
applymovement LOCALID_GRUNT_9, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_Movement_DelayAquaGrunt:
delay_16
delay_16
step_end
SlateportCity_EventScript_AquaGrunt10::
msgbox SlateportCity_Text_ShouldveBroughtMyGameBoy, MSGBOX_SIGN
end
SlateportCity_EventScript_AquaGrunt11::
lock
faceplayer
msgbox SlateportCity_Text_HotSpringsAfterOperation, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GRUNT_11, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
SlateportCity_EventScript_DollClerk::
lock
faceplayer
message gText_HowMayIServeYou
waitmessage
pokemartdecoration SlateportCity_PokemartDecor_Dolls
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
SlateportCity_PokemartDecor_Dolls:
.2byte DECOR_AZURILL_DOLL
.2byte DECOR_MARILL_DOLL
.2byte DECOR_SKITTY_DOLL
pokemartlistend
SlateportCity_EventScript_ComeBackWithSecretPower::
msgbox gText_ComeBackWithSecretPower, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_DecorClerk::
lock
faceplayer
goto_if_unset FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_ComeBackWithSecretPower
message gText_HowMayIServeYou
waitmessage
pokemartdecoration SlateportCity_PokemartDecor
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
SlateportCity_PokemartDecor:
.2byte DECOR_RED_BRICK
.2byte DECOR_BLUE_BRICK
.2byte DECOR_YELLOW_BRICK
.2byte DECOR_RED_BALLOON
.2byte DECOR_BLUE_BALLOON
.2byte DECOR_YELLOW_BALLOON
.2byte DECOR_C_LOW_NOTE_MAT
.2byte DECOR_D_NOTE_MAT
.2byte DECOR_E_NOTE_MAT
.2byte DECOR_F_NOTE_MAT
.2byte DECOR_G_NOTE_MAT
.2byte DECOR_A_NOTE_MAT
.2byte DECOR_B_NOTE_MAT
.2byte DECOR_C_HIGH_NOTE_MAT
pokemartlistend
SlateportCity_EventScript_PowerTMClerk::
lock
faceplayer
message gText_HowMayIServeYou
waitmessage
pokemart SlateportCity_Pokemart_PowerTMs
msgbox gText_PleaseComeAgain, MSGBOX_DEFAULT
release
end
.align 2
SlateportCity_Pokemart_PowerTMs:
.2byte ITEM_TM_HIDDEN_POWER
.2byte ITEM_TM_SECRET_POWER
pokemartlistend
@ Scene with Capt Sterns interview and Team Aqua announcing plans to steal Submarine
SlateportCity_EventScript_CaptStern::
lockall
msgbox SlateportCity_Text_SternMoveAheadWithExploration, MSGBOX_DEFAULT
msgbox SlateportCity_Text_GabbyWonderfulThanksForInterview, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_GABBY, Common_Movement_WalkInPlaceFasterRight
waitmovement 0
delay 10
applymovement LOCALID_TY, Common_Movement_WalkInPlaceFasterDown
waitmovement 0
delay 25
applymovement LOCALID_CAPT_STERN, SlateportCity_Movement_SternWatchGabbyAndTyExit
applymovement OBJ_EVENT_ID_PLAYER, SlateportCity_Movement_PlayerFaceStern
applymovement LOCALID_GABBY, SlateportCity_Movement_GabbyExit
applymovement LOCALID_TY, SlateportCity_Movement_TyExit
waitmovement 0
removeobject LOCALID_GABBY
removeobject LOCALID_TY
msgbox SlateportCity_Text_SternWhewFirstInterview, MSGBOX_DEFAULT
applymovement LOCALID_CAPT_STERN, Common_Movement_WalkInPlaceFasterUp
waitmovement 0
msgbox SlateportCity_Text_OhPlayerWeMadeDiscovery, MSGBOX_DEFAULT
playbgm MUS_ENCOUNTER_AQUA, FALSE
msgbox SlateportCity_Text_AquaWillAssumeControlOfSubmarine, MSGBOX_DEFAULT
applymovement LOCALID_COOK, Common_Movement_WalkInPlaceFasterLeft
applymovement LOCALID_FAT_MAN, Common_Movement_WalkInPlaceFasterLeft
applymovement LOCALID_OLD_WOMAN, SlateportCity_Movement_OldWomanConcern
applymovement LOCALID_RICH_BOY, Common_Movement_QuestionMark
applymovement LOCALID_MAN_1, SlateportCity_Movement_ManConcern
waitmovement 0
applymovement LOCALID_CAPT_STERN, Common_Movement_WalkInPlaceFasterDown
waitmovement 0
msgbox SlateportCity_Text_SternWhatWasAllThat, MSGBOX_DEFAULT
playse SE_PIN
applymovement LOCALID_CAPT_STERN, Common_Movement_ExclamationMark
waitmovement 0
applymovement LOCALID_CAPT_STERN, Common_Movement_Delay48
waitmovement 0
applymovement LOCALID_CAPT_STERN, Common_Movement_WalkInPlaceFasterUp
waitmovement 0
msgbox SlateportCity_Text_FromHarborTryingToTakeSub, MSGBOX_DEFAULT
msgbox SlateportCity_Text_PleaseComeWithMe, MSGBOX_DEFAULT
closemessage
applymovement LOCALID_CAPT_STERN, SlateportCity_Movement_SternEnterHarbor
applymovement OBJ_EVENT_ID_PLAYER, SlateportCity_Movement_PlayerEnterHarbor
waitmovement 0
removeobject LOCALID_CAPT_STERN
clearflag FLAG_HIDE_SLATEPORT_CITY_HARBOR_CAPTAIN_STERN
clearflag FLAG_HIDE_SLATEPORT_CITY_HARBOR_SUBMARINE_SHADOW
clearflag FLAG_HIDE_SLATEPORT_CITY_HARBOR_AQUA_GRUNT
clearflag FLAG_HIDE_SLATEPORT_CITY_HARBOR_ARCHIE
setvar VAR_SLATEPORT_CITY_STATE, 2
warp MAP_SLATEPORT_CITY_HARBOR, 11, 14
waitstate
releaseall
end
SlateportCity_Movement_OldWomanConcern:
delay_16
delay_16
emote_question_mark
walk_in_place_faster_right
delay_16
delay_16
walk_in_place_faster_left
step_end
SlateportCity_Movement_ManConcern:
emote_question_mark
walk_in_place_faster_up
delay_16
walk_in_place_faster_down
delay_16
delay_16
walk_in_place_faster_left
step_end
SlateportCity_Movement_GabbyExit:
delay_16
walk_left
walk_left
walk_down
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
step_end
SlateportCity_Movement_TyExit:
walk_down
walk_left
walk_left
walk_left
walk_down
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
step_end
SlateportCity_Movement_Unused:
walk_down
walk_in_place_faster_up
step_end
SlateportCity_Movement_SternEnterHarbor:
walk_right
walk_up
walk_up
set_invisible
step_end
SlateportCity_Movement_SternWatchGabbyAndTyExit:
delay_16
delay_16
delay_16
delay_16
delay_16
walk_down
walk_left
step_end
SlateportCity_Movement_PlayerEnterHarbor:
walk_in_place_faster_right
delay_16
delay_16
walk_right
walk_up
step_end
SlateportCity_Movement_PlayerFaceStern:
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
delay_16
walk_in_place_faster_down
step_end
SlateportCity_EventScript_Ty::
msgbox SlateportCity_Text_BigSmileForCamera, MSGBOX_SIGN
end
SlateportCity_EventScript_Gabby::
msgbox SlateportCity_Text_MostInvaluableExperience, MSGBOX_SIGN
end
SlateportCity_EventScript_Man3::
msgbox SlateportCity_Text_WonderIfLighthouseStartlesPokemon, MSGBOX_NPC
end
SlateportCity_EventScript_BerryPowderClerk::
lock
faceplayer
goto_if_set FLAG_RECEIVED_POWDER_JAR, SlateportCity_EventScript_ReceivedPowderJar
msgbox SlateportCity_Text_ExplainBerries, MSGBOX_DEFAULT
giveitem ITEM_POWDER_JAR
setflag FLAG_RECEIVED_POWDER_JAR
msgbox SlateportCity_Text_ExplainBerryPowder, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_ReceivedPowderJar::
setvar VAR_0x8004, 1
specialvar VAR_RESULT, HasEnoughBerryPowder
goto_if_eq VAR_RESULT, FALSE, SlateportCity_EventScript_ExplainBerryPowder
msgbox SlateportCity_Text_BroughtMeSomeBerryPowder, MSGBOX_DEFAULT
special DisplayBerryPowderVendorMenu
goto SlateportCity_EventScript_ChooseBerryPowderItem
end
SlateportCity_EventScript_ExplainBerryPowder::
msgbox SlateportCity_Text_ExplainBerryPowder, MSGBOX_DEFAULT
release
end
SlateportCity_EventScript_ChooseBerryPowderItem::
message SlateportCity_Text_ExchangeWhatWithIt
waitmessage
setvar VAR_0x8004, SCROLL_MULTI_BERRY_POWDER_VENDOR
special ShowScrollableMultichoice
waitstate
switch VAR_RESULT
case 0, SlateportCity_EventScript_EnergyPowder
case 1, SlateportCity_EventScript_EnergyRoot
case 2, SlateportCity_EventScript_HealPowder
case 3, SlateportCity_EventScript_RevivalHerb
case 4, SlateportCity_EventScript_Protein
case 5, SlateportCity_EventScript_Iron
case 6, SlateportCity_EventScript_Carbos
case 7, SlateportCity_EventScript_Calcium
case 8, SlateportCity_EventScript_Zinc
case 9, SlateportCity_EventScript_HPUp
case 10, SlateportCity_EventScript_PPUp
case 11, SlateportCity_EventScript_CancelPowderItemSelect
case MULTI_B_PRESSED, SlateportCity_EventScript_CancelPowderItemSelect
end
SlateportCity_EventScript_EnergyPowder::
bufferitemname STR_VAR_1, ITEM_ENERGY_POWDER
setvar VAR_0x8008, ITEM_ENERGY_POWDER
setvar VAR_0x8009, 50
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_EnergyRoot::
bufferitemname STR_VAR_1, ITEM_ENERGY_ROOT
setvar VAR_0x8008, ITEM_ENERGY_ROOT
setvar VAR_0x8009, 80
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_HealPowder::
bufferitemname STR_VAR_1, ITEM_HEAL_POWDER
setvar VAR_0x8008, ITEM_HEAL_POWDER
setvar VAR_0x8009, 50
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_RevivalHerb::
bufferitemname STR_VAR_1, ITEM_REVIVAL_HERB
setvar VAR_0x8008, ITEM_REVIVAL_HERB
setvar VAR_0x8009, 300
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_Protein::
bufferitemname STR_VAR_1, ITEM_PROTEIN
setvar VAR_0x8008, ITEM_PROTEIN
setvar VAR_0x8009, 1000
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_Iron::
bufferitemname STR_VAR_1, ITEM_IRON
setvar VAR_0x8008, ITEM_IRON
setvar VAR_0x8009, 1000
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_Carbos::
bufferitemname STR_VAR_1, ITEM_CARBOS
setvar VAR_0x8008, ITEM_CARBOS
setvar VAR_0x8009, 1000
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_Calcium::
bufferitemname STR_VAR_1, ITEM_CALCIUM
setvar VAR_0x8008, ITEM_CALCIUM
setvar VAR_0x8009, 1000
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_Zinc::
bufferitemname STR_VAR_1, ITEM_ZINC
setvar VAR_0x8008, ITEM_ZINC
setvar VAR_0x8009, 1000
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_HPUp::
bufferitemname STR_VAR_1, ITEM_HP_UP
setvar VAR_0x8008, ITEM_HP_UP
setvar VAR_0x8009, 1000
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_PPUp::
bufferitemname STR_VAR_1, ITEM_PP_UP
setvar VAR_0x8008, ITEM_PP_UP
setvar VAR_0x8009, 3000
goto SlateportCity_EventScript_TryBuyBerryPowderItem
end
SlateportCity_EventScript_CancelPowderItemSelect::
msgbox SlateportCity_Text_ComeBackToTradeBerryPowder, MSGBOX_DEFAULT
special RemoveBerryPowderVendorMenu
release
end
SlateportCity_EventScript_TryBuyBerryPowderItem::
msgbox SlateportCity_Text_ExchangeBerryPowderForItem, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, SlateportCity_EventScript_ChooseBerryPowderItem
copyvar VAR_0x8004, VAR_0x8009
specialvar VAR_RESULT, HasEnoughBerryPowder
goto_if_eq VAR_RESULT, FALSE, SlateportCity_EventScript_NotEnoughBerryPowder
giveitem VAR_0x8008
goto_if_eq VAR_RESULT, FALSE, SlateportCity_EventScript_NoRoomForBerryPowderItem
copyvar VAR_0x8004, VAR_0x8009
special TakeBerryPowder
special PrintPlayerBerryPowderAmount
msgbox SlateportCity_Text_FineBerryPowderTradeSomethingElse, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, SlateportCity_EventScript_ChooseBerryPowderItem
msgbox SlateportCity_Text_WhenYouGetMoreBringItToMe, MSGBOX_DEFAULT
special RemoveBerryPowderVendorMenu
release
end
SlateportCity_EventScript_NoRoomForBerryPowderItem::
msgbox gText_TheBagIsFull, MSGBOX_DEFAULT
special RemoveBerryPowderVendorMenu
release
end
SlateportCity_EventScript_NotEnoughBerryPowder::
msgbox SlateportCity_Text_DontHaveEnoughBerryPowder, MSGBOX_DEFAULT
goto SlateportCity_EventScript_ChooseBerryPowderItem
end
SlateportCity_EventScript_ScottBattleTentScene::
lockall
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceUp
waitmovement 0
opendoor 10, 12
waitdooranim
addobject LOCALID_SCOTT
applymovement OBJ_EVENT_ID_PLAYER, SlateportCity_Movement_PushPlayerDown
applymovement LOCALID_SCOTT, SlateportCity_Movement_ScottExitBattleTent
waitmovement 0
closedoor 10, 12
waitdooranim
msgbox SlateportCity_Text_TakingBattleTentChallenge, MSGBOX_DEFAULT
closemessage
applymovement OBJ_EVENT_ID_PLAYER, SlateportCity_Movement_PlayerWatchScottExit
applymovement LOCALID_SCOTT, SlateportCity_Movement_ScottExitAfterBattleTent
waitmovement 0
removeobject LOCALID_SCOTT
addvar VAR_SCOTT_STATE, 1
setvar VAR_SLATEPORT_OUTSIDE_MUSEUM_STATE, 3
releaseall
end
SlateportCity_Movement_PushPlayerDown:
lock_facing_direction
walk_down
unlock_facing_direction
step_end
SlateportCity_Movement_PlayerWatchScottExit:
delay_16
walk_in_place_faster_right
step_end
SlateportCity_Movement_ScottExitBattleTent:
delay_8
walk_down
step_end
SlateportCity_Movement_ScottExitAfterBattleTent:
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
step_end
SlateportCity_EventScript_BerryCrushRankingsSign::
lockall
special ShowBerryCrushRankings
waitstate
releaseall
end
SlateportCity_Text_EnergyGuruSellWhatYouNeed:
.string "我是能量格鲁!我会\n为你寻找需要的东西!$"
SlateportCity_Text_OhYourPokemon:
.string "哦?\n你的{STR_VAR_1}…$"
SlateportCity_Text_PleaseGiveItThisEffortRibbon:
.string "很努力嘛!\p这个努力缎带就\n给它作奖品吧。$"
SlateportCity_Text_ReceivedEffortRibbon:
.string "{PLAYER}得到努力缎带。$"
SlateportCity_Text_PutEffortRibbonOnMon:
.string "{PLAYER}给{STR_VAR_1}\n戴上努力缎带。$"
SlateportCity_Text_GoForItLittleHarder:
.string "你要更努力些才行,\p我会给你的宝可梦\n好东西的。$"
SlateportCity_Text_EffortRibbonLooksGoodOnIt:
.string "啊!你的{STR_VAR_1},戴着\n努力缎带很合适嘛!$"
SlateportCity_Text_WonderIfLighthouseStartlesPokemon:
.string "灯塔的光能照到\n数百里外的地方。\p不知道这样会不会\n吓到海里的宝可梦。$"
SlateportCity_Text_SeaweedFullOfLife:
.string "嗨,看这里!\p这周围的海草\n都那么新鲜灵动。\p呀它看上去好像\n会跳出来攻击我们!$"
SlateportCity_Text_HowTownIsBornAndGrows:
.string "有洁净水源的地方\n就会长出富足的果园,\p然后人们聚集在这里\n就出现了集市。\p一个镇子就是这样诞生和发展下去的。$"
SlateportCity_Text_SlateportWonderfulPlace:
.string "在可以闻到海风的地方\n购物…\p凯那市简直就是天堂$"
SlateportCity_Text_BuyBricksSoDecorWontGetDirty:
.string "把玩偶和坐垫\n直接放在地上会把它们弄脏,\p所以我准备买几块地砖来\n放玩偶和坐垫,这样\l它们就不会脏了。$"
SlateportCity_Text_GoingToCompeteInBattleTent:
.string "啊啊啊!我也要参加\n对战帐篷!\p但在那之前我得先去\n抓几只宝可梦!$"
SlateportCity_Text_BushedHikingFromMauville:
.string "呼…累死了…\p我是从紫堇市徒步走来的。\n但是,看呐,这城市简直太大了。\p早知道我就\n骑车过来了。$"
SlateportCity_Text_EveryoneCallsHimCaptStern:
.string "是楠木设立了博物馆,\n他同时也是\l海底勘探队的队长\p大家都叫他楠木馆长。$"
SlateportCity_Text_WhatsLongLineOverThere:
.string "那边怎么了?\n排了那么长的队…$"
SlateportCity_Text_VisitedMuseumOften:
.string "我小的时候 \n经常去博物馆。\p参观展览的时候\n总会陶醉于大海的神秘。$"
SlateportCity_Text_QuitPushing:
.string "喂,你!别挤!\n你得排队,知道吗?$"
SlateportCity_Text_AquaHasPolicy:
.string "海洋队在办事的时候\n有专业的集合和撤退手段。$"
SlateportCity_Text_BossIsBrilliant:
.string "我们老大很聪明,\p但我还没明白\n他为什么要占领博物馆。$"
SlateportCity_Text_WhatsNewSchemeIWonder:
.string "不知道下面的计划是什么?\p老大发起火来太可怕了\n我得小心别把事情搞砸…$"
SlateportCity_Text_ShouldTakeItAll:
.string "如果博物馆里有我们想要的东西,\n我们就会把那些全部抢走!$"
SlateportCity_Text_DontButtIn:
.string "喂,那边的!\n别插队!$"
SlateportCity_Text_RemindsMeOfLongLineForGames:
.string "这么长的队,嗯,\p让我想起了以前\n排队买游戏大作的时候…$"
SlateportCity_Text_WhyAreWeLiningUp:
.string "我们干嘛非得排队买票?\n直接闯进去不就得了!$"
SlateportCity_Text_WhatDoYouWant:
.string "什么?\n你想干什么?$"
SlateportCity_Text_IllReadSignForYou:
.string "想看看这块标牌?\n我帮你读吧!$"
SlateportCity_Text_SaysSomethingLikeSeaIsEndless:
.string "我看看…\p呃…上面写的大概是\n“大海中的生命是无穷的”。\p嗯我肯定\n上面就是这么写的。$"
SlateportCity_Text_ShouldveBroughtMyGameBoy:
.string "唔嗯…\p我真该把我的GBA带来的那样就\n不用在这儿等得这么无聊了…\p唔嗯…$"
SlateportCity_Text_HotSpringsAfterOperation:
.string "“这次工作完毕之后\n我就带你们去泡温泉!”\p老大这么说的。\n我都等不及了!$"
SlateportCity_Text_SeaIsSoWet:
.string "大海这么广阔…\p会是宝可梦的泪水\n聚成的吗?$"
SlateportCity_Text_SinkOldBoats:
.string "你知道人们怎么处理\n无法再出海的旧船吗?\p他们把船沉到海里面\n那些旧船成了宝可梦的家。$"
SlateportCity_Text_BuyTooMuch:
.string "每次我来这里都控制不住自己,\n买一大堆东西回去。$"
SlateportCity_Text_GetNameRaterToHelpYou:
.string "想为你的宝可梦\n改名的话,就\l去找姓名鉴定师帮忙吧。$"
SlateportCity_Text_CantChangeTradeMonName:
.string "你不能更改\n交换得来的宝可梦的名字,\p因为那名字中\n包含着原先的训练家对它的情感。$"
SlateportCity_Text_BattleTentBuiltRecently:
.string "最近凯那市\n出现了一个对战帐篷。\p虽然道馆也很有趣\n但对战帐篷更棒。\p在对战帐篷里\n能见到很厉害的宝可梦!$"
SlateportCity_Text_CaptSternBeingInterviewed:
.string "我本来希望记者们会去采访个明星,\n这样我就能去要签名了。\p但他们采访的是谁\n那不是楠木馆长吗?$"
SlateportCity_Text_InterviewerSoCool:
.string "那个女记者真棒,\n我长大后也要做个国际记者!$"
SlateportCity_Text_SternSaysDiscoveredSomething:
.string "楠木馆长说\n他们在海底找到了什么东西。\p那到底是什么\n会是什么东西呢?$"
SlateportCity_Text_CaptainComeBackWithBigFish:
.string "发生什么了?\p馆长带着\n从海底找到的大鱼回来了?$"
SlateportCity_Text_AmIOnTV:
.string "喂!你看了吗?\n我在电视上亮相了吗?$"
SlateportCity_Text_CaptainsACelebrity:
.string "电视采访!哇!\n馆长是名人了!$"
SlateportCity_Text_BigSmileForCamera:
.string "达伊:好,楠木馆长,\n对镜头笑一下!$"
SlateportCity_Text_MostInvaluableExperience:
.string "玛莉:我们知道您在此次探险中\n获得了非常宝贵的经验…$"
SlateportCity_Text_SternMoveAheadWithExploration:
.string "楠木馆长:是的,\n我们打算把探险继续进行下去。$"
SlateportCity_Text_GabbyWonderfulThanksForInterview:
.string "玛莉:加油吧,楠木馆长!\n感谢您在百忙中抽出时间来\l接受我们的采访\p下次有什么新发现的话\n希望还能允许我们采访您!$"
SlateportCity_Text_SternWhewFirstInterview:
.string "楠木馆长:呼…\p这是我第一次上电视。\n真紧张。$"
SlateportCity_Text_OhPlayerWeMadeDiscovery:
.string "噢!{PLAYER}{KUN}\n你精神真不错!\p在我们上次探险中\n有个大发现,\p在128号水路上\n有个海底洞窟。\p我们认为这可能是一种\n被认为灭绝了很久的宝可梦的栖息地。$"
SlateportCity_Text_AquaWillAssumeControlOfSubmarine:
.string "哼哼哼…\n楠木馆长,打扰了,\p你的潜水艇\n我们海洋队征用了!\p反抗是没用的\n希望你好好配合!\p哼哼哼…\n你就好好看看我们海洋队的\l宏伟计划吧$"
SlateportCity_Text_SternWhatWasAllThat:
.string "楠木馆长:怎么回事?\p听起来好像是\n有人在用扩音器说话…\p声音是从哪儿来的$"
SlateportCity_Text_FromHarborTryingToTakeSub:
.string "是船舶那儿!\p潜水艇\n他们想抢潜艇!$"
SlateportCity_Text_PleaseComeWithMe:
.string "{PLAYER}{KUN}\n快,跟我来!$"
SlateportCity_Text_BattleTentSign:
.string "对战帐篷凯那市分址\n“得到了!究极宝可梦!”$"
SlateportCity_Text_SternsShipyardWantedSign:
.string "楠木造船厂\p“招募在任何水流中\n都能驾船的水手。”$"
SlateportCity_Text_SternsShipyardNearsCompletion:
.string "楠木造船厂\p“由凯那市到水静市的\n破浪号游船\l将在近期完工。”$"
SlateportCity_Text_SternsShipyardFerryComplete:
.string "楠木造船厂\p“凯那市-水静市的\n破浪号游船的下水仪式\l将在港口举行。”$"
SlateportCity_Text_PokemonFanClubSign:
.string "宝可梦发烧友俱乐部\n“聚集着所有喜爱宝可梦的人!”$"
SlateportCity_Text_OceanicMuseumSign:
.string "“无垠的大海哺育了\n世间一切的生命。”\p海洋科学博物馆$"
SlateportCity_Text_CitySign:
.string "凯那市\p“人与宝可梦\n和谐共处的海港。”$"
SlateportCity_Text_MarketSign:
.string "凯那市市场\n“我们有其他地方买不到的商品!”$"
SlateportCity_Text_HarborFerryUnderConstruction:
.string "凯那市港口\p“破浪号游船\n正在船厂加工建造,\p预计近期\n即可通航。”$"
SlateportCity_Text_HarborSign:
.string "凯那市港口\p“愿破浪号游船\n为您带来最快乐的旅行体验。”$"
SlateportCity_Text_NameRatersHouseSign:
.string "姓名鉴定师\n“鉴定宝可梦名字的好坏。”$"
SlateportCity_Text_ExplainBerries:
.string "你知道吗?\n当野生宝可梦受伤时,\p它会寻找树果吃为自己疗伤。\p有人受到启发\n从而想到用树果制药。\p知道吗\p要用树果制药\n就得先把树果磨成粉末。\p你知道吗\p你好像对树果\n很感兴趣!\p我有好东西\n要送给你。$"
SlateportCity_Text_ExplainBerryPowder:
.string "最近我在宝可梦中心里\n安装了研磨树果的设备,\p树果混合器就放在\n楼上的角落里。\p你知道吗\p你能帮我用那机器\n制做些树果粉末吗?\p如果你能给我带来很多的树果粉末\n我就能做出各种各样的药来。$"
SlateportCity_Text_BroughtMeSomeBerryPowder:
.string "你给我带来\n树果粉末了吗?$"
SlateportCity_Text_ExchangeWhatWithIt:
.string "你想用它\n换什么?$"
SlateportCity_Text_ExchangeBerryPowderForItem:
.string "那么,你是想\n用树果粉末换{STR_VAR_1}是吗?$"
SlateportCity_Text_DontHaveEnoughBerryPowder:
.string "真可惜,\n你没有足够的树果粉末。$"
SlateportCity_Text_FineBerryPowderTradeSomethingElse:
.string "这些树果粉末不错,\n用它们能做出很棒的药。\p你还想用你的树果粉末\n换点别的吗?$"
SlateportCity_Text_WhenYouGetMoreBringItToMe:
.string "好吧!你有了更多\n树果粉末的话,就带来给我吧!$"
SlateportCity_Text_ComeBackToTradeBerryPowder:
.string "想用树果粉末交换\n药的话随时可以再来,\p我会一直在这里收购。\p知道吗$"
SlateportCity_Text_YouDroveTeamAquaAway:
.string "亚希达:嗯?\n我以前见过你。\p我没向你介绍过自己吗\n我叫亚希达,\p刚才看到海洋队\n好像很慌张地逃跑了,\p我想——是你赶走他们的吧$"
SlateportCity_Text_MaybeThisTrainer:
.string "亚希达:嗯…\n也许,只是也许,这个训练家…$"
SlateportCity_Text_LetsRegisterEachOther:
.string "亚希达:好吧!我想我们\n会成为好朋友的。\p我们在各自的宝可梦导航仪里\n登记信息吧。\p… … … … … …$"
SlateportCity_Text_RegisteredScott:
.string "把亚希达的个人信息\n登记到宝可梦导航仪里。$"
SlateportCity_Text_KeepEyeOnTrainersBeSeeingYou:
.string "亚希达:虽然我想跟你同行,\n但我还得去找其他\l有天赋的训练家。\p我会去其他城市\n逛逛的。\p那么回头见{PLAYER}{KUN}$"
SlateportCity_Text_TakingBattleTentChallenge:
.string "亚希达:喂,好啊!\n这不是{PLAYER}{KUN}吗!\p{PLAYER}{KUN},我猜——你\n要去挑战对战帐篷吧?\p好主意\n真是个好主意!\p毕竟只有强大的训练家\n才敢挑战对战帐篷!\p尽自己最大的努力取胜吧$"