mirror of
https://github.com/pret/pokeemerald.git
synced 2026-08-09 06:21:38 -05:00
# Conflicts: # Makefile # data/maps/BattleFrontier_BattleTowerLobby/scripts.inc # data/maps/OldaleTown/scripts.inc # data/maps/Route110_TrickHousePuzzle7/scripts.inc # data/maps/Route110_TrickHousePuzzle8/scripts.inc # data/scripts/roulette.inc # data/tilesets/graphics.inc # data/tilesets/metatiles.inc # graphics/trainer_card/0star_fr.pal # graphics/trainer_card/four_stars_fr.pal # graphics/trainer_card/frlg/0star.pal # graphics/trainer_card/frlg/blue.pal # graphics/trainer_card/frlg/bronze.pal # graphics/trainer_card/frlg/card.png # graphics/trainer_card/frlg/four_stars.pal # graphics/trainer_card/frlg/gold.pal # graphics/trainer_card/frlg/green.pal # graphics/trainer_card/frlg/one_star.pal # graphics/trainer_card/frlg/silver.pal # graphics/trainer_card/frlg/three_stars.pal # graphics/trainer_card/frlg/two_stars.pal # graphics/trainer_card/one_star_fr.pal # graphics/trainer_card/three_stars_fr.pal # graphics/trainer_card/two_stars_fr.pal # src/battle_message.c # src/battle_tent.c # src/berry_blender.c # src/berry_tag_screen.c # src/data/bard_music/length_table.h # src/data/credits.h # src/data/items.h # src/data/pokemon/pokedex_orders.h # src/data/region_map/region_map_entries.h # src/easy_chat.c # src/field_region_map.c # src/graphics.c # src/item.c # src/item_menu.c # src/menu_specialized.c # src/pokedex.c # src/pokedex_cry_screen.c # src/pokemon_jump.c # src/pokenav_conditions_search_results.c # src/pokenav_match_call_gfx.c # src/pokenav_ribbons_list.c # src/shop.c # src/trade.c # src/trainer_card.c # src/wireless_communication_status_screen.c
234 lines
9.2 KiB
PHP
234 lines
9.2 KiB
PHP
.set LOCALID_ATTENDANT, 1
|
|
.set LOCALID_BRANDON, 2
|
|
|
|
BattleFrontier_BattlePyramidTop_MapScripts::
|
|
map_script MAP_SCRIPT_ON_RESUME, BattleFrontier_BattlePyramidTop_OnResume
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, BattleFrontier_BattlePyramidTop_OnFrame
|
|
map_script MAP_SCRIPT_ON_TRANSITION, BattleFrontier_BattlePyramidTop_OnTransition
|
|
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, BattleFrontier_BattlePyramidTop_OnWarp
|
|
.byte 0
|
|
|
|
BattleFrontier_BattlePyramidTop_OnTransition:
|
|
pyramid_updatelight 200, PYRAMID_LIGHT_SET_RADIUS
|
|
setvar VAR_TEMP_F, 1
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_OnWarp:
|
|
map_script_2 VAR_TEMP_1, 0, BattleFrontier_BattlePyramidTop_EventScript_SetUpObjects
|
|
.2byte 0
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_SetUpObjects::
|
|
setvar VAR_TEMP_1, 1
|
|
turnobject OBJ_EVENT_ID_PLAYER, DIR_NORTH
|
|
goto_if_ne VAR_TEMP_C, 0, BattleFrontier_BattlePyramidTop_EventScript_EndSetUpObjects
|
|
setobjectxyperm LOCALID_BRANDON, 0, 0
|
|
BattleFrontier_BattlePyramidTop_EventScript_EndSetUpObjects::
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_OnResume:
|
|
frontier_getbrainstatus
|
|
goto_if_eq VAR_RESULT, FRONTIER_BRAIN_NOT_READY, BattleFrontier_BattlePyramidTop_EventScript_CheckChallengeStatus
|
|
call BattleFrontier_EventScript_SetBrainObjectGfx
|
|
BattleFrontier_BattlePyramidTop_EventScript_CheckChallengeStatus::
|
|
copyvar VAR_TEMP_C, VAR_RESULT
|
|
frontier_getstatus
|
|
switch VAR_TEMP_CHALLENGE_STATUS
|
|
case 0, BattleFrontier_BattlePyramidTop_EventScript_ReadyChallenge
|
|
case CHALLENGE_STATUS_SAVING, BattleFrontier_BattlePyramid_EventScript_WarpToLobby
|
|
case CHALLENGE_STATUS_PAUSED, BattleFrontier_BattlePyramidTop_EventScript_ReadyChallenge
|
|
frontier_get FRONTIER_DATA_BATTLE_OUTCOME
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_LOST, BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_DREW, BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_FORFEITED, BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_OnFrame:
|
|
map_script_2 VAR_TEMP_PLAYING_PYRAMID_MUSIC, 0, BattleFrontier_BattlePyramidTop_EventScript_PlayPyramidMusic
|
|
map_script_2 VAR_TEMP_F, 1, BattleFrontier_BattlePyramidTop_EventScript_ShowMapName
|
|
.2byte 0
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_PlayPyramidMusic::
|
|
playbgm MUS_B_PYRAMID_TOP, FALSE
|
|
setvar VAR_TEMP_PLAYING_PYRAMID_MUSIC, 1
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_ShowMapName::
|
|
special ShowMapNamePopup
|
|
setvar VAR_TEMP_F, 0
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_ReadyChallenge::
|
|
pyramid_save CHALLENGE_STATUS_SAVING
|
|
special SavePlayerParty
|
|
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, 0
|
|
pyramid_settrainers
|
|
frontier_setpartyorder FRONTIER_PARTY_SIZE
|
|
setvar VAR_TEMP_F, 1
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_Attendant::
|
|
lock
|
|
faceplayer
|
|
goto_if_ne VAR_TEMP_D, 0, BattleFrontier_BattlePyramidTop_EventScript_StepForwardWhenReady
|
|
goto_if_ne VAR_TEMP_C, FRONTIER_BRAIN_NOT_READY, BattleFrontier_BattlePyramidTop_EventScript_BrandonHereMoveAside
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_ReachedSummitUpYouGo, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside
|
|
waitmovement 0
|
|
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattlePyramidTop_Movement_PlayerClimbToTop
|
|
waitmovement 0
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePyramidTop_Movement_AttendantBlockPath
|
|
waitmovement 0
|
|
message BattleFrontier_BattlePyramidTop_Text_PlayerConqueredPyramid
|
|
waitmessage
|
|
playfanfare MUS_OBTAIN_B_POINTS
|
|
waitfanfare
|
|
closemessage
|
|
BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon::
|
|
frontier_set FRONTIER_DATA_CHALLENGE_STATUS, CHALLENGE_STATUS_WON
|
|
warp MAP_BATTLE_FRONTIER_BATTLE_PYRAMID_LOBBY, 7, 13
|
|
waitstate
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_StepForwardWhenReady::
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_StepForwardWhenReady, MSGBOX_DEFAULT
|
|
closemessage
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_BrandonHereMoveAside::
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_ChiefBeatYouHere, MSGBOX_DEFAULT
|
|
applymovement LOCALID_ATTENDANT, BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside
|
|
setvar VAR_TEMP_D, 1
|
|
closemessage
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_BattleBrandon::
|
|
lockall
|
|
switch VAR_TEMP_C
|
|
case FRONTIER_BRAIN_GOLD, BattleFrontier_BattlePyramidTop_EventScript_BrandonIntroGold
|
|
case FRONTIER_BRAIN_STREAK, BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardSilverSpeech
|
|
case FRONTIER_BRAIN_STREAK_LONG, BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardGoldSpeech
|
|
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
|
|
goto_if_ne VAR_RESULT, FALSE, BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardSilverSpeech
|
|
special SpawnCameraObject
|
|
applymovement OBJ_EVENT_ID_CAMERA, BattleFrontier_BattlePyramidTop_Movement_CameraPanUp
|
|
waitmovement 0
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_ExplorationsAreGrandestAdventure, MSGBOX_DEFAULT
|
|
closemessage
|
|
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
|
|
applymovement LOCALID_BRANDON, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
|
|
waitmovement 0
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_ImPyramidKingBrandon, MSGBOX_DEFAULT
|
|
goto BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonSilver
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardSilverSpeech::
|
|
applymovement LOCALID_BRANDON, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
|
|
waitmovement 0
|
|
BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonSilver::
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_BringCourageToOurBattle, MSGBOX_DEFAULT
|
|
call BattleFrontier_BattlePyramidTop_EventScript_DoBrandonBattle
|
|
playbgm MUS_B_PYRAMID_TOP, FALSE
|
|
goto_if_eq VAR_RESULT, 1, BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonSilver
|
|
goto BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonSilver::
|
|
frontier_getsymbols
|
|
goto_if_ne VAR_RESULT, 0, BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_BrandonFrontierPassPlease, MSGBOX_DEFAULT
|
|
playfanfare MUS_OBTAIN_SYMBOL
|
|
message BattleFrontier_BattlePyramidTop_Text_ReceivedBraveSymbol
|
|
waitmessage
|
|
waitfanfare
|
|
frontier_givesymbol
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_LookForwardToNextMeeting, MSGBOX_DEFAULT
|
|
goto BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_BrandonIntroGold::
|
|
frontier_get FRONTIER_DATA_HEARD_BRAIN_SPEECH
|
|
goto_if_ne VAR_RESULT, FALSE, BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardGoldSpeech
|
|
special SpawnCameraObject
|
|
applymovement OBJ_EVENT_ID_CAMERA, BattleFrontier_BattlePyramidTop_Movement_CameraPanUp
|
|
waitmovement 0
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_BrandonYouveReturned, MSGBOX_DEFAULT
|
|
closemessage
|
|
frontier_set FRONTIER_DATA_HEARD_BRAIN_SPEECH
|
|
applymovement LOCALID_BRANDON, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
|
|
waitmovement 0
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_MyCourageIsOffMeter, MSGBOX_DEFAULT
|
|
goto BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonGold
|
|
end
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardGoldSpeech::
|
|
applymovement LOCALID_BRANDON, BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer
|
|
waitmovement 0
|
|
BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonGold::
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_EverythingYouHave, MSGBOX_DEFAULT
|
|
call BattleFrontier_BattlePyramidTop_EventScript_DoBrandonBattle
|
|
playbgm MUS_B_PYRAMID_TOP, FALSE
|
|
goto_if_eq VAR_RESULT, 1, BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonGold
|
|
goto BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonGold::
|
|
frontier_getsymbols
|
|
goto_if_eq VAR_RESULT, 2, BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_BrandonRemarkableHaveThis, MSGBOX_DEFAULT
|
|
playfanfare MUS_OBTAIN_SYMBOL
|
|
message BattleFrontier_BattlePyramidTop_Text_BraveSymbolTookGoldenShine
|
|
waitmessage
|
|
waitfanfare
|
|
frontier_givesymbol
|
|
msgbox BattleFrontier_BattlePyramidTop_Text_FarewellForNow, MSGBOX_DEFAULT
|
|
goto BattleFrontier_BattlePyramidTop_EventScript_WarpToLobbyWon
|
|
|
|
BattleFrontier_BattlePyramidTop_EventScript_DoBrandonBattle::
|
|
closemessage
|
|
setvar VAR_0x8004, SPECIAL_BATTLE_PYRAMID
|
|
setvar VAR_0x8005, 0
|
|
special DoSpecialTrainerBattle
|
|
waitstate
|
|
return
|
|
|
|
BattleFrontier_BattlePyramidTop_Movement_AttendantMoveAside:
|
|
walk_right
|
|
walk_in_place_faster_left
|
|
step_end
|
|
|
|
BattleFrontier_BattlePyramidTop_Movement_AttendantBlockPath:
|
|
walk_left
|
|
walk_in_place_faster_up
|
|
step_end
|
|
|
|
BattleFrontier_BattlePyramidTop_Movement_PlayerClimbToTop:
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
walk_up
|
|
walk_in_place_faster_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePyramidTop_Movement_BrandonApproachPlayer:
|
|
walk_fast_down
|
|
step_end
|
|
|
|
BattleFrontier_BattlePyramidTop_Movement_CameraPanUp:
|
|
walk_slow_up
|
|
walk_slow_up
|
|
delay_16
|
|
step_end
|
|
|
|
.ifdef FRENCH
|
|
.include "data/maps/BattleFrontier_BattlePyramidTop/text_fr.inc"
|
|
.else
|
|
.ifdef ITALIAN
|
|
.include "data/maps/BattleFrontier_BattlePyramidTop/text_it.inc"
|
|
.else
|
|
.ifdef SPANISH
|
|
.include "data/maps/BattleFrontier_BattlePyramidTop/text_es.inc"
|
|
.else
|
|
.include "data/maps/BattleFrontier_BattlePyramidTop/text.inc"
|
|
.endif
|
|
.endif
|
|
.endif
|