pokeemerald/data/scripts/berry_blender.inc

757 lines
23 KiB
PHP
Raw Normal View History

@ Note: local IDs shared with scripts.inc for LilycoveCity_ContestLobby
.set LOCALID_MAN, 3
.set LOCALID_BOY, 9
.set LOCALID_TWIN, 10
.set LOCALID_POKEFAN_F, 15
.set LOCALID_EXPERT_M, 16
.set LOCALID_GIRL, 17
2020-08-23 00:20:22 +02:00
.set NUM_OPPONENTS, VAR_0x8009
2021-07-20 21:18:31 +02:00
BerryBlender_Text_WantToMakePokeblocks:
.string "Oh? Did you want to make some {POKEBLOCK}S\n"
.string "with this old-timer?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_Excellent:
.string "Excellent!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_MadeOldTimerSad:
.string "Oh…\n"
.string "You've made this old-timer sad…$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_KnowHowToMakePokeblocks:
.string "Do you know how to make a {POKEBLOCK}?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_LetsBerryBlender:
.string "Let's get started, then!\p"
.string "Let's BERRY BLENDER!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_ExplainBerryBlending:
.string "Okay, a little explanation, then.\p"
.string "Oh, don't worry, it's quite simple.\p"
.string "When the BLENDER's arrow comes to\n"
.string "your marker, just press the A Button.\p"
.string "That's all you have to do.\n"
.string "You'll see how easy it is when you try.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHaveAnyBerries:
.string "Oh?\n"
.string "You don't have any BERRIES?\p"
.string "If you don't have any BERRIES,\n"
.string "you can't make any {POKEBLOCK}S.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_CanHaveOneOfMyBerries:
.string "Well, that won't do at all now, will it?\p"
.string "If you don't mind leftovers, you can\n"
.string "have one of my BERRIES.\p"
.string "That way, we could make some {POKEBLOCK}S\n"
.string "together using the BERRY BLENDER.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHaveAnyBerriesToSpare:
.string "If I had some BERRIES left over,\n"
.string "I'd gladly give you one…\p"
.string "But, I don't have any to spare today.\n"
.string "We'll have to do this another time.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_PokeblockCaseIsFull:
.string "But your {POKEBLOCK} CASE is full.\p"
.string "You should use some {POKEBLOCK}S before\n"
.string "you come see me again.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHavePokeblockCase:
.string "But you don't have a {POKEBLOCK} CASE.\p"
.string "You should get a {POKEBLOCK} CASE and then\n"
.string "come see me.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_LetsGetBlendingAlready:
.string "Let's get blending already!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_WhatKindOfPokeblockWillIGet:
.string "I wonder what kind of {POKEBLOCK} I'll get?\n"
.string "This is so exciting!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_WantToBlendPokeblocksWithUs:
.string "Hi, there! Did you want to blend some\n"
.string "{POKEBLOCK}S with us?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_Okay:
.string "Okay!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_ThatsTooBad:
.string "That's too bad…\p"
.string "But we'll always be around whenever\n"
.string "you get the urge to blend!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_KnowHowToMakePokeblocks2:
.string "Of course, you do know how to\n"
.string "blend {POKEBLOCK}S, don't you?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_LetsBerryBlender2:
.string "Let's get started, then!\p"
.string "Let's BERRY BLENDER!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_ExplainBerryBlending2:
.string "Okay!\n"
.string "Let me explain it to you!\p"
.string "When the spinning BLENDER's arrow\n"
.string "reaches your marker, just press\l"
.string "the A Button.\p"
.string "That's all it takes.\n"
.string "Pretty easy, don't you think?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHaveAnyBerries2:
.string "Oh, but wait a second here…\n"
.string "You don't have any BERRIES.\p"
.string "You can't make any {POKEBLOCK}S without\n"
.string "BERRIES…\p"
.string "We'll always be around whenever you\n"
.string "get hold of some BERRIES to blend.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_PokeblockCaseIsFull2:
.string "Oh, but wait a second here…\n"
.string "Your {POKEBLOCK} CASE is full.\p"
.string "You should use some {POKEBLOCK}S and\n"
.string "then come back.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHavePokeblockCase2:
.string "Oh, but wait a second here…\n"
.string "You don't have a {POKEBLOCK} CASE.\p"
.string "You should get a {POKEBLOCK} CASE and\n"
.string "then come back.$"
@ Unused
2021-07-20 21:18:31 +02:00
BerryBlender_Text_MakePokeblocksWithOurGroup:
.string "Oh, hello! Did you want to make some\n"
.string "{POKEBLOCK}S with our little group?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_OhDear:
.string "Oh, dear!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_LeftUsInShock:
.string "Oh, dear me…\p"
.string "You've left us in shock!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_KnowHowToMakePokeblocks3:
.string "Naturally, you know how to make\n"
.string "{POKEBLOCK}S, don't you?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_LetsBerryBlender3:
.string "Okay, dear!\n"
.string "Let's get started!\p"
.string "Let's BERRY BLENDER!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_ExplainBerryBlending3:
.string "Oh, dear!\p"
.string "Then, I'll explain it to you nicely.\p"
.string "When the BLENDER's arrow spins to\n"
.string "your marker, press the A Button.\p"
.string "That's all it takes.\n"
.string "Isn't it simple?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHaveAnyBerries3:
.string "You don't have any BERRIES,\n"
.string "do you?\p"
.string "If you don't have any BERRIES,\n"
.string "you can't make any {POKEBLOCK}S.\p"
.string "We'll always be making {POKEBLOCK}S here,\n"
.string "so let's make some together when\l"
.string "you get a BERRY or two.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_PokeblockCaseIsFull3:
.string "Your {POKEBLOCK} CASE is full,\n"
.string "it looks like.\p"
.string "You should use some {POKEBLOCK}S up\n"
.string "and then come back.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHavePokeblockCase3:
.string "You haven't gotten a {POKEBLOCK} CASE\n"
.string "yet, it looks like.\p"
.string "You need to get a {POKEBLOCK} CASE before\n"
.string "you come back.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_SetNewBlenderRecord:
.string "Okay! Today's going to be the day that\n"
.string "I set a new BLENDER speed record!$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_LookGoodAtBlendingJoinUs:
.string "Oh, dear!\n"
.string "You look as if you're good at blending.\l"
.string "Would you like to join us?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_MakeDeliciousPokeblocks:
.string "I'm going to make delicious {POKEBLOCK}S\n"
.string "and make my POKéMON cuter.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_SaveGameBeforeBerryBlenderLink:
.string "{POKEBLOCK}S will be made with your friends \n"
.string "from BERRIES in the BERRY BLENDER.\p"
.string "Is it okay to save the game before\n"
.string "linking with your friends?$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_SearchingForFriends:
.string "Searching for your friends…\n"
.string "… … B Button: Cancel$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_Player1Arrived:
.string "{STR_VAR_1} arrived.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_Player1And2Arrived:
.string "{STR_VAR_1} and {STR_VAR_2} arrived.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_AllPlayersArrived:
.string "{STR_VAR_1}, {STR_VAR_2}, and\n"
.string "{STR_VAR_3} arrived.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_NoBerriesLink:
.string "You have no BERRIES.\n"
.string "The BERRY BLENDER can't be used.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_PokeblockCaseIsFullLink:
.string "Your {POKEBLOCK} CASE is full.\n"
.string "The BERRY BLENDER can't be used.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHavePokeblockCaseLink:
.string "You don't have a {POKEBLOCK} CASE.\n"
.string "The BERRY BLENDER can't be used.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_LoveMakingPokeblocks:
.string "I love making {POKEBLOCK}S.\p"
.string "I always have some BERRIES with me.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_MakePokeblocksUsingBerryBlender:
.string "If you'd like, we could make some\n"
.string "{POKEBLOCK}S together using the\l"
.string "BERRY BLENDER.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHaveAnyBerriesHaveOne:
.string "Oh?\n"
.string "You don't have any BERRIES?\p"
.string "Well, that won't do at all now, will it?\p"
.string "If you don't mind leftovers, you can\n"
.string "have one of my BERRIES.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_UseItToMakePokeblocksTogether:
.string "We'll use it to make {POKEBLOCK}S together\n"
.string "using the BERRY BLENDER.$"
2021-07-20 21:18:31 +02:00
BerryBlender_Text_DontHaveAnyBerriesNoneToSpare:
.string "Oh?\n"
.string "You don't have any BERRIES?\p"
.string "If I had some left over, I'd gladly\n"
.string "give you one…\p"
.string "But, I don't have any to spare today.\n"
.string "Sorry about that.$"
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BerryBlender1::
lockall
2019-11-11 03:54:00 +01:00
goto_if_unset FLAG_HIDE_LILYCOVE_CONTEST_HALL_BLEND_MASTER, BerryBlender_EventScript_BlendMasterPresent
2020-08-23 00:20:22 +02:00
setvar NUM_OPPONENTS, 1
applymovement LOCALID_EXPERT_M, BerryBlender_Movement_BlendLeaderWalkInPlace
waitmovement 0
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_WantToMakePokeblocks, MSGBOX_YESNO
compare VAR_RESULT, YES
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_TryUseBerryBlender1
goto BerryBlender_EventScript_DeclineBlender1
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_DeclineBlender1:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_MadeOldTimerSad, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender1NoBerries:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHaveAnyBerries, MSGBOX_DEFAULT
dotimebasedevents
2019-11-11 03:54:00 +01:00
goto_if_set FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY, BerryBlender_EventScript_Blender1NoSpareBerries
goto BerryBlender_EventScript_Blender1GiveSpareBerry
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender1NoSpareBerries:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHaveAnyBerriesToSpare, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender1GiveSpareBerry:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_CanHaveOneOfMyBerries, MSGBOX_DEFAULT
giveitem ITEM_PECHA_BERRY
setflag FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY
2019-11-11 03:54:00 +01:00
goto BerryBlender_EventScript_UseBerryBlender1
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_UseBerryBlender1:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_KnowHowToMakePokeblocks, MSGBOX_YESNO
compare VAR_RESULT, YES
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_StartBlender1
goto BerryBlender_EventScript_ExplainBlending1
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_StartBlender1:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_LetsBerryBlender, MSGBOX_DEFAULT
goto BerryBlender_EventScript_DoBerryBlending
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_ExplainBlending1:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_ExplainBerryBlending, MSGBOX_DEFAULT
goto BerryBlender_EventScript_StartBlender1
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TryUseBerryBlender1:
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_Blender1NoCase
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_Blender1CaseFull
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_Blender1NoBerries
msgbox BerryBlender_Text_Excellent, MSGBOX_DEFAULT
goto BerryBlender_EventScript_UseBerryBlender1
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_DoBerryBlending:
2020-08-23 00:20:22 +02:00
copyvar VAR_0x8004, NUM_OPPONENTS
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
special DoBerryBlending
waitstate
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender1CaseFull:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_PokeblockCaseIsFull, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender1NoCase:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHavePokeblockCase, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BerryBlender2::
lockall
2020-08-23 00:20:22 +02:00
setvar NUM_OPPONENTS, 2
applymovement LOCALID_TWIN, Common_Movement_FaceOriginalDirection
applymovement LOCALID_MAN, BerryBlender_Movement_BlendLeaderWalkInPlace
waitmovement 0
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_WantToBlendPokeblocksWithUs, MSGBOX_YESNO
compare VAR_RESULT, YES
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_TryUseBerryBlender2
goto BerryBlender_EventScript_DeclineBlender2
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_DeclineBlender2:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_ThatsTooBad, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender2NoBerries:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHaveAnyBerries2, MSGBOX_DEFAULT
release
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_UseBerryBlender2:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_KnowHowToMakePokeblocks2, MSGBOX_YESNO
compare VAR_RESULT, YES
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_StartBlender2
goto BerryBlender_EventScript_ExplainBlending2
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_StartBlender2:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_LetsBerryBlender2, MSGBOX_DEFAULT
goto BerryBlender_EventScript_DoBerryBlending
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_ExplainBlending2:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_ExplainBerryBlending2, MSGBOX_DEFAULT
goto BerryBlender_EventScript_StartBlender2
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TryUseBerryBlender2:
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_Blender2NoBerries
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_Blender2NoCase
msgbox BerryBlender_Text_Okay, MSGBOX_DEFAULT
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_ne BerryBlender_EventScript_UseBerryBlender2
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_Blender2CaseFull
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender2CaseFull:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_PokeblockCaseIsFull2, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender2NoCase:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHavePokeblockCase2, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BerryBlender3::
lockall
setvar VAR_0x8008, LOCALID_POKEFAN_F
2020-08-23 00:20:22 +02:00
setvar NUM_OPPONENTS, 3
applymovement LOCALID_BOY, Common_Movement_FaceOriginalDirection
applymovement LOCALID_GIRL, Common_Movement_FaceOriginalDirection
2019-11-11 03:54:00 +01:00
applymovement VAR_0x8008, BerryBlender_Movement_BlendLeaderWalkInPlace
waitmovement 0
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_LookGoodAtBlendingJoinUs, MSGBOX_YESNO
compare VAR_RESULT, YES
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_TryUseBlender3
goto BerryBlender_EventScript_DeclineBlender3
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_DeclineBlender3:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_LeftUsInShock, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender3NoBerries:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHaveAnyBerries3, MSGBOX_DEFAULT
release
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_UseBerryBlender3:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_KnowHowToMakePokeblocks3, MSGBOX_YESNO
compare VAR_RESULT, YES
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_StartBlender3
goto BerryBlender_EventScript_ExplainBlending3
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_StartBlender3:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_LetsBerryBlender3, MSGBOX_DEFAULT
goto BerryBlender_EventScript_DoBerryBlending
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_ExplainBlending3:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_ExplainBerryBlending3, MSGBOX_DEFAULT
goto BerryBlender_EventScript_StartBlender3
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TryUseBlender3:
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_Blender3NoBerries
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_Blender3NoCase
msgbox BerryBlender_Text_OhDear, MSGBOX_DEFAULT
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_ne BerryBlender_EventScript_UseBerryBlender3
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_Blender3CaseFull
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender3CaseFull:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_PokeblockCaseIsFull3, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender3NoCase:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHavePokeblockCase3, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BlendMasterPresent:
lockall
2020-08-23 00:20:22 +02:00
setvar NUM_OPPONENTS, 1
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_SeeMyMasteryInAction, MSGBOX_YESNO
compare VAR_RESULT, YES
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_TryBlendWithBlendMaster
msgbox BerryBlender_Text_TooBusyNowIsee, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BlendMasterNoBerries:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_BlendMasterNoBerries, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TryBlendWithBlendMaster:
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_BlendMasterNoCase
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_BlendMasterNoBerries
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_ne BerryBlender_EventScript_BlendWithBlendMaster
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_BlendMasterCaseFull
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BlendWithBlendMaster:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_BlendMasterKnowHowToMakePokeblocks, MSGBOX_YESNO
compare VAR_RESULT, NO
2019-11-11 03:54:00 +01:00
call_if_eq BerryBlender_EventScript_BlendMasterExplainBlending
msgbox BerryBlender_Text_BlendMasterLetsBerryBlender, MSGBOX_DEFAULT
goto BerryBlender_EventScript_DoBerryBlending
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BlendMasterExplainBlending:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_BlendMasterExplainBerryBlending, MSGBOX_DEFAULT
return
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BlendMasterNoCase:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_BlendMasterNoPokeblockCase, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BlendMasterCaseFull:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_BlendMasterPokeblockCaseFull, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender2Man::
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_SetNewBlenderRecord, MSGBOX_NPC
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender3PokefanF::
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_LookGoodAtBlendingJoinUs, MSGBOX_NPC
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender2Twin::
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_MakeDeliciousPokeblocks, MSGBOX_NPC
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_Blender1ExpertM::
setvar VAR_0x8008, 15
2019-11-11 03:54:00 +01:00
goto BerryBlender_EventScript_ExpertMCheckGiveBerry
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_ExpertMCheckGiveBerry:
lock
faceplayer
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_LoveMakingPokeblocks, MSGBOX_DEFAULT
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, TRUE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_ExpertMPlayerHasBerries
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_ExpertMNoBerries
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_ExpertMPlayerHasBerries:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_MakePokeblocksUsingBerryBlender, MSGBOX_DEFAULT
release
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_ExpertMNoBerries:
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_ExpertMNoSpareBerries
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_ExpertMNoSpareBerries
dotimebasedevents
2019-11-11 03:54:00 +01:00
goto_if_set FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY, BerryBlender_EventScript_ExpertMNoSpareBerries
goto BerryBlender_EventScript_ExpertMGiveBerry
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_ExpertMNoSpareBerries:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHaveAnyBerriesNoneToSpare, MSGBOX_DEFAULT
release
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_ExpertMGiveBerry:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHaveAnyBerriesHaveOne, MSGBOX_DEFAULT
giveitem ITEM_PECHA_BERRY
setflag FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_UseItToMakePokeblocksTogether, MSGBOX_DEFAULT
release
end
2021-07-20 21:18:31 +02:00
BerryBlender_Movement_BlendLeaderWalkInPlace:
walk_in_place_fastest_right
step_end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_BerryBlenderLink::
lockall
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_LinkBlenderNoBerries
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_LinkBlenderNoCase
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_ne BerryBlender_EventScript_LinkBlenderSaveGame
compare VAR_RESULT, 65535
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_LinkBlenderCaseFull
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_LinkBlenderSaveGame:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_SaveGameBeforeBerryBlenderLink, MSGBOX_YESNO
compare VAR_RESULT, YES
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_TryDoLinkBlender
compare VAR_RESULT, NO
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_CancelLinkBlender
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_LinkBlenderNoBerries:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_NoBerriesLink, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TryDoLinkBlender:
call Common_EventScript_SaveGame
compare VAR_RESULT, FALSE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_CancelLinkBlender
specialvar VAR_RESULT, IsWirelessAdapterConnected
compare VAR_RESULT, TRUE
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_StartDecideLinkLeader
message BerryBlender_Text_SearchingForFriends
waitmessage
special TryBerryBlenderLinkup
waitstate
2020-06-04 00:00:53 +02:00
compare VAR_RESULT, LINKUP_SUCCESS
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_SpawnLinkPartners
2020-06-04 00:00:53 +02:00
compare VAR_RESULT, LINKUP_SOMEONE_NOT_READY
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_CloseLinkNotReady
2020-06-04 00:00:53 +02:00
compare VAR_RESULT, LINKUP_DIFF_SELECTIONS
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_CloseLinkDifferentSelections
2020-06-04 00:00:53 +02:00
compare VAR_RESULT, LINKUP_FAILED
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_CloseLink
2020-06-04 00:00:53 +02:00
compare VAR_RESULT, LINKUP_CONNECTION_ERROR
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_LinkError
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TwoPlayerLink:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_Player1Arrived, MSGBOX_DEFAULT
goto BerryBlender_EventScript_DoLinkBerryBlending
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_ThreePlayerLink:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_Player1And2Arrived, MSGBOX_DEFAULT
goto BerryBlender_EventScript_DoLinkBerryBlending
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_FourPlayerLink:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_AllPlayersArrived, MSGBOX_DEFAULT
goto BerryBlender_EventScript_DoLinkBerryBlending
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_DoLinkBerryBlending:
2020-08-23 00:20:22 +02:00
setvar VAR_0x8004, 0 @ number of opponents, 0 indicates Link
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
removeobject 240 @ Unclear where these local IDs come from,
removeobject 239 @ but presumably they'd be the 4 link players
removeobject 238
removeobject 237
special DoBerryBlending
waitstate
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_CancelLinkBlender:
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_LinkBlenderCaseFull:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_PokeblockCaseIsFullLink, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_LinkBlenderNoCase:
2019-11-11 03:54:00 +01:00
msgbox BerryBlender_Text_DontHavePokeblockCaseLink, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_CloseLinkNotReady:
special CloseLink
msgbox Text_SomeoneIsNotReadyToLink, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_CloseLinkDifferentSelections:
special CloseLink
msgbox Text_PlayersMadeDifferentSelections, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_CloseLink:
special CloseLink
msgbox gText_PokeblockLinkCanceled, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_LinkError:
special CloseLink
msgbox Text_LinkErrorPleaseReset, MSGBOX_DEFAULT
releaseall
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_SpawnLinkPartners:
2019-12-15 17:42:50 +01:00
fadescreen FADE_TO_BLACK
specialvar VAR_RESULT, GetLinkPartnerNames
copyvar VAR_0x8008, VAR_RESULT
copyvar VAR_0x8004, VAR_0x8008
special SpawnLinkPartnerObjectEvent
2019-11-11 03:54:00 +01:00
goto BerryBlender_EventScript_LinkPlayersArrived
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_LinkPlayersArrived:
2019-12-15 17:42:50 +01:00
fadescreen FADE_FROM_BLACK
switch VAR_0x8008
2019-11-11 03:54:00 +01:00
case 2, BerryBlender_EventScript_TwoPlayerLink
case 3, BerryBlender_EventScript_ThreePlayerLink
case 4, BerryBlender_EventScript_FourPlayerLink
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_StartDecideLinkLeader:
2019-11-11 03:54:00 +01:00
setvar VAR_0x8004, LINK_GROUP_BERRY_BLENDER
goto BerryBlender_EventScript_DecideLinkLeader
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_DecideLinkLeader:
2019-11-11 03:54:00 +01:00
message LilycoveCity_ContestLobby_Text_PleaseDecideLinkLeader
waitmessage
2021-03-31 06:35:56 +02:00
multichoice 16, 6, MULTI_LINK_LEADER, FALSE
switch VAR_RESULT
2019-11-11 03:54:00 +01:00
case 0, BerryBlender_EventScript_TryJoinGroup
case 1, BerryBlender_EventScript_TryLeadGroup
case 2, BerryBlender_EventScript_CloseLink
case MULTI_B_PRESSED, BerryBlender_EventScript_CloseLink
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TryLeadGroup:
2019-11-11 03:54:00 +01:00
call BerryBlender_EventScript_TryBecomeLinkLeader
2020-06-09 00:16:57 +02:00
compare VAR_RESULT, LINKUP_SUCCESS
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_LinkLeaderDecided
2020-06-09 00:16:57 +02:00
compare VAR_RESULT, LINKUP_FAILED
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_DecideLinkLeader
2020-06-09 00:16:57 +02:00
compare VAR_RESULT, LINKUP_RETRY_ROLE_ASSIGN
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_TryLeadGroup
release
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TryJoinGroup:
2019-11-11 03:54:00 +01:00
call BerryBlender_EventScript_TryJoinLinkGroup
2020-06-09 00:16:57 +02:00
compare VAR_RESULT, LINKUP_SUCCESS
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_LinkLeaderDecided
2020-06-09 00:16:57 +02:00
compare VAR_RESULT, LINKUP_FAILED
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_DecideLinkLeader
2020-06-09 00:16:57 +02:00
compare VAR_RESULT, LINKUP_RETRY_ROLE_ASSIGN
2019-11-11 03:54:00 +01:00
goto_if_eq BerryBlender_EventScript_TryJoinGroup
release
end
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TryBecomeLinkLeader:
special TryBecomeLinkLeader
waitstate
return
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_TryJoinLinkGroup:
special TryJoinLinkGroup
waitstate
return
2021-07-20 21:18:31 +02:00
BerryBlender_EventScript_LinkLeaderDecided:
2019-11-11 03:54:00 +01:00
goto BerryBlender_EventScript_SpawnLinkPartners
end