summaryrefslogtreecommitdiff
path: root/data/scripts/pc.inc
diff options
context:
space:
mode:
authorhuderlem <huderlem@gmail.com>2019-10-05 09:59:43 -0500
committerGitHub <noreply@github.com>2019-10-05 09:59:43 -0500
commitc0b06025168778705ceb044c875561a694739c74 (patch)
treee62a583f8dff821113f998c1275a10c6aa000e07 /data/scripts/pc.inc
parenta6847ca1d938f6f4f317d88b0f656682a974c6d9 (diff)
parent749247b9104426fc8c652c5454fc1508b35c43b0 (diff)
Merge pull request #819 from GriffinRichards/document-eventscripts
Split some files from event_scripts
Diffstat (limited to 'data/scripts/pc.inc')
-rw-r--r--data/scripts/pc.inc66
1 files changed, 66 insertions, 0 deletions
diff --git a/data/scripts/pc.inc b/data/scripts/pc.inc
new file mode 100644
index 000000000..d5e51e412
--- /dev/null
+++ b/data/scripts/pc.inc
@@ -0,0 +1,66 @@
+EventScript_PC:: @ 8271D92
+ lockall
+ setvar VAR_0x8004, 0
+ special DoPCTurnOnEffect
+ playse SE_PC_ON
+ msgbox Text_BootUpPC, MSGBOX_DEFAULT
+ goto EventScript_271DAC
+ end
+
+EventScript_271DAC:: @ 8271DAC
+ message gText_WhichPCShouldBeAccessed
+ waitmessage
+ special ScriptMenu_CreatePCMultichoice
+ waitstate
+ goto EventScript_271DBC
+ end
+
+EventScript_271DBC:: @ 8271DBC
+ switch VAR_RESULT
+ case 0, EventScript_271E0E
+ case 1, EventScript_271DF9
+ case 2, EventScript_271E54
+ case 3, EventScript_271E47
+ case MULTI_B_PRESSED, EventScript_271E47
+ end
+
+EventScript_271DF9:: @ 8271DF9
+ playse SE_PC_LOGIN
+ msgbox gText_AccessedPlayersPC, MSGBOX_DEFAULT
+ special PlayerPC
+ waitstate
+ goto EventScript_271DAC
+ end
+
+EventScript_271E0E:: @ 8271E0E
+ playse SE_PC_LOGIN
+ call_if_unset FLAG_SYS_PC_LANETTE, EventScript_271E35
+ call_if_set FLAG_SYS_PC_LANETTE, EventScript_271E3E
+ msgbox gText_StorageSystemOpened, MSGBOX_DEFAULT
+ special ShowPokemonStorageSystemPC
+ waitstate
+ goto EventScript_271DAC
+ end
+
+EventScript_271E35:: @ 8271E35
+ msgbox gText_AccessedSomeonesPC, MSGBOX_DEFAULT
+ return
+
+EventScript_271E3E:: @ 8271E3E
+ msgbox gText_AccessedLanettesPC, MSGBOX_DEFAULT
+ return
+
+EventScript_271E47:: @ 8271E47
+ setvar VAR_0x8004, 0
+ playse SE_PC_OFF
+ special DoPCTurnOffEffect
+ releaseall
+ end
+
+EventScript_271E54:: @ 8271E54
+ goto_if_unset FLAG_SYS_GAME_CLEAR, EventScript_271E47
+ playse SE_PC_LOGIN
+ special AccessHallOfFamePC
+ waitstate
+ goto EventScript_271DBC
+ end