Add enums for help system text, label help context

This commit is contained in:
GriffinR
2020-03-04 10:42:40 -05:00
parent 13e06bf7f8
commit 4df660dc76
33 changed files with 1634 additions and 705 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
EventScript_SetDefeatedEliteFourFlagsVars:: @ 81A651A
clearflag FLAG_HIDE_POSTGAME_GOSSIPERS
call EventScript_ResetEliteFour
special Special_UpdateTrainerFanClubGameClear
special Script_UpdateTrainerFanClubGameClear
specialvar VAR_RESULT, IsNationalPokedexEnabled
compare VAR_RESULT, FALSE
call_if_eq EventScript_SetReadyTryGiveNationalDexScene
+9 -9
View File
@@ -2,8 +2,8 @@ EventScript_PC:: @ 81A6955
goto_if_questlog EventScript_ReleaseEnd
lockall
goto_if_set FLAG_SYS_PC_STORAGE_DISABLED, EventScript_PCDisabled
setvar VAR_0x8004, 27
special HelpSystem_SetSomeVariable
setvar VAR_0x8004, HELPCONTEXT_PC
special Script_SetHelpContext
setvar VAR_0x8004, 0
special AnimatePcTurnOn
playse SE_PC_ON
@@ -50,8 +50,8 @@ EventScript_AccessPokemonStorage:: @ 81A6A05
msgbox Text_OpenedPkmnStorage
special ShowPokemonStorageSystem
waitstate
setvar VAR_0x8004, 27
special HelpSystem_SetSomeVariable
setvar VAR_0x8004, HELPCONTEXT_PC
special Script_SetHelpContext
goto EventScript_PCMainMenu
end
@@ -67,19 +67,19 @@ EventScript_TurnOffPC:: @ 81A6A46
setvar VAR_0x8004, 0
playse SE_PC_OFF
special AnimatePcTurnOff
special sub_812B35C
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 HelpSystem_SetSomeVariable
setvar VAR_0x8004, HELPCONTEXT_PC_MISC
special BackupHelpContext
special Script_SetHelpContext
special HallOfFamePCBeginFade
waitstate
special HelpSystem_RestoreSomeVariable
special RestoreHelpContext
goto EventScript_ChoosePCMenu
end
+4 -4
View File
@@ -35,9 +35,9 @@ PokedexRating_EventScript_DexCompleteFanfare:: @ 81A73DC
return
PokedexRating_EventScript_Rate:: @ 81A73E0
setvar VAR_0x8004, 31
special HelpSystem_BackupSomeVariable
special HelpSystem_SetSomeVariable
setvar VAR_0x8004, HELPCONTEXT_PC_MISC
special BackupHelpContext
special Script_SetHelpContext
setvar VAR_0x8004, 0
specialvar VAR_RESULT, GetPokedexCount
copyvar VAR_0x8008, VAR_0x8005
@@ -80,5 +80,5 @@ PokedexRating_EventScript_DexComplete:: @ 81A747E
end
PokedexRating_EventScript_EndRating:: @ 81A748F
special HelpSystem_RestoreSomeVariable
special RestoreHelpContext
return