mirror of
https://github.com/pret/pokeemerald.git
synced 2026-06-24 09:02:08 -05:00
310 lines
11 KiB
C++
310 lines
11 KiB
C++
BattleFrontier_ReceptionGate_MapScripts::
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_ReceptionGate_OnFrame
|
|
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_ReceptionGate_OnTransition
|
|
.byte 0
|
|
|
|
BattleFrontier_ReceptionGate_OnTransition:
|
|
setflag FLAG_LANDMARK_BATTLE_FRONTIER
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_OnFrame:
|
|
map_script_2 VAR_HAS_ENTERED_BATTLE_FRONTIER, 0, BattleFrontier_ReceptionGate_EventScript_FirstTimeEntering
|
|
.2byte 0
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_FirstTimeEntering::
|
|
lockall
|
|
setvar VAR_HAS_ENTERED_BATTLE_FRONTIER, 1
|
|
playse SE_PIN
|
|
applymovement LOCALID_FRONTIER_RECEPTION_GREETER, Common_Movement_ExclamationMark
|
|
waitmovement 0
|
|
applymovement LOCALID_FRONTIER_RECEPTION_GREETER, Common_Movement_Delay48
|
|
waitmovement 0
|
|
msgbox BattleFrontier_ReceptionGate_Text_FirstTimeHereThisWay, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement LOCALID_PLAYER, BattleFrontier_ReceptionGate_Movement_PlayerApproachCounter
|
|
waitmovement 0
|
|
goto BattleFrontier_ReceptionGate_EventScript_ScottScene
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_ScottScene::
|
|
msgbox BattleFrontier_ReceptionGate_Text_WelcomeToBattleFrontier, MSGBOX_DEFAULT
|
|
msgbox BattleFrontier_ReceptionGate_Text_IssueFrontierPass, MSGBOX_DEFAULT
|
|
playfanfare MUS_OBTAIN_ITEM
|
|
message BattleFrontier_ReceptionGate_Text_ObtainedFrontierPass
|
|
waitfanfare
|
|
waitmessage
|
|
msgbox BattleFrontier_ReceptionGate_Text_PlacedTrainerCardInFrontierPass, MSGBOX_DEFAULT
|
|
setflag FLAG_SYS_FRONTIER_PASS
|
|
msgbox BattleFrontier_ReceptionGate_Text_EnjoyBattleFrontier, MSGBOX_DEFAULT
|
|
msgbox BattleFrontier_ReceptionGate_Text_IfItIsntPlayerYouCame, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement LOCALID_FRONTIER_RECEPTION_GREETER, Common_Movement_WalkInPlaceFasterUp
|
|
applymovement LOCALID_FRONTIER_RECEPTION_GUIDE, Common_Movement_WalkInPlaceFasterUp
|
|
applymovement LOCALID_PLAYER, Common_Movement_WalkInPlaceFasterUp
|
|
waitmovement 0
|
|
playse SE_PIN
|
|
applymovement LOCALID_FRONTIER_RECEPTION_GREETER, Common_Movement_ExclamationMark
|
|
applymovement LOCALID_FRONTIER_RECEPTION_GUIDE, Common_Movement_ExclamationMark
|
|
applymovement LOCALID_PLAYER, Common_Movement_ExclamationMark
|
|
waitmovement 0
|
|
msgbox BattleFrontier_ReceptionGate_Text_OhMrScottGoodDay, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement LOCALID_FRONTIER_RECEPTION_GREETER, BattleFrontier_ReceptionGate_Movement_GreeterFaceScott
|
|
applymovement LOCALID_FRONTIER_RECEPTION_GUIDE, BattleFrontier_ReceptionGate_Movement_FacilityGuideFaceScott
|
|
applymovement LOCALID_PLAYER, BattleFrontier_ReceptionGate_Movement_PlayerFaceScott
|
|
applymovement LOCALID_FRONTIER_RECEPTION_SCOTT, BattleFrontier_ReceptionGate_Movement_ScottEnter
|
|
waitmovement 0
|
|
msgbox BattleFrontier_ReceptionGate_Text_ScottGreatToSeeYouHere, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement LOCALID_FRONTIER_RECEPTION_SCOTT, BattleFrontier_ReceptionGate_Movement_ScottExit
|
|
waitmovement 0
|
|
removeobject LOCALID_FRONTIER_RECEPTION_SCOTT
|
|
releaseall
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_Movement_PlayerApproachCounter:
|
|
walk_up
|
|
walk_up
|
|
walk_left
|
|
walk_left
|
|
step_end
|
|
|
|
BattleFrontier_ReceptionGate_Movement_PlayerFaceScott:
|
|
delay_16
|
|
delay_16
|
|
delay_16
|
|
delay_8
|
|
walk_in_place_faster_right
|
|
step_end
|
|
|
|
@ Unused
|
|
BattleFrontier_ReceptionGate_Movement_WalkDown:
|
|
walk_down
|
|
walk_down
|
|
step_end
|
|
|
|
BattleFrontier_ReceptionGate_Movement_ScottEnter:
|
|
walk_down
|
|
walk_down
|
|
walk_down
|
|
walk_down
|
|
walk_down
|
|
walk_down
|
|
walk_left
|
|
step_end
|
|
|
|
BattleFrontier_ReceptionGate_Movement_ScottExit:
|
|
walk_right
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
step_end
|
|
|
|
BattleFrontier_ReceptionGate_Movement_GreeterFaceScott:
|
|
delay_16
|
|
delay_16
|
|
delay_16
|
|
delay_8
|
|
walk_in_place_faster_right
|
|
step_end
|
|
|
|
BattleFrontier_ReceptionGate_Movement_FacilityGuideFaceScott:
|
|
delay_16
|
|
delay_16
|
|
delay_16
|
|
delay_8
|
|
walk_in_place_faster_left
|
|
step_end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_Greeter::
|
|
lock
|
|
faceplayer
|
|
msgbox BattleFrontier_ReceptionGate_Text_WelcomeToBattleFrontier, MSGBOX_DEFAULT
|
|
msgbox BattleFrontier_ReceptionGate_Text_EnjoyBattleFrontier, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_FacilityGuide::
|
|
lock
|
|
faceplayer
|
|
msgbox BattleFrontier_ReceptionGate_Text_YourGuideToFacilities, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout::
|
|
message BattleFrontier_ReceptionGate_Text_LearnAboutWhich2
|
|
waitmessage
|
|
setvar VAR_0x8004, SCROLL_MULTI_BF_RECEPTIONIST
|
|
special ShowScrollableMultichoice
|
|
waitstate
|
|
switch VAR_RESULT
|
|
case 0, BattleFrontier_ReceptionGate_EventScript_BattleTower
|
|
case 1, BattleFrontier_ReceptionGate_EventScript_BattleDome
|
|
case 2, BattleFrontier_ReceptionGate_EventScript_BattlePalace
|
|
case 3, BattleFrontier_ReceptionGate_EventScript_BattleArena
|
|
case 4, BattleFrontier_ReceptionGate_EventScript_BattleFactory
|
|
case 5, BattleFrontier_ReceptionGate_EventScript_BattlePike
|
|
case 6, BattleFrontier_ReceptionGate_EventScript_BattlePyramid
|
|
case 7, BattleFrontier_ReceptionGate_EventScript_RankingHall
|
|
case 8, BattleFrontier_ReceptionGate_EventScript_ExchangeCorner
|
|
case 9, BattleFrontier_ReceptionGate_EventScript_ExitFacilityGuide
|
|
case MULTI_B_PRESSED, BattleFrontier_ReceptionGate_EventScript_ExitFacilityGuide
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_BattleTower::
|
|
msgbox BattleFrontier_ReceptionGate_Text_BattleTowerInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_BattleDome::
|
|
msgbox BattleFrontier_ReceptionGate_Text_BattleDomeInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_BattlePalace::
|
|
msgbox BattleFrontier_ReceptionGate_Text_BattlePalaceInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_BattleArena::
|
|
msgbox BattleFrontier_ReceptionGate_Text_BattleArenaInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_BattleFactory::
|
|
msgbox BattleFrontier_ReceptionGate_Text_BattleFactoryInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_BattlePike::
|
|
msgbox BattleFrontier_ReceptionGate_Text_BattlePikeInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_BattlePyramid::
|
|
msgbox BattleFrontier_ReceptionGate_Text_BattlePyramidInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_RankingHall::
|
|
msgbox BattleFrontier_ReceptionGate_Text_RankingHallInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_ExchangeCorner::
|
|
msgbox BattleFrontier_ReceptionGate_Text_ExchangeCornerInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFacilityToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_ExitFacilityGuide::
|
|
msgbox BattleFrontier_ReceptionGate_Text_EnjoyBattleFrontier, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_RulesGuide::
|
|
lock
|
|
faceplayer
|
|
msgbox BattleFrontier_ReceptionGate_Text_YourGuideToRules, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseRuleToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_ChooseRuleToLearnAbout::
|
|
message BattleFrontier_ReceptionGate_Text_LearnAboutWhat
|
|
waitmessage
|
|
multichoice 15, 0, MULTI_FRONTIER_RULES, FALSE
|
|
switch VAR_RESULT
|
|
case 0, BattleFrontier_ReceptionGate_EventScript_LevelMode
|
|
case 1, BattleFrontier_ReceptionGate_EventScript_Level50
|
|
case 2, BattleFrontier_ReceptionGate_EventScript_OpenLevel
|
|
case 3, BattleFrontier_ReceptionGate_EventScript_MonEntry
|
|
case 4, BattleFrontier_ReceptionGate_EventScript_HoldItems
|
|
case 5, BattleFrontier_ReceptionGate_EventScript_ExitRulesGuide
|
|
case MULTI_B_PRESSED, BattleFrontier_ReceptionGate_EventScript_ExitRulesGuide
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_LevelMode::
|
|
msgbox BattleFrontier_ReceptionGate_Text_LevelModeInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseRuleToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_Level50::
|
|
msgbox BattleFrontier_ReceptionGate_Text_Level50Info, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseRuleToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_OpenLevel::
|
|
msgbox BattleFrontier_ReceptionGate_Text_OpenLevelInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseRuleToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_MonEntry::
|
|
msgbox BattleFrontier_ReceptionGate_Text_MonEntryInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseRuleToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_HoldItems::
|
|
msgbox BattleFrontier_ReceptionGate_Text_HoldItemsInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseRuleToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_ExitRulesGuide::
|
|
msgbox BattleFrontier_ReceptionGate_Text_EnjoyBattleFrontier, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_FrontierPassGuide::
|
|
lock
|
|
faceplayer
|
|
msgbox BattleFrontier_ReceptionGate_Text_YourGuideToFrontierPass, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFrontierPassInfoToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_ChooseFrontierPassInfoToLearnAbout::
|
|
message BattleFrontier_ReceptionGate_Text_LearnAboutWhich1
|
|
waitmessage
|
|
multichoice 16, 4, MULTI_FRONTIER_PASS_INFO, FALSE
|
|
switch VAR_RESULT
|
|
case 0, BattleFrontier_ReceptionGate_EventScript_Symbols
|
|
case 1, BattleFrontier_ReceptionGate_EventScript_RecordBattle
|
|
case 2, BattleFrontier_ReceptionGate_EventScript_BattlePoints
|
|
case 3, BattleFrontier_ReceptionGate_EventScript_ExitFrontierPassGuide
|
|
case MULTI_B_PRESSED, BattleFrontier_ReceptionGate_EventScript_ExitFrontierPassGuide
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_Symbols::
|
|
msgbox BattleFrontier_ReceptionGate_Text_SymbolsInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFrontierPassInfoToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_RecordBattle::
|
|
msgbox BattleFrontier_ReceptionGate_Text_RecordedBattleInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFrontierPassInfoToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_BattlePoints::
|
|
msgbox BattleFrontier_ReceptionGate_Text_BattlePointsInfo, MSGBOX_DEFAULT
|
|
goto BattleFrontier_ReceptionGate_EventScript_ChooseFrontierPassInfoToLearnAbout
|
|
end
|
|
|
|
BattleFrontier_ReceptionGate_EventScript_ExitFrontierPassGuide::
|
|
msgbox BattleFrontier_ReceptionGate_Text_EnjoyBattleFrontier, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
.ifdef FRENCH
|
|
.include "data/maps/BattleFrontier_ReceptionGate/text_fr.inc"
|
|
.else
|
|
.ifdef ITALIAN
|
|
.include "data/maps/BattleFrontier_ReceptionGate/text_it.inc"
|
|
.else
|
|
.ifdef SPANISH
|
|
.include "data/maps/BattleFrontier_ReceptionGate/text_es.inc"
|
|
.else
|
|
.include "data/maps/BattleFrontier_ReceptionGate/text.inc"
|
|
.endif
|
|
.endif
|
|
.endif
|