summaryrefslogtreecommitdiff
path: root/data/scripts/secret_base.inc
diff options
context:
space:
mode:
Diffstat (limited to 'data/scripts/secret_base.inc')
-rw-r--r--data/scripts/secret_base.inc1012
1 files changed, 356 insertions, 656 deletions
diff --git a/data/scripts/secret_base.inc b/data/scripts/secret_base.inc
index 81bd388f8..04fab5598 100644
--- a/data/scripts/secret_base.inc
+++ b/data/scripts/secret_base.inc
@@ -1,433 +1,148 @@
-Text_274746: @ 8274746
+SecretBase_Text_TreeCanBeClimbed: @ 8274746
.string "If some vines drop down, this tree can\n"
.string "be climbed.$"
-Text_274779: @ 8274779
+SecretBase_Text_TreeUseSecretPower: @ 8274779
.string "If some vines drop down, this tree can\n"
.string "be climbed.\p"
.string "Use the SECRET POWER?$"
-Text_2747C2: @ 82747C2
+SecretBase_Text_VineDroppedDown: @ 82747C2
.string "A thick vine dropped down!$"
-Text_2747DD: @ 82747DD
+SecretBase_Text_ClumpOfGrass: @ 82747DD
.string "If this clump of grass can be moved,\n"
.string "it might be possible to go inside.$"
-Text_274825: @ 8274825
+SecretBase_Text_ClumpUseSecretPower: @ 8274825
.string "If this clump of grass can be moved,\n"
.string "it might be possible to go inside.\p"
.string "Use the SECRET POWER?$"
-Text_274883: @ 8274883
+SecretBase_Text_DiscoveredSmallEntrance: @ 8274883
.string "Discovered a small entrance!$"
-SecretBase_RedCave1_Text_2748A0: @ 82748A0
- .string "Have you made a SECRET BASE already?\p"
- .string "I went here, there, everywhere before\n"
- .string "choosing this place.\p"
- .string "Since you're already here, how would\n"
- .string "you like to battle?$"
-
-SecretBase_RedCave1_Text_274939: @ 8274939
- .string "Okay!\n"
- .string "Here we come!$"
-
-SecretBase_RedCave1_Text_27494D: @ 827494D
- .string "Hunh?\n"
- .string "Oh, you can't now…$"
-
-SecretBase_RedCave1_Text_274966:: @ 8274966
- .string "Waaargh! You're too strong!\n"
- .string "About me losing… Please keep it secret!$"
-
-SecretBase_RedCave1_Text_2749AA: @ 82749AA
- .string "What do you think of my SECRET BASE?\n"
- .string "Come visit me again tomorrow.$"
-
-SecretBase_RedCave1_Text_2749ED: @ 82749ED
- .string "Have you made a SECRET BASE already?\p"
- .string "I went here, there, everywhere before\n"
- .string "choosing this place.\p"
- .string "Feel free to hang out!$"
-
-SecretBase_RedCave1_Text_274A64: @ 8274A64
- .string "There're a lot of places where\n"
- .string "you can make a SECRET BASE.\p"
- .string "But I like this spot best.\n"
- .string "Don't you think it's nice?\p"
- .string "Oh, would you like to have a battle?$"
-
-SecretBase_RedCave1_Text_274AFA: @ 8274AFA
- .string "Okay, here goes!$"
-
-SecretBase_RedCave1_Text_274B0B: @ 8274B0B
- .string "Oh…\n"
- .string "You can't now, okay.$"
-
-SecretBase_RedCave1_Text_274B24:: @ 8274B24
- .string "Hmmm… It's our loss…\n"
- .string "But don't tell anyone!\l"
- .string "It's a confidential secret!$"
-
-SecretBase_RedCave1_Text_274B6C: @ 8274B6C
- .string "If you're in this area again,\n"
- .string "I hope you'll visit me.$"
-
-SecretBase_RedCave1_Text_274BA2: @ 8274BA2
- .string "There're a lot of places where you can\n"
- .string "make a SECRET BASE.\p"
- .string "But I like this spot best.\n"
- .string "Don't you think it's nice?$"
-
-SecretBase_RedCave1_Text_274C13: @ 8274C13
- .string "This is a popular spot.\n"
- .string "It's always taken.\p"
- .string "Oh! Were you thinking about\n"
- .string "taking this spot, too?\p"
- .string "I'll tell you what, you can have this\n"
- .string "spot if you can beat me.$"
-
-SecretBase_RedCave1_Text_274CB0: @ 8274CB0
- .string "Okay!\n"
- .string "I'm going to defend my SECRET BASE!$"
-
-SecretBase_RedCave1_Text_274CDA: @ 8274CDA
- .string "Hunh? Is that right?\n"
- .string "You're not interested in this spot?$"
-
-SecretBase_RedCave1_Text_274D13:: @ 8274D13
- .string "I can't keep going!\n"
- .string "I surrender!$"
-
-SecretBase_RedCave1_Text_274D34: @ 8274D34
- .string "Okay, when I move one day,\n"
- .string "this place will be yours!$"
-
-SecretBase_RedCave1_Text_274D69: @ 8274D69
- .string "This is a popular spot.\n"
- .string "It's always taken.\p"
- .string "I waited a long time for it to open.\n"
- .string "I finally got to use it!$"
-
-SecretBase_RedCave1_Text_274DD2: @ 8274DD2
- .string "Welcome to my POKéMON LAB.\p"
- .string "I carry out research on battling in\n"
- .string "secrecy.\p"
- .string "Would you like to see how strong I am?$"
-
-SecretBase_RedCave1_Text_274E41: @ 8274E41
- .string "I'm going to go all out!$"
-
-SecretBase_RedCave1_Text_274E5A: @ 8274E5A
- .string "Oh.\n"
- .string "Some other time, then!$"
-
-SecretBase_RedCave1_Text_274E75:: @ 8274E75
- .string "Hmm… I've still got lots to learn.\n"
- .string "I have to study some more.$"
-
-SecretBase_RedCave1_Text_274EB3: @ 8274EB3
- .string "Thanks for battling with me.\n"
- .string "Please come back again tomorrow.$"
-
-SecretBase_RedCave1_Text_274EF1: @ 8274EF1
- .string "Welcome to my POKéMON LAB.\p"
- .string "I carry out research on battling in\n"
- .string "secrecy.$"
-
-SecretBase_RedCave1_Text_274F39: @ 8274F39
- .string "A big mansion is nice, but I like this\n"
- .string "sort of place more.\p"
- .string "I like it because all kinds of people\n"
- .string "come visit me.\p"
- .string "So, how would you like a battle?$"
-
-SecretBase_RedCave1_Text_274FCA: @ 8274FCA
- .string "That's the way!$"
-
-SecretBase_RedCave1_Text_274FDA: @ 8274FDA
- .string "When you're ready, give me a shout!$"
-
-SecretBase_RedCave1_Text_274FFE:: @ 8274FFE
- .string "Aww! Done in!\n"
- .string "But it's still fun to battle!$"
-
-SecretBase_RedCave1_Text_27502A: @ 827502A
- .string "Well, anyway, I should go buy some\n"
- .string "decorations and furniture.\p"
- .string "I want my SECRET BASE to be a place\n"
- .string "other people can enjoy.$"
-
-SecretBase_RedCave1_Text_2750A4: @ 82750A4
- .string "A big mansion is nice, but I like this\n"
- .string "sort of place more.\p"
- .string "I like it because all kinds of people\n"
- .string "come visit me.$"
-
-SecretBase_RedCave1_Text_275114: @ 8275114
- .string "I simply adore shopping for decorations\n"
- .string "and furniture.\p"
- .string "I also love raising POKéMON just\n"
- .string "as much.\p"
- .string "If you would be so kind, will you battle\n"
- .string "with my POKéMON?$"
-
-SecretBase_RedCave1_Text_2751AF: @ 82751AF
- .string "Thank you.\n"
- .string "Shall we begin?$"
-
-SecretBase_RedCave1_Text_2751CA: @ 82751CA
- .string "Oh.\n"
- .string "How disappointing…$"
-
-SecretBase_RedCave1_Text_2751E1:: @ 82751E1
- .string "I concede…$"
-
-SecretBase_RedCave1_Text_2751EC: @ 82751EC
- .string "That was all in good fun!\n"
- .string "I should go enjoy shopping now.$"
-
-SecretBase_RedCave1_Text_275226: @ 8275226
- .string "I simply adore shopping for decorations\n"
- .string "and furniture.\p"
- .string "I also love raising POKéMON just\n"
- .string "as much.$"
-
-SecretBase_RedCave1_Text_275287: @ 8275287
- .string "Some people make their SECRET BASES in\n"
- .string "hard-to-find places.\l"
- .string "Do they want to just lie low?\p"
- .string "But since you found me, how about we\n"
- .string "have a battle?$"
-
-SecretBase_RedCave1_Text_275315: @ 8275315
- .string "I'm not going down easily!$"
-
-SecretBase_RedCave1_Text_275330: @ 8275330
- .string "Oh… Are you maybe tired from searching\n"
- .string "for this place?$"
-
-SecretBase_RedCave1_Text_275367:: @ 8275367
- .string "I went down…$"
-
-SecretBase_RedCave1_Text_275374: @ 8275374
- .string "Where's your SECRET BASE?\n"
- .string "I should go visit you there.$"
-
-SecretBase_RedCave1_Text_2753AB: @ 82753AB
- .string "Some people make their SECRET BASES in\n"
- .string "hard-to-find places.\l"
- .string "Do they want to just lie low?$"
-
-SecretBase_RedCave1_Text_275405: @ 8275405
- .string "People have told me that you can get\n"
- .string "decorations in several ways.\p"
- .string "We should have a race to see who can\n"
- .string "get nicer decorations and furniture!\p"
- .string "In the meantime, want to battle?$"
-
-SecretBase_RedCave1_Text_2754B2: @ 82754B2
- .string "This is my SECRET BASE.\n"
- .string "I can't lose!$"
-
-SecretBase_RedCave1_Text_2754D8: @ 82754D8
- .string "I'll battle with you anytime.$"
-
-SecretBase_RedCave1_Text_2754F6:: @ 82754F6
- .string "Huh?\n"
- .string "Did I just lose?$"
-
-SecretBase_RedCave1_Text_27550C: @ 827550C
- .string "I won't lose at collecting decorations.\n"
- .string "Come visit again!$"
-
-SecretBase_RedCave1_Text_275546: @ 8275546
- .string "People have told me that you can get\n"
- .string "decorations in several ways.\p"
- .string "We should have a race to see who can\n"
- .string "get nicer decorations and furniture!$"
-
-SecretBase_RedCave1_Text_2755D2: @ 82755D2
- .string "I found a spot I liked, and I did it up\n"
- .string "with my favorite decorations.\p"
- .string "I raise my favorite POKéMON and grow\n"
- .string "stronger with it.\p"
- .string "That's what I do.\n"
- .string "Want to battle with me?$"
-
-SecretBase_RedCave1_Text_275679: @ 8275679
- .string "Show me what you're made of!$"
-
-SecretBase_RedCave1_Text_275696: @ 8275696
- .string "I guess there are times when you're not\n"
- .string "into it.$"
-
-SecretBase_RedCave1_Text_2756C7:: @ 82756C7
- .string "I know exactly what you're made of now.$"
-
-SecretBase_RedCave1_Text_2756EF: @ 82756EF
- .string "We can both become stronger.\n"
- .string "Let's keep at it!$"
-
-SecretBase_RedCave1_Text_27571E: @ 827571E
- .string "I found a spot I liked, and I did it up\n"
- .string "with my favorite decorations.\p"
- .string "I raise my favorite POKéMON and grow\n"
- .string "stronger with it.\p"
- .string "Every day is a great day.$"
-
-SecretBase_RedCave1_Text_2757B5: @ 82757B5
- .string "You can learn a lot about the taste\n"
- .string "and sense of people by the kinds of\l"
- .string "decorations they have, and how they\l"
- .string "display them.\p"
- .string "What do you think of my taste?\n"
- .string "Are you speechless?\p"
- .string "Want to see my taste in battling?$"
-
-SecretBase_RedCave1_Text_275884: @ 8275884
- .string "There's no holding back!$"
-
-SecretBase_RedCave1_Text_27589D: @ 827589D
- .string "I'll be happy to demonstrate my style\n"
- .string "anytime.$"
-
-SecretBase_RedCave1_Text_2758CC:: @ 82758CC
- .string "You're supremely talented!\n"
- .string "Your power seems to be limitless…$"
-
-SecretBase_RedCave1_Text_275909: @ 8275909
- .string "What did you think of my style?\n"
- .string "I'll keep on polishing it!$"
-
-SecretBase_RedCave1_Text_275944: @ 8275944
- .string "You can learn a lot about the taste\n"
- .string "and sense of people by the kinds of\l"
- .string "decorations they have, and how they\l"
- .string "display them.\p"
- .string "What do you think of my taste?\n"
- .string "Are you speechless?$"
-
-EventScript_2759F1:: @ 82759F1
+ .include "data/text/secret_base_trainers.inc"
+
+SecretBase_EventScript_CheckEntrance:: @ 82759F1
special GetSecretBaseTypeInFrontOfPlayer
special CheckPlayerHasSecretBase
compare VAR_RESULT, 1
- goto_if_eq EventScript_275BE8
+ goto_if_eq SecretBase_EventScript_AlreadyHasSecretBase
checkpartymove MOVE_SECRET_POWER
setfieldeffectargument 0, VAR_RESULT
buffermovename 1, MOVE_SECRET_POWER
- compare VAR_0x8007, 1
- goto_if_eq EventScript_275A50
- compare VAR_0x8007, 2
- goto_if_eq EventScript_275A50
- compare VAR_0x8007, 3
- goto_if_eq EventScript_275A50
- compare VAR_0x8007, 4
- goto_if_eq EventScript_275A50
- compare VAR_0x8007, 5
- goto_if_eq EventScript_275AA9
- compare VAR_0x8007, 6
- goto_if_eq EventScript_275B02
- end
-
-EventScript_275A50:: @ 8275A50
+ compare VAR_0x8007, SECRET_BASE_RED_CAVE
+ goto_if_eq SecretBase_EventScript_Cave
+ compare VAR_0x8007, SECRET_BASE_BROWN_CAVE
+ goto_if_eq SecretBase_EventScript_Cave
+ compare VAR_0x8007, SECRET_BASE_BLUE_CAVE
+ goto_if_eq SecretBase_EventScript_Cave
+ compare VAR_0x8007, SECRET_BASE_YELLOW_CAVE
+ goto_if_eq SecretBase_EventScript_Cave
+ compare VAR_0x8007, SECRET_BASE_TREE
+ goto_if_eq SecretBase_EventScript_Tree
+ compare VAR_0x8007, SECRET_BASE_SHRUB
+ goto_if_eq SecretBase_EventScript_Shrub
+ end
+
+SecretBase_EventScript_Cave:: @ 8275A50
lockall
- compare VAR_RESULT, 6
- goto_if_eq EventScript_275A91
+ compare VAR_RESULT, PARTY_SIZE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
bufferpartymonnick 0, VAR_RESULT
- msgbox gText_23B704, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ msgbox SecretBase_Text_IndentUseSecretPower, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
dofieldeffect FLDEFF_USE_SECRET_POWER_CAVE
waitstate
- goto EventScript_275A9B
+ goto SecretBase_EventScript_CaveEnter
end
-EventScript_275A86:: @ 8275A86
+SecretBase_EventScript_CaveUseSecretPower:: @ 8275A86
lockall
dofieldeffect FLDEFF_USE_SECRET_POWER_CAVE
waitstate
- goto EventScript_275A9B
+ goto SecretBase_EventScript_CaveEnter
end
-EventScript_275A91:: @ 8275A91
- msgbox gText_23B6E0, MSGBOX_DEFAULT
+SecretBase_EventScript_CaveNoSecretPower:: @ 8275A91
+ msgbox SecretBase_Text_SmallIndentInWall, MSGBOX_DEFAULT
releaseall
end
-EventScript_275A9B:: @ 8275A9B
- msgbox gText_23B73E, MSGBOX_DEFAULT
- goto EventScript_275B5B
+SecretBase_EventScript_CaveEnter:: @ 8275A9B
+ msgbox SecretBase_Text_DiscoveredSmallCavern, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_InitSecretBase
end
-EventScript_275AA9:: @ 8275AA9
+SecretBase_EventScript_Tree:: @ 8275AA9
lockall
- compare VAR_RESULT, 6
- goto_if_eq EventScript_275AEA
+ compare VAR_RESULT, PARTY_SIZE
+ goto_if_eq SecretBase_EventScript_TreeNoSecretPower
bufferpartymonnick 0, VAR_RESULT
- msgbox Text_274779, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ msgbox SecretBase_Text_TreeUseSecretPower, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
dofieldeffect FLDEFF_USE_SECRET_POWER_TREE
waitstate
- goto EventScript_275AF4
+ goto SecretBase_EventScript_TreeEnter
end
-EventScript_275ADF:: @ 8275ADF
+SecretBase_EventScript_TreeUseSecretPower:: @ 8275ADF
lockall
dofieldeffect FLDEFF_USE_SECRET_POWER_TREE
waitstate
- goto EventScript_275AF4
+ goto SecretBase_EventScript_TreeEnter
end
-EventScript_275AEA:: @ 8275AEA
- msgbox Text_274746, MSGBOX_DEFAULT
+SecretBase_EventScript_TreeNoSecretPower:: @ 8275AEA
+ msgbox SecretBase_Text_TreeCanBeClimbed, MSGBOX_DEFAULT
releaseall
end
-EventScript_275AF4:: @ 8275AF4
- msgbox Text_2747C2, MSGBOX_DEFAULT
- goto EventScript_275B5B
+SecretBase_EventScript_TreeEnter:: @ 8275AF4
+ msgbox SecretBase_Text_VineDroppedDown, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_InitSecretBase
end
-EventScript_275B02:: @ 8275B02
+SecretBase_EventScript_Shrub:: @ 8275B02
lockall
- compare VAR_RESULT, 6
- goto_if_eq EventScript_275B43
+ compare VAR_RESULT, PARTY_SIZE
+ goto_if_eq SecretBase_EventScript_ShrubNoSecretPower
bufferpartymonnick 0, VAR_RESULT
- msgbox Text_274825, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ msgbox SecretBase_Text_ClumpUseSecretPower, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
dofieldeffect FLDEFF_USE_SECRET_POWER_SHRUB
waitstate
- goto EventScript_275B4D
+ goto SecretBase_EventScript_ShrubEnter
end
-EventScript_275B38:: @ 8275B38
+SecretBase_EventScript_ShrubUseSecretPower:: @ 8275B38
lockall
dofieldeffect FLDEFF_USE_SECRET_POWER_SHRUB
waitstate
- goto EventScript_275B4D
+ goto SecretBase_EventScript_ShrubEnter
end
-EventScript_275B43:: @ 8275B43
- msgbox Text_2747DD, MSGBOX_DEFAULT
+SecretBase_EventScript_ShrubNoSecretPower:: @ 8275B43
+ msgbox SecretBase_Text_ClumpOfGrass, MSGBOX_DEFAULT
releaseall
end
-EventScript_275B4D:: @ 8275B4D
- msgbox Text_274883, MSGBOX_DEFAULT
- goto EventScript_275B5B
+SecretBase_EventScript_ShrubEnter:: @ 8275B4D
+ msgbox SecretBase_Text_DiscoveredSmallEntrance, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_InitSecretBase
end
-EventScript_275B5B:: @ 8275B5B
+SecretBase_EventScript_InitSecretBase:: @ 8275B5B
closemessage
playse SE_KAIDAN
setvar VAR_INIT_SECRET_BASE, 0
@@ -441,115 +156,113 @@ EventScript_275B5B:: @ 8275B5B
waitstate
end
-SecretBase_RedCave1_EventScript_275B81:: @ 8275B81
- applymovement EVENT_OBJ_ID_PLAYER, SecretBase_RedCave1_Movement_275BB4
+SecretBase_EventScript_FirstEntrance:: @ 8275B81
+ applymovement EVENT_OBJ_ID_PLAYER, SecretBase_Movement_275BB4
waitmovement 0
setvar VAR_INIT_SECRET_BASE, 1
- msgbox SecretBase_RedCave1_Text_23B759, MSGBOX_YESNO
- compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275BAB
+ msgbox SecretBase_Text_WantToMakeYourSecretBaseHere, MSGBOX_YESNO
+ compare VAR_RESULT, YES
+ goto_if_eq SecretBase_EventScript_SetAsBase
closemessage
playse SE_KAIDAN
special ClearAndLeaveSecretBase
end
-SecretBase_RedCave1_EventScript_275BAB:: @ 8275BAB
+SecretBase_EventScript_SetAsBase:: @ 8275BAB
closemessage
setflag FLAG_RECEIVED_SECRET_POWER
special EnterNewlyCreatedSecretBase
waitstate
end
-SecretBase_RedCave1_Movement_275BB4: @ 8275BB4
+SecretBase_Movement_275BB4: @ 8275BB4
walk_up
walk_up
step_end
-EventScript_275BB7:: @ 8275BB7
+SecretBase_EventScript_Enter:: @ 8275BB7
lockall
setvar VAR_INIT_SECRET_BASE, 1
playse SE_KAIDAN
special IsCurSecretBaseOwnedByAnotherPlayer
compare VAR_RESULT, 0
- goto_if_eq EventScript_275BDB
+ goto_if_eq SecretBase_EventScript_EnterPlayersBase
clearflag FLAG_DECORATION_0
special EnterSecretBase
setvar VAR_SECRET_BASE_INITIALIZED, 0
waitstate
end
-EventScript_275BDB:: @ 8275BDB
+SecretBase_EventScript_EnterPlayersBase:: @ 8275BDB
setflag FLAG_DECORATION_0
special EnterSecretBase
setvar VAR_SECRET_BASE_INITIALIZED, 0
waitstate
end
-EventScript_275BE8:: @ 8275BE8
+SecretBase_EventScript_AlreadyHasSecretBase:: @ 8275BE8
checkpartymove MOVE_SECRET_POWER
- compare VAR_RESULT, 6
- goto_if_eq EventScript_275C9A
+ compare VAR_RESULT, PARTY_SIZE
+ goto_if_eq SecretBase_EventScript_NoSecretPower
setfieldeffectargument 0, VAR_RESULT
setorcopyvar VAR_0x8004, VAR_RESULT
lockall
special GetSecretBaseNearbyMapName
- msgbox Text_276A3D, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
- msgbox Text_2766AA, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
+ msgbox SecretBase_Text_WouldYouLikeToMoveBases, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
+ msgbox SecretBase_Text_AllDecorationsWillBeReturned, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
fadescreenswapbuffers 1
special MoveOutOfSecretBaseFromOutside
closemessage
fadescreenswapbuffers 0
- msgbox Text_276A95, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq EventScript_275CDE
+ msgbox SecretBase_Text_MovingCompletedUseSecretPower, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_CancelOnEntrance
bufferpartymonnick 0, VAR_0x8004
buffermovename 1, MOVE_SECRET_POWER
- msgbox Text_MonUsedHM, MSGBOX_DEFAULT
+ msgbox Text_MonUsedFieldMove, MSGBOX_DEFAULT
closemessage
closemessage
- compare VAR_0x8007, 1
- goto_if_eq EventScript_275A86
- compare VAR_0x8007, 2
- goto_if_eq EventScript_275A86
- compare VAR_0x8007, 3
- goto_if_eq EventScript_275A86
- compare VAR_0x8007, 4
- goto_if_eq EventScript_275A86
- compare VAR_0x8007, 5
- goto_if_eq EventScript_275ADF
- compare VAR_0x8007, 6
- goto_if_eq EventScript_275B38
+ compare VAR_0x8007, SECRET_BASE_RED_CAVE
+ goto_if_eq SecretBase_EventScript_CaveUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_BROWN_CAVE
+ goto_if_eq SecretBase_EventScript_CaveUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_BLUE_CAVE
+ goto_if_eq SecretBase_EventScript_CaveUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_YELLOW_CAVE
+ goto_if_eq SecretBase_EventScript_CaveUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_TREE
+ goto_if_eq SecretBase_EventScript_TreeUseSecretPower
+ compare VAR_0x8007, SECRET_BASE_SHRUB
+ goto_if_eq SecretBase_EventScript_ShrubUseSecretPower
releaseall
end
-EventScript_275C9A:: @ 8275C9A
+SecretBase_EventScript_NoSecretPower:: @ 8275C9A
lockall
- compare VAR_0x8007, 1
- goto_if_eq EventScript_275A91
- compare VAR_0x8007, 2
- goto_if_eq EventScript_275A91
- compare VAR_0x8007, 3
- goto_if_eq EventScript_275A91
- compare VAR_0x8007, 4
- goto_if_eq EventScript_275A91
- compare VAR_0x8007, 5
- goto_if_eq EventScript_275AEA
- compare VAR_0x8007, 6
- goto_if_eq EventScript_275B43
- end
-
-EventScript_275CDE:: @ 8275CDE
+ compare VAR_0x8007, SECRET_BASE_RED_CAVE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_BROWN_CAVE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_BLUE_CAVE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_YELLOW_CAVE
+ goto_if_eq SecretBase_EventScript_CaveNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_TREE
+ goto_if_eq SecretBase_EventScript_TreeNoSecretPower
+ compare VAR_0x8007, SECRET_BASE_SHRUB
+ goto_if_eq SecretBase_EventScript_ShrubNoSecretPower
+ end
+
+SecretBase_EventScript_CancelOnEntrance:: @ 8275CDE
closemessage
releaseall
end
-LittlerootTown_BrendansHouse_2F_EventScript_275CE1:: @ 8275CE1
-LittlerootTown_MaysHouse_2F_EventScript_275CE1:: @ 8275CE1
-SecretBase_RedCave1_EventScript_275CE1:: @ 8275CE1
+SecretBase_EventScript_SetDecorationFlags:: @ 8275CE1
setflag FLAG_DECORATION_1
setflag FLAG_DECORATION_2
setflag FLAG_DECORATION_3
@@ -566,474 +279,461 @@ SecretBase_RedCave1_EventScript_275CE1:: @ 8275CE1
setflag FLAG_DECORATION_14
return
-EventScript_275D0C:: @ 8275D0C
+SecretBase_EventScript_InitDecorations:: @ 8275D0C
setvar VAR_0x8004, 0
setvar VAR_0x8005, 0
special InitSecretBaseDecorationSprites
setvar VAR_SECRET_BASE_INITIALIZED, 1
end
-EventScript_275D1F:: @ 8275D1F
+SecretBase_EventScript_SetDecoration:: @ 8275D1F
setvar VAR_0x8005, 0
- goto EventScript_275D2A
+ goto SecretBase_EventScript_SetDecoration2
end
-EventScript_275D2A:: @ 8275D2A
- special sub_8127E18
+SecretBase_EventScript_SetDecoration2:: @ 8275D2A
+ special SetDecoration
end
-EventScript_275D2E:: @ 8275D2E
+SecretBase_EventScript_PutAwayDecoration:: @ 8275D2E
setvar VAR_0x8004, 0
- goto EventScript_275D39
+ goto SecretBase_EventScript_PutAwayDecorationLoop
end
-EventScript_275D39:: @ 8275D39
+SecretBase_EventScript_PutAwayDecorationLoop:: @ 8275D39
special sub_8129708
compare VAR_RESULT, 1
- goto_if_eq EventScript_275D63
+ goto_if_eq SecretBase_EventScript_PutAwayDecorationEnd
addvar VAR_0x8004, 1
compare VAR_0x8005, 0
- goto_if_eq EventScript_275D39
+ goto_if_eq SecretBase_EventScript_PutAwayDecorationLoop
removeobject VAR_0x8006
- setflag 0x8005
- goto EventScript_275D39
- end
-
-EventScript_275D63:: @ 8275D63
- end
-
-SecretBase_BlueCave1_EventScript_275D64:: @ 8275D64
-SecretBase_BlueCave2_EventScript_275D64:: @ 8275D64
-SecretBase_BlueCave3_EventScript_275D64:: @ 8275D64
-SecretBase_BlueCave4_EventScript_275D64:: @ 8275D64
-SecretBase_BrownCave1_EventScript_275D64:: @ 8275D64
-SecretBase_BrownCave2_EventScript_275D64:: @ 8275D64
-SecretBase_BrownCave3_EventScript_275D64:: @ 8275D64
-SecretBase_BrownCave4_EventScript_275D64:: @ 8275D64
-SecretBase_RedCave1_EventScript_275D64:: @ 8275D64
-SecretBase_RedCave2_EventScript_275D64:: @ 8275D64
-SecretBase_RedCave3_EventScript_275D64:: @ 8275D64
-SecretBase_RedCave4_EventScript_275D64:: @ 8275D64
-SecretBase_Shrub1_EventScript_275D64:: @ 8275D64
-SecretBase_Shrub2_EventScript_275D64:: @ 8275D64
-SecretBase_Shrub3_EventScript_275D64:: @ 8275D64
-SecretBase_Shrub4_EventScript_275D64:: @ 8275D64
-SecretBase_Tree1_EventScript_275D64:: @ 8275D64
-SecretBase_Tree2_EventScript_275D64:: @ 8275D64
-SecretBase_Tree3_EventScript_275D64:: @ 8275D64
-SecretBase_Tree4_EventScript_275D64:: @ 8275D64
-SecretBase_YellowCave1_EventScript_275D64:: @ 8275D64
-SecretBase_YellowCave2_EventScript_275D64:: @ 8275D64
-SecretBase_YellowCave3_EventScript_275D64:: @ 8275D64
-SecretBase_YellowCave4_EventScript_275D64:: @ 8275D64
- special GetSecretBaseOwnerInteractionState
+ setflag 0x8005 @ UB: GF likely meant setvar here; setflag 0x8005 is out of bounds
+ goto SecretBase_EventScript_PutAwayDecorationLoop
+ end
+
+SecretBase_EventScript_PutAwayDecorationEnd:: @ 8275D63
+ end
+
+SecretBase_EventScript_RecordMixTrainer:: @ 8275D64
+ special GetSecretBaseOwnerAndState
compare VAR_0x8004, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275DD6
+ goto_if_eq SecretBase_EventScript_Trainer0
compare VAR_0x8004, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275E4E
+ goto_if_eq SecretBase_EventScript_Trainer1
compare VAR_0x8004, 2
- goto_if_eq SecretBase_RedCave1_EventScript_275EC6
+ goto_if_eq SecretBase_EventScript_Trainer2
compare VAR_0x8004, 3
- goto_if_eq SecretBase_RedCave1_EventScript_275F3E
+ goto_if_eq SecretBase_EventScript_Trainer3
compare VAR_0x8004, 4
- goto_if_eq SecretBase_RedCave1_EventScript_275FB6
+ goto_if_eq SecretBase_EventScript_Trainer4
compare VAR_0x8004, 5
- goto_if_eq SecretBase_RedCave1_EventScript_27602E
+ goto_if_eq SecretBase_EventScript_Trainer5
compare VAR_0x8004, 6
- goto_if_eq SecretBase_RedCave1_EventScript_2760A6
+ goto_if_eq SecretBase_EventScript_Trainer6
compare VAR_0x8004, 7
- goto_if_eq SecretBase_RedCave1_EventScript_27611E
+ goto_if_eq SecretBase_EventScript_Trainer7
compare VAR_0x8004, 8
- goto_if_eq SecretBase_RedCave1_EventScript_276196
+ goto_if_eq SecretBase_EventScript_Trainer8
compare VAR_0x8004, 9
- goto_if_eq SecretBase_RedCave1_EventScript_27620E
+ goto_if_eq SecretBase_EventScript_Trainer9
end
-SecretBase_RedCave1_EventScript_275DD6:: @ 8275DD6
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer0:: @ 8275DD6
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_275E25
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer0PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275E44
- msgbox SecretBase_RedCave1_Text_2748A0, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275E2F
+ goto_if_eq SecretBase_EventScript_Trainer0PostBattle
+ msgbox SecretBase_Text_Trainer0PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer0DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275E2F
- msgbox SecretBase_RedCave1_Text_274939, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer0DeclineBattle
+ msgbox SecretBase_Text_Trainer0AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_275E25:: @ 8275E25
- msgbox SecretBase_RedCave1_Text_2749ED, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer0PreChampion:: @ 8275E25
+ msgbox SecretBase_Text_Trainer0PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275E2F:: @ 8275E2F
+SecretBase_EventScript_Trainer0DeclineBattle:: @ 8275E2F
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_27494D, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer0DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275E44:: @ 8275E44
- msgbox SecretBase_RedCave1_Text_2749AA, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer0PostBattle:: @ 8275E44
+ msgbox SecretBase_Text_Trainer0PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275E4E:: @ 8275E4E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer1:: @ 8275E4E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_275E9D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer1PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275EBC
- msgbox SecretBase_RedCave1_Text_274C13, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275EA7
+ goto_if_eq SecretBase_EventScript_Trainer1PostBattle
+ msgbox SecretBase_Text_Trainer1PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer1DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275EA7
- msgbox SecretBase_RedCave1_Text_274CB0, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer1DeclineBattle
+ msgbox SecretBase_Text_Trainer1AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_275E9D:: @ 8275E9D
- msgbox SecretBase_RedCave1_Text_274D69, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer1PreChampion:: @ 8275E9D
+ msgbox SecretBase_Text_Trainer1PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275EA7:: @ 8275EA7
+SecretBase_EventScript_Trainer1DeclineBattle:: @ 8275EA7
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_274CDA, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer1DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275EBC:: @ 8275EBC
- msgbox SecretBase_RedCave1_Text_274D34, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer1PostBattle:: @ 8275EBC
+ msgbox SecretBase_Text_Trainer1PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275EC6:: @ 8275EC6
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer2:: @ 8275EC6
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_275F15
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer2PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275F34
- msgbox SecretBase_RedCave1_Text_274F39, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275F1F
+ goto_if_eq SecretBase_EventScript_Trainer2PostBattle
+ msgbox SecretBase_Text_Trainer2PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer2DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275F1F
- msgbox SecretBase_RedCave1_Text_274FCA, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer2DeclineBattle
+ msgbox SecretBase_Text_Trainer2AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_275F15:: @ 8275F15
- msgbox SecretBase_RedCave1_Text_2750A4, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer2PreChampion:: @ 8275F15
+ msgbox SecretBase_Text_Trainer2PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275F1F:: @ 8275F1F
+SecretBase_EventScript_Trainer2DeclineBattle:: @ 8275F1F
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_274FDA, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer2DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275F34:: @ 8275F34
- msgbox SecretBase_RedCave1_Text_27502A, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer2PostBattle:: @ 8275F34
+ msgbox SecretBase_Text_Trainer2PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275F3E:: @ 8275F3E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer3:: @ 8275F3E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_275F8D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer3PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_275FAC
- msgbox SecretBase_RedCave1_Text_275287, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275F97
+ goto_if_eq SecretBase_EventScript_Trainer3PostBattle
+ msgbox SecretBase_Text_Trainer3PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer3DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_275F97
- msgbox SecretBase_RedCave1_Text_275315, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer3DeclineBattle
+ msgbox SecretBase_Text_Trainer3AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_275F8D:: @ 8275F8D
- msgbox SecretBase_RedCave1_Text_2753AB, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer3PreChampion:: @ 8275F8D
+ msgbox SecretBase_Text_Trainer3PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275F97:: @ 8275F97
+SecretBase_EventScript_Trainer3DeclineBattle:: @ 8275F97
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_275330, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer3DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275FAC:: @ 8275FAC
- msgbox SecretBase_RedCave1_Text_275374, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer3PostBattle:: @ 8275FAC
+ msgbox SecretBase_Text_Trainer3PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_275FB6:: @ 8275FB6
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer4:: @ 8275FB6
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_276005
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer4PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_276024
- msgbox SecretBase_RedCave1_Text_2755D2, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_27600F
+ goto_if_eq SecretBase_EventScript_Trainer4PostBattle
+ msgbox SecretBase_Text_Trainer4PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer4DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_27600F
- msgbox SecretBase_RedCave1_Text_275679, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer4DeclineBattle
+ msgbox SecretBase_Text_Trainer4AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_276005:: @ 8276005
- msgbox SecretBase_RedCave1_Text_27571E, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer4PreChampion:: @ 8276005
+ msgbox SecretBase_Text_Trainer4PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27600F:: @ 827600F
+SecretBase_EventScript_Trainer4DeclineBattle:: @ 827600F
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_275696, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer4DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276024:: @ 8276024
- msgbox SecretBase_RedCave1_Text_2756EF, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer4PostBattle:: @ 8276024
+ msgbox SecretBase_Text_Trainer4PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27602E:: @ 827602E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer5:: @ 827602E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_27607D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer5PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_27609C
- msgbox SecretBase_RedCave1_Text_274A64, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276087
+ goto_if_eq SecretBase_EventScript_Trainer5PostBattle
+ msgbox SecretBase_Text_Trainer5PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer5DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276087
- msgbox SecretBase_RedCave1_Text_274AFA, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer5DeclineBattle
+ msgbox SecretBase_Text_Trainer5AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_27607D:: @ 827607D
- msgbox SecretBase_RedCave1_Text_274BA2, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer5PreChampion:: @ 827607D
+ msgbox SecretBase_Text_Trainer5PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276087:: @ 8276087
+SecretBase_EventScript_Trainer5DeclineBattle:: @ 8276087
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_274B0B, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer5DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27609C:: @ 827609C
- msgbox SecretBase_RedCave1_Text_274B6C, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer5PostBattle:: @ 827609C
+ msgbox SecretBase_Text_Trainer5PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_2760A6:: @ 82760A6
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer6:: @ 82760A6
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_2760F5
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer6PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_276114
- msgbox SecretBase_RedCave1_Text_274DD2, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_2760FF
+ goto_if_eq SecretBase_EventScript_Trainer6PostBattle
+ msgbox SecretBase_Text_Trainer6PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer6DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_2760FF
- msgbox SecretBase_RedCave1_Text_274E41, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer6DeclineBattle
+ msgbox SecretBase_Text_Trainer6AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_2760F5:: @ 82760F5
- msgbox SecretBase_RedCave1_Text_274EF1, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer6PreChampion:: @ 82760F5
+ msgbox SecretBase_Text_Trainer6PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_2760FF:: @ 82760FF
+SecretBase_EventScript_Trainer6DeclineBattle:: @ 82760FF
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_274E5A, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer6DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276114:: @ 8276114
- msgbox SecretBase_RedCave1_Text_274EB3, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer6PostBattle:: @ 8276114
+ msgbox SecretBase_Text_Trainer6PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27611E:: @ 827611E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer7:: @ 827611E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_27616D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer7PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_27618C
- msgbox SecretBase_RedCave1_Text_275114, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276177
+ goto_if_eq SecretBase_EventScript_Trainer7PostBattle
+ msgbox SecretBase_Text_Trainer7PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer7DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276177
- msgbox SecretBase_RedCave1_Text_2751AF, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer7DeclineBattle
+ msgbox SecretBase_Text_Trainer7AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_27616D:: @ 827616D
- msgbox SecretBase_RedCave1_Text_275226, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer7PreChampion:: @ 827616D
+ msgbox SecretBase_Text_Trainer7PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276177:: @ 8276177
+SecretBase_EventScript_Trainer7DeclineBattle:: @ 8276177
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_2751CA, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer7DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27618C:: @ 827618C
- msgbox SecretBase_RedCave1_Text_2751EC, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer7PostBattle:: @ 827618C
+ msgbox SecretBase_Text_Trainer7PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276196:: @ 8276196
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer8:: @ 8276196
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_2761E5
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer8PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_276204
- msgbox SecretBase_RedCave1_Text_275405, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_2761EF
+ goto_if_eq SecretBase_EventScript_Trainer8PostBattle
+ msgbox SecretBase_Text_Trainer8PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer8DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_2761EF
- msgbox SecretBase_RedCave1_Text_2754B2, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer8DeclineBattle
+ msgbox SecretBase_Text_Trainer8AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_2761E5:: @ 82761E5
- msgbox SecretBase_RedCave1_Text_275546, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer8PreChampion:: @ 82761E5
+ msgbox SecretBase_Text_Trainer8PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_2761EF:: @ 82761EF
+SecretBase_EventScript_Trainer8DeclineBattle:: @ 82761EF
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_2754D8, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer8DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276204:: @ 8276204
- msgbox SecretBase_RedCave1_Text_27550C, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer8PostBattle:: @ 8276204
+ msgbox SecretBase_Text_Trainer8PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27620E:: @ 827620E
+@ VAR_RESULT is initially set by GetSecretBaseOwnerAndState
+SecretBase_EventScript_Trainer9:: @ 827620E
lock
faceplayer
- goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_27625D
+ goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_EventScript_Trainer9PreChampion
compare VAR_RESULT, 1
- goto_if_eq SecretBase_RedCave1_EventScript_27627C
- msgbox SecretBase_RedCave1_Text_2757B5, MSGBOX_YESNO
- compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276267
+ goto_if_eq SecretBase_EventScript_Trainer9PostBattle
+ msgbox SecretBase_Text_Trainer9PreBattle, MSGBOX_YESNO
+ compare VAR_RESULT, NO
+ goto_if_eq SecretBase_EventScript_Trainer9DeclineBattle
setvar VAR_RESULT, 1
- special sub_80EA30C
+ special SetBattledOwnerFromResult
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
- goto_if_eq SecretBase_RedCave1_EventScript_276267
- msgbox SecretBase_RedCave1_Text_275884, MSGBOX_DEFAULT
- goto SecretBase_RedCave1_EventScript_276286
+ goto_if_eq SecretBase_EventScript_Trainer9DeclineBattle
+ msgbox SecretBase_Text_Trainer9AcceptBattle, MSGBOX_DEFAULT
+ goto SecretBase_EventScript_BattleTrainer
end
-SecretBase_RedCave1_EventScript_27625D:: @ 827625D
- msgbox SecretBase_RedCave1_Text_275944, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer9PreChampion:: @ 827625D
+ msgbox SecretBase_Text_Trainer9PreChampion, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276267:: @ 8276267
+SecretBase_EventScript_Trainer9DeclineBattle:: @ 8276267
special sub_80EB300
setvar VAR_RESULT, 0
- special sub_80EA30C
- msgbox SecretBase_RedCave1_Text_27589D, MSGBOX_DEFAULT
+ special SetBattledOwnerFromResult
+ msgbox SecretBase_Text_Trainer9DeclineBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_27627C:: @ 827627C
- msgbox SecretBase_RedCave1_Text_275909, MSGBOX_DEFAULT
+SecretBase_EventScript_Trainer9PostBattle:: @ 827627C
+ msgbox SecretBase_Text_Trainer9PostBattle, MSGBOX_DEFAULT
release
end
-SecretBase_RedCave1_EventScript_276286:: @ 8276286
+SecretBase_EventScript_BattleTrainer:: @ 8276286
special PrepSecretBaseBattleFlags
setvar VAR_0x8004, SPECIAL_BATTLE_SECRET_BASE
setvar VAR_0x8005, 0
special DoSpecialTrainerBattle
waitstate
- compare VAR_RESULT, 3
- call_if_eq SecretBase_RedCave1_EventScript_2762BD
- compare VAR_RESULT, 1
- call_if_eq SecretBase_RedCave1_EventScript_2762C1
- compare VAR_RESULT, 2
- call_if_eq SecretBase_RedCave1_EventScript_2762C5
+ compare VAR_RESULT, B_OUTCOME_DREW
+ call_if_eq SecretBase_EventScript_2762BD
+ compare VAR_RESULT, B_OUTCOME_WON
+ call_if_eq SecretBase_EventScript_2762C1
+ compare VAR_RESULT, B_OUTCOME_LOST
+ call_if_eq SecretBase_EventScript_2762C5
special HealPlayerParty
release
end
-SecretBase_RedCave1_EventScript_2762BD:: @ 82762BD
+SecretBase_EventScript_2762BD:: @ 82762BD
special sub_80EB438
return
-SecretBase_RedCave1_EventScript_2762C1:: @ 82762C1
+SecretBase_EventScript_2762C1:: @ 82762C1
special sub_80EB368
return
-SecretBase_RedCave1_EventScript_2762C5:: @ 82762C5
+SecretBase_EventScript_2762C5:: @ 82762C5
special sub_80EB3D0
return
@@ -1047,37 +747,37 @@ SecretBase_EventScript_CushionInteract:: @ 82766A6
special sub_80EB2C8
end
-Text_2766AA: @ 82766AA
+SecretBase_Text_AllDecorationsWillBeReturned: @ 82766AA
.string "All decorations and furniture in your\n"
.string "SECRET BASE will be returned to your PC.\p"
.string "Is that okay?$"
-Text_WantToRegisterSecretBase: @ 8276707
+SecretBase_Text_WantToRegisterSecretBase: @ 8276707
.string "Do you want to register\n"
.string "{STR_VAR_1}'s SECRET BASE?$"
-Text_276731: @ 8276731
+SecretBase_Text_AlreadyRegisteredDelete: @ 8276731
.string "This data is already registered.\n"
.string "Would you like to delete it?$"
-Text_TooManyBasesDeleteSome: @ 827676F
+SecretBase_Text_TooManyBasesDeleteSome: @ 827676F
.string "Up to 10 locations can be registered.\p"
.string "Delete a location if you want to\n"
.string "register another location.$"
-Text_2767D1: @ 82767D1
+SecretBase_Text_RegistrationCompleted: @ 82767D1
.string "Registration completed.$"
-Text_2767E9: @ 82767E9
+SecretBase_Text_DataUnregistered: @ 82767E9
.string "Data has been unregistered.$"
-Text_SecretBaseBootUpPC: @ 8276805
+SecretBase_Text_BootUpPC: @ 8276805
.string "{PLAYER} booted up the PC.$"
-Text_SecretBasePCStartMenu: @ 827681A
+SecretBase_Text_WhatWouldYouLikeToDo: @ 827681A
.string "What would you like to do?$"
-Text_276835: @ 8276835
+SecretBase_Text_RegistryInfo: @ 8276835
.string "Once registered, a SECRET BASE will not\n"
.string "disappear unless the other TRAINER\l"
.string "moves it to a different location.\p"
@@ -1087,27 +787,27 @@ Text_276835: @ 8276835
.string "Up to ten SECRET BASE locations\n"
.string "may be registered.$"
-Text_27692B: @ 827692B
+SecretBase_Text_BattleTowerShield: @ 827692B
.string "A shield of {STR_VAR_2} that marks winning\n"
.string "{STR_VAR_1} times in a row at the BATTLE TOWER.$"
-Text_276974: @ 8276974
+SecretBase_Text_ToyTV: @ 8276974
.string "A realistic toy TV. It could be easily\n"
.string "mistaken for the real thing.$"
-Text_2769B8: @ 82769B8
+SecretBase_Text_SeedotTV: @ 82769B8
.string "A toy TV shaped like a SEEDOT.\n"
.string "It looks ready to roll away on its own…$"
-Text_2769FF: @ 82769FF
+SecretBase_Text_SkittyTV: @ 82769FF
.string "A toy TV shaped like a SKITTY.\n"
.string "It looks ready to stroll away…$"
-Text_276A3D: @ 8276A3D
+SecretBase_Text_WouldYouLikeToMoveBases: @ 8276A3D
.string "You may only make one SECRET BASE.\p"
.string "Would you like to move from the SECRET\n"
.string "BASE near {STR_VAR_1}?$"
-Text_276A95: @ 8276A95
+SecretBase_Text_MovingCompletedUseSecretPower: @ 8276A95
.string "Moving completed.\p"
.string "Would you like to use the SECRET POWER?$"