summaryrefslogtreecommitdiff
path: root/data/scripts/pc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/scripts/pc.inc')
-rw-r--r--data/scripts/pc.inc29
1 files changed, 15 insertions, 14 deletions
diff --git a/data/scripts/pc.inc b/data/scripts/pc.inc
index 6e266bdfc..0c71b9c76 100644
--- a/data/scripts/pc.inc
+++ b/data/scripts/pc.inc
@@ -2,24 +2,25 @@ EventScript_PC:: @ 81A6955
goto_if_questlog EventScript_ReleaseEnd
lockall
goto_if_set FLAG_SYS_PC_STORAGE_DISABLED, EventScript_PCDisabled
- setvar VAR_0x8004, 27
- special Special_SetSomeVariable
+ setvar VAR_0x8004, HELPCONTEXT_PC
+ special Script_SetHelpContext
setvar VAR_0x8004, 0
- special Special_AnimatePcTurnOn
+ special AnimatePcTurnOn
playse SE_PC_ON
msgbox Text_BootedUpPC
goto EventScript_PCMainMenu
end
+@ For when the player first arrives on One Island
EventScript_PCDisabled:: @ 81A698E
- msgbox Text_UsualPCServicesUnavailable
+ msgbox OneIsland_PokemonCenter_1F_Text_UsualPCServicesUnavailable
releaseall
end
EventScript_PCMainMenu:: @ 81A6998
message Text_AccessWhichPC
waitmessage
- special ScrSpecial_CreatePCMenu
+ special CreatePCMenu
waitstate
goto EventScript_ChoosePCMenu
end
@@ -49,8 +50,8 @@ EventScript_AccessPokemonStorage:: @ 81A6A05
msgbox Text_OpenedPkmnStorage
special ShowPokemonStorageSystem
waitstate
- setvar VAR_0x8004, 27
- special Special_SetSomeVariable
+ setvar VAR_0x8004, HELPCONTEXT_PC
+ special Script_SetHelpContext
goto EventScript_PCMainMenu
end
@@ -65,20 +66,20 @@ EventScript_AccessBillsPC:: @ 81A6A3D
EventScript_TurnOffPC:: @ 81A6A46
setvar VAR_0x8004, 0
playse SE_PC_OFF
- special Special_AnimatePcTurnOff
- special sub_812B35C
+ special AnimatePcTurnOff
+ special SetHelpContextForMap
releaseall
end
EventScript_AccessHallOfFame:: @ 81A6A56
goto_if_unset FLAG_SYS_GAME_CLEAR, EventScript_TurnOffPC
playse SE_PC_LOGIN
- setvar VAR_0x8004, 31
- special HelpSystem_BackupSomeVariable
- special Special_SetSomeVariable
+ setvar VAR_0x8004, HELPCONTEXT_PC_MISC
+ special BackupHelpContext
+ special Script_SetHelpContext
special HallOfFamePCBeginFade
waitstate
- special HelpSystem_RestoreSomeVariable
+ special RestoreHelpContext
goto EventScript_ChoosePCMenu
end
@@ -90,7 +91,7 @@ EventScript_AccessProfOaksPC:: @ 81A6A7A
compare VAR_RESULT, NO
goto_if_eq EventScript_ExitOaksPC
setflag FLAG_OAKS_RATING_IS_VIA_PC
- call ProfOak_EventScript_RatePokedex
+ call PokedexRating_EventScript_Rate
clearflag FLAG_OAKS_RATING_IS_VIA_PC
goto EventScript_ExitOaksPC
end