mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
852 lines
30 KiB
PHP
852 lines
30 KiB
PHP
@ Objects in this room are set dynamically with OBJ_EVENT_GFX_VAR_0 and OBJ_EVENT_GFX_VAR_1
|
|
@ Note: LOCALIDs shared with data/scripts/battle_pike.inc
|
|
.equ LOCALID_OBJ_0, 1
|
|
.equ LOCALID_OBJ_1, 2
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_MapScripts::
|
|
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePikeRoom_OnResume
|
|
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePikeRoom_OnTransition
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePikeRoomNormal_OnFrame
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePikeRoom_OnWarp
|
|
.byte 0
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_OnFrame:
|
|
map_script_2 VAR_TEMP_0, 0, BattleFrontier_BattlePikeRoomNormal_EventScript_EnterRoom
|
|
.2byte 0
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterRoom::
|
|
setvar VAR_TEMP_0, 1
|
|
pike_getroomtype
|
|
switch VAR_RESULT
|
|
case PIKE_ROOM_SINGLE_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_EnterSingleBattleRoom
|
|
case PIKE_ROOM_HEAL_FULL, BattleFrontier_BattlePikeRoomNormal_EventScript_EnterFullHealRoom
|
|
case PIKE_ROOM_STATUS, BattleFrontier_BattlePikeRoomNormal_EventScript_EnterStatusRoom
|
|
case PIKE_ROOM_HARD_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_EnterHardBattleRoom
|
|
case PIKE_ROOM_DOUBLE_BATTLE, BattleFrontier_BattlePikeRoomNormal_EventScript_EnterDoubleBattleRoom
|
|
case PIKE_ROOM_BRAIN, BattleFrontier_BattlePikeRoomNormal_EventScript_EnterBrainRoom
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterSingleBattleRoom::
|
|
lockall
|
|
delay 16
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer
|
|
waitmovement 0
|
|
pike_gettrainerintro 0
|
|
msgbox gStringVar4, MSGBOX_DEFAULT
|
|
waitmessage
|
|
closemessage
|
|
releaseall
|
|
setvar VAR_0x8004, SPECIAL_BATTLE_PIKE_SINGLE
|
|
setvar VAR_0x8005, 0
|
|
special DoSpecialTrainerBattle
|
|
waitstate
|
|
switch VAR_RESULT
|
|
case 1, BattleFrontier_BattlePikeRoomNormal_EventScript_WonSingleBattle
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_WarpToLobbyLost::
|
|
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_LOST
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_PIKE_LOBBY, 5, 6
|
|
waitstate
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_WonSingleBattle::
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit
|
|
waitmovement 0
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterHardBattleRoom::
|
|
lockall
|
|
delay 16
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_BattleSomewhatToughTrainer, MSGBOX_DEFAULT
|
|
waitmessage
|
|
closemessage
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer
|
|
waitmovement 0
|
|
pike_gettrainerintro 0
|
|
msgbox gStringVar4, MSGBOX_DEFAULT
|
|
waitmessage
|
|
closemessage
|
|
releaseall
|
|
setvar VAR_0x8004, SPECIAL_BATTLE_PIKE_SINGLE
|
|
setvar VAR_0x8005, 0
|
|
special DoSpecialTrainerBattle
|
|
waitstate
|
|
switch VAR_RESULT
|
|
case 1, BattleFrontier_BattlePikeRoomNormal_EventScript_WonHardBattle
|
|
goto BattleFrontier_BattlePikeRoomNormal_EventScript_WarpToLobbyLost
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_WonHardBattle::
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit
|
|
waitmovement 0
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCApproachPlayer
|
|
waitmovement 0
|
|
lock
|
|
faceplayer
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_RestoreToFullHealth, MSGBOX_DEFAULT
|
|
playfanfare MUS_HEAL
|
|
waitfanfare
|
|
special HealPlayerParty
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_EnjoyRestOfChallenge2, MSGBOX_DEFAULT
|
|
closemessage
|
|
release
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit
|
|
waitmovement 0
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterBrainRoom::
|
|
delay 22
|
|
lockall
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_PreQueenHealNPCApproachPlayer
|
|
waitmovement 0
|
|
pike_prequeenheal
|
|
switch VAR_RESULT
|
|
case 0, BattleFrontier_BattlePikeRoomNormal_EventScript_PreQueenNoHeal
|
|
case 1, BattleFrontier_BattlePikeRoomNormal_EventScript_PreQueenHealOneMon
|
|
case 2, BattleFrontier_BattlePikeRoomNormal_EventScript_PreQueenHealTwoMons
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_LucyEnter::
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ShallFetchOurMaster, MSGBOX_DEFAULT
|
|
closemessage
|
|
special SpawnCameraObject
|
|
applymovement OBJ_EVENT_ID_CAMERA, BattleFrontier_BattlePikeRoomNormal_Movement_CameraPanUp
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCExitForLucy
|
|
waitmovement 0
|
|
playse SE_PIKE_CURTAIN_CLOSE
|
|
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesLittleClosed
|
|
delay 4
|
|
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesMostlyClosed
|
|
delay 4
|
|
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesClosed
|
|
delay 4
|
|
waitse
|
|
delay 60
|
|
playse SE_PIKE_CURTAIN_OPEN
|
|
delay 65
|
|
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesMostlyClosed
|
|
showobjectat LOCALID_OBJ_0, MAP_BATTLE_FRONTIER_BATTLE_PIKE_ROOM_NORMAL
|
|
delay 4
|
|
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesLittleClosed
|
|
delay 4
|
|
call BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesOpen
|
|
waitse
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_LucyEnter
|
|
waitmovement 0
|
|
pike_getbrainstatus
|
|
switch VAR_RESULT
|
|
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattlePikeRoomNormal_EventScript_IntroLucyGold
|
|
case FRONTIER_BRAIN_STREAK, BattleFrontier_BattlePikeRoomNormal_EventScript_BattleLucySilver
|
|
case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattlePikeRoomNormal_EventScript_BattleLucyGold
|
|
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
|
|
goto_if_ne VAR_RESULT, FALSE, BattleFrontier_BattlePikeRoomNormal_EventScript_BattleLucySilver
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ImThePikeQueen, MSGBOX_DEFAULT
|
|
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_BattleLucySilver::
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_HopeYouDidntUseUpLuck, MSGBOX_DEFAULT
|
|
call BattleFrontier_BattlePikeRoomNormal_EventScript_DoPikeQueenBattle
|
|
goto_if_eq VAR_RESULT, 1, BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucySilver
|
|
goto BattleFrontier_BattlePikeRoomNormal_EventScript_WarpToLobbyLost
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucySilver::
|
|
frontier_getsymbols
|
|
goto_if_ne VAR_RESULT, 0, BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucy
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_LucyShowMeFrontierPass, MSGBOX_DEFAULT
|
|
waitmessage
|
|
playfanfare MUS_OBTAIN_SYMBOL
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_ReceivedLuckSymbol
|
|
waitmessage
|
|
waitfanfare
|
|
frontier_givesymbol
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_AllThereIsDisappear, MSGBOX_DEFAULT
|
|
closemessage
|
|
goto BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucy
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_IntroLucyGold::
|
|
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
|
|
goto_if_ne VAR_RESULT, FALSE, BattleFrontier_BattlePikeRoomNormal_EventScript_BattleLucyGold
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_LucyYouAgain, MSGBOX_DEFAULT
|
|
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_BattleLucyGold::
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_NowComeOn, MSGBOX_DEFAULT
|
|
call BattleFrontier_BattlePikeRoomNormal_EventScript_DoPikeQueenBattle
|
|
goto_if_eq VAR_RESULT, 1, BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucyGold
|
|
goto BattleFrontier_BattlePikeRoomNormal_EventScript_WarpToLobbyLost
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucyGold::
|
|
frontier_getsymbols
|
|
goto_if_eq VAR_RESULT, 2, BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucy
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_LucyFrontierPass, MSGBOX_DEFAULT
|
|
waitmessage
|
|
playfanfare MUS_OBTAIN_SYMBOL
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_LuckSymbolTookGoldenShine
|
|
waitmessage
|
|
waitfanfare
|
|
frontier_givesymbol
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_IWontForget, MSGBOX_DEFAULT
|
|
closemessage
|
|
goto BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucy
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_DefeatedLucy::
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_LucyMoveAside
|
|
waitmovement 0
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerWalkUp2
|
|
waitmovement 0
|
|
pike_get PIKE_DATA_WIN_STREAK
|
|
addvar VAR_RESULT, 1
|
|
pike_set PIKE_DATA_WIN_STREAK, VAR_RESULT
|
|
call BattleFrontier_BattlePikeRoom_EventScript_WarpToFinalRoom
|
|
waitstate
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_PreQueenNoHeal::
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ChoseRoomNoHeal, MSGBOX_DEFAULT
|
|
goto BattleFrontier_BattlePikeRoomNormal_EventScript_LucyEnter
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_PreQueenHealOneMon::
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ChoseRoomHealOne, MSGBOX_DEFAULT
|
|
playfanfare MUS_HEAL
|
|
waitfanfare
|
|
goto BattleFrontier_BattlePikeRoomNormal_EventScript_LucyEnter
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_PreQueenHealTwoMons::
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ChoseRoomHealTwo, MSGBOX_DEFAULT
|
|
playfanfare MUS_HEAL
|
|
waitfanfare
|
|
goto BattleFrontier_BattlePikeRoomNormal_EventScript_LucyEnter
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterFullHealRoom::
|
|
lockall
|
|
delay 16
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer
|
|
waitmovement 0
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreToFullHealth
|
|
waitmessage
|
|
playfanfare MUS_HEAL
|
|
waitfanfare
|
|
special HealPlayerParty
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_EnjoyRestOfChallenge, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit
|
|
waitmovement 0
|
|
releaseall
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterDoubleBattleRoom::
|
|
lockall
|
|
delay 16
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1WalkRight
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2WalkLeft
|
|
waitmovement 0
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_DoubleTrainersWalkDown
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_DoubleTrainersWalkDown
|
|
waitmovement 0
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1FacePlayer
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2FacePlayer
|
|
waitmovement 0
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceTrainer1
|
|
waitmovement 0
|
|
pike_gettrainerintro 0
|
|
msgbox gStringVar4, MSGBOX_DEFAULT
|
|
closemessage
|
|
delay 16
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceTrainer2
|
|
waitmovement 0
|
|
pike_gettrainerintro 1
|
|
msgbox gStringVar4, MSGBOX_DEFAULT
|
|
closemessage
|
|
setvar VAR_0x8004, SPECIAL_BATTLE_PIKE_DOUBLE
|
|
setvar VAR_0x8005, 0
|
|
special DoSpecialTrainerBattle
|
|
waitstate
|
|
switch VAR_RESULT
|
|
case 1, BattleFrontier_BattlePikeRoomNormal_EventScript_WonDoubleBattle
|
|
goto BattleFrontier_BattlePikeRoomNormal_EventScript_WarpToLobbyLost
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_WonDoubleBattle::
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceTrainer2
|
|
waitmovement 0
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1Exit
|
|
waitmovement 0
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2Exit
|
|
waitmovement 0
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceUp
|
|
waitmovement 0
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_EnterStatusRoom::
|
|
lockall
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_WatchOut
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonApproachPlayer
|
|
waitmovement 0
|
|
pike_getstatusmon
|
|
copyvar VAR_0x8004, VAR_RESULT
|
|
call_if_eq VAR_0x8004, PIKE_STATUSMON_KIRLIA, BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaAttack
|
|
call_if_eq VAR_0x8004, PIKE_STATUSMON_DUSCLOPS, BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsAttack
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_AttacksWhenStartled, MSGBOX_DEFAULT
|
|
closemessage
|
|
releaseall
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaAttack::
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_KirliaStop, MSGBOX_DEFAULT
|
|
closemessage
|
|
waitse
|
|
playmoncry SPECIES_KIRLIA, CRY_MODE_NORMAL
|
|
waitmoncry
|
|
pike_getstatus
|
|
call_if_eq VAR_RESULT, PIKE_STATUS_TOXIC, BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedToxic
|
|
call_if_eq VAR_RESULT, PIKE_STATUS_BURN, BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedWillOWisp
|
|
call_if_eq VAR_RESULT, PIKE_STATUS_PARALYSIS, BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedThunderWave
|
|
call_if_eq VAR_RESULT, PIKE_STATUS_SLEEP, BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedHypnosis
|
|
pike_flashscreen
|
|
waitstate
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCApproachMon
|
|
waitmovement 0
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceNPC
|
|
waitmovement 0
|
|
waitse
|
|
playmoncry SPECIES_KIRLIA, CRY_MODE_NORMAL
|
|
waitmoncry
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ThatsEnough, MSGBOX_DEFAULT
|
|
waitse
|
|
playmoncry SPECIES_KIRLIA, CRY_MODE_NORMAL
|
|
waitmoncry
|
|
closemessage
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonMoveAside
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_StatusNPCApproachPlayer
|
|
waitmovement 0
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ApologizeForKirlia, MSGBOX_DEFAULT
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsAttack::
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_DusclopsStop, MSGBOX_DEFAULT
|
|
closemessage
|
|
waitse
|
|
playmoncry SPECIES_DUSCLOPS, CRY_MODE_NORMAL
|
|
waitmoncry
|
|
pike_getstatus
|
|
call_if_eq VAR_RESULT, PIKE_STATUS_FREEZE, BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsUsedIceBeam
|
|
call_if_eq VAR_RESULT, PIKE_STATUS_BURN, BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsUsedWillOWisp
|
|
pike_flashscreen
|
|
waitstate
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_NPCApproachMon
|
|
waitmovement 0
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceNPC
|
|
waitmovement 0
|
|
waitse
|
|
playmoncry SPECIES_DUSCLOPS, CRY_MODE_NORMAL
|
|
waitmoncry
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ThatsEnough, MSGBOX_DEFAULT
|
|
waitse
|
|
playmoncry SPECIES_DUSCLOPS, CRY_MODE_NORMAL
|
|
waitmoncry
|
|
closemessage
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonMoveAside
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_StatusNPCApproachPlayer
|
|
waitmovement 0
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ApologizeForDusclops, MSGBOX_DEFAULT
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedToxic::
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_KirliaUsedToxic
|
|
waitmessage
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedWillOWisp::
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_KirliaUsedWillOWisp
|
|
waitmessage
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedThunderWave::
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_KirliaUsedThunderWave
|
|
waitmessage
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_KirliaUsedHypnosis::
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_KirliaUsedHypnosis
|
|
waitmessage
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsUsedIceBeam::
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_DusclopsUsedIceBeam
|
|
waitmessage
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_DusclopsUsedWillOWisp::
|
|
message BattleFrontier_BattlePikeRoomNormal_Text_DusclopsUsedWillOWisp
|
|
waitmessage
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_DoPikeQueenBattle::
|
|
closemessage
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePikeRoomNormal_Movement_PlayerWalkUp2
|
|
waitmovement 0
|
|
setvar VAR_0x8004, SPECIAL_BATTLE_PIKE_SINGLE
|
|
setvar VAR_0x8005, 0
|
|
special DoSpecialTrainerBattle
|
|
waitstate
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_ApproachPlayer:
|
|
walk_down
|
|
walk_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_NPCExit:
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
set_invisible
|
|
walk_up
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCExit:
|
|
walk_up
|
|
set_invisible
|
|
walk_up
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_NPCApproachMon:
|
|
walk_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_StatusNPCApproachPlayer:
|
|
walk_down
|
|
face_left
|
|
delay_16
|
|
delay_16
|
|
face_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_MonApproachPlayer:
|
|
walk_fast_down
|
|
walk_fast_right
|
|
walk_fast_right
|
|
walk_fast_down
|
|
walk_fast_left
|
|
face_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceNPC:
|
|
face_up
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_MonMoveAside:
|
|
walk_left
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceRight:
|
|
face_right
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCApproachPlayer:
|
|
walk_down
|
|
walk_down
|
|
walk_right
|
|
face_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceTrainer1:
|
|
face_left
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceTrainer2:
|
|
face_right
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_PlayerFaceUp:
|
|
face_up
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1WalkRight:
|
|
walk_right
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2WalkLeft:
|
|
walk_left
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_DoubleTrainersWalkDown:
|
|
walk_down
|
|
walk_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1FacePlayer:
|
|
face_right
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2FacePlayer:
|
|
face_left
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_Trainer1Exit:
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
walk_right
|
|
walk_up
|
|
set_invisible
|
|
walk_up
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_Trainer2Exit:
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
walk_left
|
|
walk_up
|
|
set_invisible
|
|
walk_up
|
|
step_end
|
|
|
|
@ For approaching Lucy and exiting room after defeating Lucy
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_PlayerWalkUp2:
|
|
walk_up
|
|
walk_up
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_PreQueenHealNPCApproachPlayer:
|
|
walk_down
|
|
walk_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCExitForLucy:
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
set_invisible
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_LucyEnter:
|
|
set_visible
|
|
walk_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_LucyMoveAside:
|
|
walk_left
|
|
face_right
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_NPC::
|
|
pike_getroomtype
|
|
switch VAR_RESULT
|
|
case PIKE_ROOM_NPC, BattleFrontier_BattlePikeRoomNormal_EventScript_NormalNPC
|
|
case PIKE_ROOM_STATUS, BattleFrontier_BattlePikeRoomNormal_EventScript_StatusNPC
|
|
case PIKE_ROOM_HEAL_PART, BattleFrontier_BattlePikeRoomNormal_EventScript_HealNPC
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_NormalNPC::
|
|
lock
|
|
faceplayer
|
|
pike_getnpcmsg
|
|
msgbox gStringVar4, MSGBOX_DEFAULT
|
|
waitmessage
|
|
closemessage
|
|
release
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_StatusNPC::
|
|
lock
|
|
faceplayer
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_ApologizeHopeMonsAreFine, MSGBOX_DEFAULT
|
|
closemessage
|
|
release
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_HealNPC::
|
|
pike_healonetwomons
|
|
call_if_eq VAR_RESULT, 2, BattleFrontier_BattlePikeRoomNormal_EventScript_WillRestoreTwoMons
|
|
call_if_eq VAR_RESULT, 1, BattleFrontier_BattlePikeRoomNormal_EventScript_WillRestoreOneMon
|
|
playfanfare MUS_HEAL
|
|
waitfanfare
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_BestOfLuckFarewell, MSGBOX_DEFAULT
|
|
closemessage
|
|
release
|
|
applymovement LOCALID_OBJ_0, BattleFrontier_BattlePikeRoomNormal_Movement_HealNPCExit
|
|
waitmovement 0
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_WillRestoreOneMon::
|
|
lock
|
|
faceplayer
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreOneMon, MSGBOX_DEFAULT
|
|
closemessage
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_WillRestoreTwoMons::
|
|
lock
|
|
faceplayer
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreTwoMons, MSGBOX_DEFAULT
|
|
closemessage
|
|
return
|
|
|
|
@ Dusclops or Kirlia
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_StatusMon::
|
|
lock
|
|
faceplayer
|
|
msgbox BattleFrontier_BattlePikeRoomNormal_Text_Silence, MSGBOX_DEFAULT
|
|
closemessage
|
|
release
|
|
applymovement LOCALID_OBJ_1, BattleFrontier_BattlePikeRoomNormal_Movement_MonFaceRight
|
|
waitmovement 0
|
|
end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesMostlyClosed::
|
|
setmetatile 4, 1, METATILE_BattlePike_Curtain_Stage1_Tile0, TRUE
|
|
setmetatile 3, 2, METATILE_BattlePike_Curtain_Stage1_Tile1, TRUE
|
|
setmetatile 4, 2, METATILE_BattlePike_Curtain_Stage1_Tile2, TRUE
|
|
setmetatile 5, 2, METATILE_BattlePike_Curtain_Stage1_Tile3, TRUE
|
|
setmetatile 3, 3, METATILE_BattlePike_Curtain_Stage1_Tile4, TRUE
|
|
setmetatile 4, 3, METATILE_BattlePike_Curtain_Stage1_Tile5, FALSE
|
|
setmetatile 5, 3, METATILE_BattlePike_Curtain_Stage1_Tile6, TRUE
|
|
special DrawWholeMapView
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesLittleClosed::
|
|
setmetatile 4, 1, METATILE_BattlePike_Curtain_Stage2_Tile0, TRUE
|
|
setmetatile 3, 2, METATILE_BattlePike_Curtain_Stage2_Tile1, TRUE
|
|
setmetatile 4, 2, METATILE_BattlePike_Curtain_Stage2_Tile2, TRUE
|
|
setmetatile 5, 2, METATILE_BattlePike_Curtain_Stage2_Tile3, TRUE
|
|
setmetatile 3, 3, METATILE_BattlePike_Curtain_Stage2_Tile4, TRUE
|
|
setmetatile 4, 3, METATILE_BattlePike_Curtain_Stage2_Tile5, FALSE
|
|
setmetatile 5, 3, METATILE_BattlePike_Curtain_Stage2_Tile6, TRUE
|
|
special DrawWholeMapView
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesOpen::
|
|
setmetatile 4, 1, METATILE_BattlePike_Curtain_Stage3_Tile0, TRUE
|
|
setmetatile 3, 2, METATILE_BattlePike_Curtain_Stage3_Tile1, TRUE
|
|
setmetatile 4, 2, METATILE_BattlePike_Curtain_Stage3_Tile2, TRUE
|
|
setmetatile 5, 2, METATILE_BattlePike_Curtain_Stage3_Tile3, TRUE
|
|
setmetatile 3, 3, METATILE_BattlePike_Curtain_Stage3_Tile4, TRUE
|
|
setmetatile 4, 3, METATILE_BattlePike_Curtain_Stage3_Tile5, FALSE
|
|
setmetatile 5, 3, METATILE_BattlePike_Curtain_Stage3_Tile6, TRUE
|
|
special DrawWholeMapView
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_EventScript_SetCurtainTilesClosed::
|
|
setmetatile 4, 1, METATILE_BattlePike_Curtain_Stage0_Tile0, TRUE
|
|
setmetatile 3, 2, METATILE_BattlePike_Curtain_Stage0_Tile1, TRUE
|
|
setmetatile 4, 2, METATILE_BattlePike_Curtain_Stage0_Tile2, TRUE
|
|
setmetatile 5, 2, METATILE_BattlePike_Curtain_Stage0_Tile3, TRUE
|
|
setmetatile 3, 3, METATILE_BattlePike_Curtain_Stage0_Tile4, TRUE
|
|
setmetatile 4, 3, METATILE_BattlePike_Curtain_Stage0_Tile5, FALSE
|
|
setmetatile 5, 3, METATILE_BattlePike_Curtain_Stage0_Tile6, TRUE
|
|
special DrawWholeMapView
|
|
return
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_CameraPanUp:
|
|
walk_up
|
|
walk_up
|
|
step_end
|
|
|
|
@ Unused
|
|
BattleFrontier_BattlePikeRoomNormal_Movement_CameraPanDown:
|
|
walk_down
|
|
walk_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreToFullHealth:
|
|
.string "Welcome…\n"
|
|
.string "You must be commended for your luck…\p"
|
|
.string "Your POKéMON shall be restored\n"
|
|
.string "to full health…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_EnjoyRestOfChallenge:
|
|
.string "I urge you to enjoy the rest of your\n"
|
|
.string "Battle Choice challenge…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreOneMon:
|
|
.string "Ah, you're a lucky one.\n"
|
|
.string "I'm in somewhat-good spirits now.\p"
|
|
.string "I will restore one of your POKéMON\n"
|
|
.string "to full health.$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_BestOfLuckFarewell:
|
|
.string "The best of luck to you.\n"
|
|
.string "Farewell.$"
|
|
|
|
@ Seems there was a planned room type where the player could choose to battle and would be healed if they won
|
|
@ Possibly replaced/superseded by the hard battle room, which is the same but the battle isnt optional
|
|
@ Unused
|
|
BattleFrontier_BattlePikeRoomNormal_Text_CareForBattleWillRestoreMons:
|
|
.string "Excuse me…\p"
|
|
.string "Would you care for a battle?\n"
|
|
.string "I'll restore your POKéMON if you win.$"
|
|
|
|
@ Unused
|
|
BattleFrontier_BattlePikeRoomNormal_Text_NowShallWe:
|
|
.string "Very well…\n"
|
|
.string "Now, shall we?$"
|
|
|
|
@ Unused
|
|
BattleFrontier_BattlePikeRoomNormal_Text_HowUnsportingOfYou:
|
|
.string "I see…\n"
|
|
.string "How unsporting of you…$"
|
|
|
|
@ Unused
|
|
BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreMonsAsPromised:
|
|
.string "Magnificent…\p"
|
|
.string "As promised, I shall restore your\n"
|
|
.string "POKéMON to full health.$"
|
|
|
|
@ Unused
|
|
BattleFrontier_BattlePikeRoomNormal_Text_BestOfLuckFarewell2:
|
|
.string "The best of luck to you.\n"
|
|
.string "Farewell.$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_WatchOut:
|
|
.string "Oh, my!\p"
|
|
.string "Watch out!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_KirliaStop:
|
|
.string "Now, now!\n"
|
|
.string "KIRLIA, stop that!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_DusclopsStop:
|
|
.string "Now, now!\n"
|
|
.string "DUSCLOPS, stop that!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_KirliaUsedToxic:
|
|
.string "KIRLIA used TOXIC!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_KirliaUsedHypnosis:
|
|
.string "KIRLIA used HYPNOSIS!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_KirliaUsedThunderWave:
|
|
.string "KIRLIA used THUNDER WAVE!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_KirliaUsedWillOWisp:
|
|
.string "KIRLIA used WILL-O-WISP!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_DusclopsUsedWillOWisp:
|
|
.string "DUSCLOPS used WILL-O-WISP!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_DusclopsUsedIceBeam:
|
|
.string "DUSCLOPS used ICE BEAM!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ThatsEnough:
|
|
.string "Look here!\n"
|
|
.string "That's quite enough!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ApologizeForKirlia:
|
|
.string "I must apologize to you…\p"
|
|
.string "My KIRLIA has a TIMID nature…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ApologizeForDusclops:
|
|
.string "I must apologize to you…\p"
|
|
.string "My DUSCLOPS has a TIMID nature…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_AttacksWhenStartled:
|
|
.string "It attacks without warning if it is\n"
|
|
.string "startled by another person…\p"
|
|
.string "Are you and your POKéMON all right?$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ApologizeHopeMonsAreFine:
|
|
.string "I do apologize for what happened…\n"
|
|
.string "I do hope your POKéMON are fine.$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_Silence:
|
|
.string "… … … … … …\n"
|
|
.string "… … … … … …$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_BattleSomewhatToughTrainer:
|
|
.string "Welcome…\p"
|
|
.string "Here, we will have you battle\n"
|
|
.string "a somewhat-tough TRAINER…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_RestoreToFullHealth:
|
|
.string "How wonderful…\p"
|
|
.string "To honor your victory, your POKéMON\n"
|
|
.string "shall be restored to full health…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_EnjoyRestOfChallenge2:
|
|
.string "I urge you to enjoy the rest of your\n"
|
|
.string "Battle Choice challenge…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ImThePikeQueen:
|
|
.string "I am LUCY…\n"
|
|
.string "I am the law here…\l"
|
|
.string "For I am the PIKE QUEEN…\p"
|
|
.string "You already know it, but to advance,\n"
|
|
.string "you must defeat me…\p"
|
|
.string "…I'm not one for idle chatter.\n"
|
|
.string "Hurry. Come on…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_HopeYouDidntUseUpLuck:
|
|
.string "Your luck…\n"
|
|
.string "I hope you didn't use it all up here…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_LucyShowMeFrontierPass:
|
|
.string "LUCY: … … … … … …\n"
|
|
.string "Show me your FRONTIER PASS…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ReceivedLuckSymbol:
|
|
.string "The Luck Symbol was embossed on\n"
|
|
.string "the FRONTIER PASS!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_AllThereIsDisappear:
|
|
.string "…That's all there is…\n"
|
|
.string "Disappear already…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_LucyYouAgain:
|
|
.string "LUCY: …You again…\p"
|
|
.string "… … … … … …\p"
|
|
.string "…I've trampled flowers and braved\n"
|
|
.string "storms to get to where I am…\p"
|
|
.string "I don't feel any compulsion to keep\n"
|
|
.string "losing to the same opponent…\p"
|
|
.string "… … … … … …\n"
|
|
.string "Fine… I'll do it…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_NowComeOn:
|
|
.string "Now!\n"
|
|
.string "Come on!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_LucyFrontierPass:
|
|
.string "LUCY: … … … … … …\p"
|
|
.string "…FRONTIER PASS…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_LuckSymbolTookGoldenShine:
|
|
.string "The Luck Symbol took on\n"
|
|
.string "a golden shine!$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_IWontForget:
|
|
.string "…You, I won't forget…\n"
|
|
.string "…Ever…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ChoseRoomNoHeal:
|
|
.string "I welcome you…\p"
|
|
.string "Giggle…\n"
|
|
.string "You seem to be bereft of luck…\p"
|
|
.string "If only you hadn't chosen this room,\n"
|
|
.string "your POKéMON could have been healed…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ChoseRoomHealOne:
|
|
.string "I welcome you…\p"
|
|
.string "Since you have chosen this room, I will\n"
|
|
.string "restore one POKéMON to full health…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ChoseRoomHealTwo:
|
|
.string "I welcome you…\p"
|
|
.string "Since you have chosen this room, I will\n"
|
|
.string "restore two POKéMON to full health…$"
|
|
|
|
@ Unused
|
|
BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreAllMons:
|
|
.string "I welcome you…\p"
|
|
.string "Giggle…\n"
|
|
.string "You should thank your lucky stars…\p"
|
|
.string "Since you have chosen this room,\n"
|
|
.string "all your POKéMON will be restored…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_ShallFetchOurMaster:
|
|
.string "I shall go fetch our master…$"
|
|
|
|
BattleFrontier_BattlePikeRoomNormal_Text_WillRestoreTwoMons:
|
|
.string "Ah, you're a lucky one!\n"
|
|
.string "I'm in good spirits now.\p"
|
|
.string "I will restore two of your POKéMON\n"
|
|
.string "to full health!$"
|
|
|