pokeemerald/data/scripts/pc.inc

67 lines
1.6 KiB
PHP
Raw Normal View History

EventScript_PC:: @ 8271D92
2019-10-05 16:52:48 +02:00
lockall
setvar VAR_0x8004, 0
special DoPCTurnOnEffect
playse SE_PC_ON
msgbox Text_BootUpPC, MSGBOX_DEFAULT
2019-10-07 07:13:34 +02:00
goto EventScript_PCMainMenu
2019-10-05 16:52:48 +02:00
end
2019-10-07 07:13:34 +02:00
EventScript_PCMainMenu:: @ 8271DAC
2019-10-05 16:52:48 +02:00
message gText_WhichPCShouldBeAccessed
waitmessage
special ScriptMenu_CreatePCMultichoice
waitstate
2019-10-07 07:13:34 +02:00
goto EventScript_AccessPC
2019-10-05 16:52:48 +02:00
end
2019-10-07 07:13:34 +02:00
EventScript_AccessPC:: @ 8271DBC
2019-10-05 16:52:48 +02:00
switch VAR_RESULT
2019-10-07 07:13:34 +02:00
case 0, EventScript_AccessPokemonStorage
case 1, EventScript_AccessPlayersPC
case 2, EventScript_AccessHallOfFame
case 3, EventScript_TurnOffPC
case MULTI_B_PRESSED, EventScript_TurnOffPC
2019-10-05 16:52:48 +02:00
end
2019-10-07 07:13:34 +02:00
EventScript_AccessPlayersPC:: @ 8271DF9
2019-10-05 16:52:48 +02:00
playse SE_PC_LOGIN
msgbox gText_AccessedPlayersPC, MSGBOX_DEFAULT
special PlayerPC
waitstate
2019-10-07 07:13:34 +02:00
goto EventScript_PCMainMenu
2019-10-05 16:52:48 +02:00
end
2019-10-07 07:13:34 +02:00
EventScript_AccessPokemonStorage:: @ 8271E0E
2019-10-05 16:52:48 +02:00
playse SE_PC_LOGIN
2019-10-07 07:13:34 +02:00
call_if_unset FLAG_SYS_PC_LANETTE, EventScript_AccessSomeonesPC
call_if_set FLAG_SYS_PC_LANETTE, EventScript_AccessLanettesPC
2019-10-05 16:52:48 +02:00
msgbox gText_StorageSystemOpened, MSGBOX_DEFAULT
special ShowPokemonStorageSystemPC
waitstate
2019-10-07 07:13:34 +02:00
goto EventScript_PCMainMenu
2019-10-05 16:52:48 +02:00
end
2019-10-07 07:13:34 +02:00
EventScript_AccessSomeonesPC:: @ 8271E35
2019-10-05 16:52:48 +02:00
msgbox gText_AccessedSomeonesPC, MSGBOX_DEFAULT
return
2019-10-07 07:13:34 +02:00
EventScript_AccessLanettesPC:: @ 8271E3E
2019-10-05 16:52:48 +02:00
msgbox gText_AccessedLanettesPC, MSGBOX_DEFAULT
return
2019-10-07 07:13:34 +02:00
EventScript_TurnOffPC:: @ 8271E47
2019-10-05 16:52:48 +02:00
setvar VAR_0x8004, 0
playse SE_PC_OFF
special DoPCTurnOffEffect
releaseall
end
2019-10-07 07:13:34 +02:00
EventScript_AccessHallOfFame:: @ 8271E54
goto_if_unset FLAG_SYS_GAME_CLEAR, EventScript_TurnOffPC
2019-10-05 16:52:48 +02:00
playse SE_PC_LOGIN
special AccessHallOfFamePC
waitstate
2019-10-07 07:13:34 +02:00
goto EventScript_AccessPC
2019-10-05 16:52:48 +02:00
end