Files
pokeemerald-expansion/data/scripts/pc.inc
Hedara 2844633403 Merge commit '89ca861a3af8b23bcd3db86fcea017a04ea82769' into pret-merge
Conflicts:
	data/maps/BattleFrontier_BattleArenaBattleRoom/scripts.inc
	data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc
	data/maps/BattleFrontier_BattleFactoryBattleRoom/scripts.inc
	data/maps/BattleFrontier_BattlePalaceBattleRoom/scripts.inc
	data/maps/BattleFrontier_BattlePikeRoomNormal/scripts.inc
	data/maps/BattleFrontier_BattlePyramidTop/scripts.inc
	data/maps/BattleFrontier_BattleTowerBattleRoom/scripts.inc
	data/maps/BattleFrontier_Lounge1/scripts.inc
	data/maps/BattleFrontier_Lounge5/scripts.inc
	data/maps/BattleFrontier_Lounge6/scripts.inc
	data/maps/BattleFrontier_Lounge7/scripts.inc
	data/maps/FallarborTown_MoveRelearnersHouse/scripts.inc
	data/maps/FortreeCity_House1/scripts.inc
	data/maps/LilycoveCity_MoveDeletersHouse/scripts.inc
	data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc
	data/maps/PacifidlogTown_House3/scripts.inc
	data/maps/RustboroCity_House1/scripts.inc
	data/maps/SlateportCity_BattleTentBattleRoom/scripts.inc
	data/maps/SlateportCity_NameRatersHouse/scripts.inc
	data/maps/SootopolisCity_LotadAndSeedotHouse/scripts.inc
	data/scripts/day_care.inc
	data/scripts/pc_transfer.inc
	data/specials.inc
2026-05-15 16:40:56 +02:00

74 lines
1.7 KiB
C++

EventScript_PC::
lockall
setvar VAR_0x8004, PC_LOCATION_OTHER
special DoPCTurnOnEffect
playse SE_PC_ON
msgbox Text_BootUpPC, MSGBOX_DEFAULT
goto EventScript_PCMainMenu
end
EventScript_PCMainMenu::
message gText_WhichPCShouldBeAccessed
waitmessage
special ScriptMenu_CreatePCMultichoice
goto EventScript_AccessPC
end
EventScript_AccessPC::
switch VAR_RESULT
case 0, EventScript_AccessPokemonStorage
case 1, EventScript_AccessPlayersPC
case 2, EventScript_AccessHallOfFame
case 3, EventScript_TurnOffPC
case MULTI_B_PRESSED, EventScript_TurnOffPC
end
EventScript_AccessPlayersPC::
playse SE_PC_LOGIN
msgbox gText_AccessedPlayersPC, MSGBOX_DEFAULT
special PlayerPC
goto EventScript_PCMainMenu
end
EventScript_AccessPokemonStorage::
playse SE_PC_LOGIN
call_if_unset FLAG_SYS_PC_LANETTE, EventScript_AccessSomeonesPC
call_if_set FLAG_SYS_PC_LANETTE, EventScript_AccessLanettesPC
msgbox gText_StorageSystemOpened, MSGBOX_DEFAULT
special ShowPokemonStorageSystemPC
goto EventScript_PCMainMenu
end
EventScript_AccessSomeonesPC::
msgbox gText_AccessedSomeonesPC, MSGBOX_DEFAULT
return
EventScript_AccessLanettesPC::
#if IS_FRLG
msgbox gText_AccessedBillsPC, MSGBOX_DEFAULT
#else
msgbox gText_AccessedLanettesPC, MSGBOX_DEFAULT
#endif
return
EventScript_TurnOffPC::
setvar VAR_0x8004, PC_LOCATION_OTHER
playse SE_PC_OFF
special DoPCTurnOffEffect
releaseall
end
EventScript_AccessHallOfFame::
goto_if_unset FLAG_SYS_GAME_CLEAR, EventScript_TurnOffPC
playse SE_PC_LOGIN
special AccessHallOfFamePC
goto EventScript_AccessPC
end
EventScript_AccessPokemonBoxLink::
playse SE_PC_LOGIN
msgbox gText_StorageSystemOpened, MSGBOX_DEFAULT
special ShowPokemonStorageSystemPC
goto EventScript_TurnOffPC
end