pokeemerald/data/scripts/shared_secret_base.inc

225 lines
6.4 KiB
PHP
Raw Normal View History

2019-09-06 19:01:45 +02:00
SecretBase_MapScripts::
map_script MAP_SCRIPT_ON_WARP_INTO_MAP_TABLE, SecretBase_OnWarp
map_script MAP_SCRIPT_ON_TRANSITION, SecretBase_OnTransition
map_script MAP_SCRIPT_ON_FRAME_TABLE, SecretBase_OnFrame
map_script MAP_SCRIPT_ON_RESUME, SecretBase_OnResume
.byte 0
2021-07-20 21:18:31 +02:00
SecretBase_OnWarp:
map_script_2 VAR_SECRET_BASE_INITIALIZED, 0, SecretBase_EventScript_InitDecorations
.2byte 0
2021-07-20 21:18:31 +02:00
SecretBase_OnTransition:
call SecretBase_EventScript_SetDecorationFlags
special SetSecretBaseOwnerGfxId
special InitSecretBaseVars
end
2021-07-20 21:18:31 +02:00
SecretBase_OnFrame:
map_script_2 VAR_INIT_SECRET_BASE, 0, SecretBase_EventScript_FirstEntrance
.2byte 0
2021-07-20 21:18:31 +02:00
SecretBase_OnResume:
setstepcallback STEP_CB_SECRET_BASE
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PC::
2019-09-05 22:16:21 +02:00
lockall
playse SE_PC_LOGIN
message SecretBase_Text_BootUpPC
dofieldeffect FLDEFF_PCTURN_ON
waitstate
waitmessage
waitbuttonpress
playse SE_SELECT
goto SecretBase_EventScript_PCShowMainMenu
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCShowMainMenu::
2019-09-05 22:16:21 +02:00
message SecretBase_Text_WhatWouldYouLikeToDo
waitmessage
goto_if_set FLAG_SECRET_BASE_REGISTRY_ENABLED, SecretBase_EventScript_PCMainMenuWithRegister
goto SecretBase_EventScript_PCMainMenuWithoutRegister
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCCancel::
2019-09-05 22:16:21 +02:00
lockall
goto SecretBase_EventScript_PCShowMainMenu
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCMainMenuWithRegister::
2021-03-31 06:35:56 +02:00
multichoice 0, 0, MULTI_BASE_PC_WITH_REGISTRY, FALSE
2019-09-05 22:16:21 +02:00
switch VAR_RESULT
case 0, SecretBase_EventScript_PCDecorationMenu
case 1, SecretBase_EventScript_PCPackUp
case 2, SecretBase_EventScript_PCRegistryMenu
case 3, SecretBase_EventScript_PCTurnOff
2019-09-23 06:36:49 +02:00
case MULTI_B_PRESSED, SecretBase_EventScript_PCTurnOff
2019-09-05 22:16:21 +02:00
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCMainMenuWithoutRegister::
2021-03-31 06:35:56 +02:00
multichoice 0, 0, MULTI_BASE_PC_NO_REGISTRY, FALSE
2019-09-05 22:16:21 +02:00
switch VAR_RESULT
case 0, SecretBase_EventScript_PCDecorationMenu
case 1, SecretBase_EventScript_PCPackUp
case 2, SecretBase_EventScript_PCTurnOff
2019-09-23 06:36:49 +02:00
case MULTI_B_PRESSED, SecretBase_EventScript_PCTurnOff
2019-09-05 22:16:21 +02:00
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCPackUp::
2019-09-05 22:16:21 +02:00
msgbox SecretBase_Text_AllDecorationsWillBeReturned, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2019-09-05 22:16:21 +02:00
goto_if_eq SecretBase_EventScript_PCShowMainMenu
closemessage
special MoveOutOfSecretBase
releaseall
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCDecorationMenu::
2019-09-05 22:16:21 +02:00
special ShowSecretBaseDecorationMenu
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCRegistryMenu::
2019-09-05 22:16:21 +02:00
special ShowSecretBaseRegistryMenu
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_RecordMixingPC::
2019-09-05 22:16:21 +02:00
lockall
message SecretBase_Text_BootUpPC
playse SE_PC_LOGIN
dofieldeffect FLDEFF_PCTURN_ON
waitstate
waitmessage
waitbuttonpress
playse SE_SELECT
goto SecretBase_EventScript_PCRegisterMenu
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCRegisterMenu::
2019-09-05 22:16:21 +02:00
message SecretBase_Text_WhatWouldYouLikeToDo
waitmessage
2021-03-31 06:35:56 +02:00
multichoice 0, 0, MULTI_REGISTER_MENU, FALSE
2019-09-05 22:16:21 +02:00
switch VAR_RESULT
case 0, SecretBase_EventScript_PCRegister
case 1, SecretBase_EventScript_PCRegistryMenu
case 2, SecretBase_EventScript_PCRegistryInfo
case 3, SecretBase_EventScript_PCTurnOff
2019-09-23 06:36:49 +02:00
case MULTI_B_PRESSED, SecretBase_EventScript_PCTurnOff
2019-09-05 22:16:21 +02:00
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_ShowRegisterMenu::
2019-09-05 22:16:21 +02:00
lockall
goto SecretBase_EventScript_PCRegisterMenu
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCRegister::
2019-09-05 22:16:21 +02:00
special GetCurSecretBaseRegistrationValidity
compare VAR_RESULT, 1
goto_if_eq SecretBase_EventScript_AlreadyRegistered
compare VAR_RESULT, 2
goto_if_eq SecretBase_EventScript_CantRegisterTooManyBases
special CopyCurSecretBaseOwnerName_StrVar1
msgbox SecretBase_Text_WantToRegisterSecretBase, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2019-09-05 22:16:21 +02:00
goto_if_eq SecretBase_EventScript_PCRegisterMenu
msgbox SecretBase_Text_RegistrationCompleted, MSGBOX_SIGN
special ToggleCurSecretBaseRegistry
special DoSecretBasePCTurnOffEffect
releaseall
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_AlreadyRegistered::
2019-09-05 22:16:21 +02:00
msgbox SecretBase_Text_AlreadyRegisteredDelete, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, NO
2019-09-05 22:16:21 +02:00
goto_if_eq SecretBase_EventScript_PCRegisterMenu
msgbox SecretBase_Text_DataUnregistered, MSGBOX_SIGN
special ToggleCurSecretBaseRegistry
special DoSecretBasePCTurnOffEffect
releaseall
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_CantRegisterTooManyBases::
2019-09-05 22:16:21 +02:00
msgbox SecretBase_Text_TooManyBasesDeleteSome, MSGBOX_SIGN
special DoSecretBasePCTurnOffEffect
closemessage
releaseall
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCRegistryInfo::
2019-09-05 22:16:21 +02:00
msgbox SecretBase_Text_RegistryInfo, MSGBOX_DEFAULT
goto SecretBase_EventScript_PCRegisterMenu
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_PCTurnOff::
2019-09-05 22:16:21 +02:00
special DoSecretBasePCTurnOffEffect
closemessage
releaseall
end
@ Unused
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_Poster::
special CheckInteractedWithFriendsPosterDecor
2019-09-05 22:16:21 +02:00
end
@ Unused
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_FurnitureBottom::
special CheckInteractedWithFriendsFurnitureBottom
2019-09-05 22:16:21 +02:00
end
@ Unused
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_FurnitureMiddle::
special CheckInteractedWithFriendsFurnitureMiddle
2019-09-05 22:16:21 +02:00
end
@ Unused
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_FurnitureTop::
special CheckInteractedWithFriendsFurnitureTop
2019-09-05 22:16:21 +02:00
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_SandOrnament::
special CheckInteractedWithFriendsSandOrnament
2019-09-05 22:16:21 +02:00
dofieldeffect FLDEFF_SAND_PILLAR
waitstate
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_ShieldOrToyTV::
special InteractWithShieldOrTVDecoration
2019-09-05 22:16:21 +02:00
compare VAR_RESULT, 0
goto_if_eq SecretBase_EventScript_BattleTowerShield
compare VAR_RESULT, 1
goto_if_eq SecretBase_EventScript_ToyTV
compare VAR_RESULT, 2
goto_if_eq SecretBase_EventScript_SeedotTV
compare VAR_RESULT, 3
goto_if_eq SecretBase_EventScript_SkittyTV
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_BattleTowerShield::
2019-09-05 22:16:21 +02:00
msgbox SecretBase_Text_BattleTowerShield, MSGBOX_SIGN
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_ToyTV::
2019-09-05 22:16:21 +02:00
msgbox SecretBase_Text_ToyTV, MSGBOX_SIGN
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_SeedotTV::
2019-09-05 22:16:21 +02:00
msgbox SecretBase_Text_SeedotTV, MSGBOX_SIGN
end
2021-07-20 21:18:31 +02:00
SecretBase_EventScript_SkittyTV::
2019-09-05 22:16:21 +02:00
msgbox SecretBase_Text_SkittyTV, MSGBOX_SIGN
end
2021-07-20 21:18:31 +02:00
SecretBase_Text_SmallIndentInWall::
2019-09-05 22:16:21 +02:00
.string "There's a small indent in the wall.$"
2021-07-20 21:18:31 +02:00
SecretBase_Text_IndentUseSecretPower::
2019-09-05 22:16:21 +02:00
.string "There's a small indent in the wall.\p"
.string "Use the SECRET POWER?$"
2021-07-20 21:18:31 +02:00
SecretBase_Text_DiscoveredSmallCavern::
2019-09-05 22:16:21 +02:00
.string "Discovered a small cavern!$"
2021-07-20 21:18:31 +02:00
SecretBase_Text_WantToMakeYourSecretBaseHere:
2019-09-05 22:16:21 +02:00
.string "Want to make your SECRET BASE here?$"