pokeemerald/data/scripts/pokeblocks.inc

760 lines
23 KiB
PHP
Raw Normal View History

2018-06-03 09:37:01 +02:00
@ The scripts there concern pokeblock events in LilyCove City's Contest Lobby
@ 'PblockX' number of offline opponents
@ 'Ask' talking with a blender machine
@ 'Yes' agreeing to blend
@ 'No' refusing to blend
@ 'KnowHow' asking if the player knows the blending process
@ 'Explain' explaining the blender process
@ 'Start' start blending
@ 'TalkX' talking with a person next to a blender machine
@ 'NoBerries' can't blend cause they have no berries
@ 'FullPokeblock' can't blend cause full pokeblock case
@ 'NoPokeblock' can't blend cause they have no pokeblock case
Text_Pblock1_Ask: @ 8292DEE
.string "Oh? Did you want to make some {POKEBLOCK}S\n"
.string "with this old-timer?$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_Yes: @ 8292E28
.string "Excellent!$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_No: @ 8292E33
.string "Oh…\n"
2018-12-07 16:41:08 +01:00
.string "You've made this old-timer sad…$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_KnowHow: @ 8292E57
.string "Do you know how to make a {POKEBLOCK}?$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_Start: @ 8292E78
2018-12-07 16:41:08 +01:00
.string "Let's get started, then!\p"
.string "Let's BERRY BLENDER!$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_Explain: @ 8292EA6
.string "Okay, a little explanation, then.\p"
2018-12-07 16:41:08 +01:00
.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"
2018-12-07 16:41:08 +01:00
.string "That's all you have to do.\n"
.string "You'll see how easy it is when you try.$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_NoBerries: @ 8292F77
.string "Oh?\n"
2018-12-07 16:41:08 +01:00
.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.$"
LilycoveCity_ContestLobby_Text_292FD1: @ 8292FD1
2018-12-07 16:41:08 +01:00
.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.$"
LilycoveCity_ContestLobby_Text_29307D: @ 829307D
.string "If I had some BERRIES left over,\n"
2018-12-07 16:41:08 +01:00
.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.$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_FullPokeblock: @ 8293101
.string "But your {POKEBLOCK} CASE is full.\p"
.string "You should use some {POKEBLOCK}S before\n"
.string "you come see me again.$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_NoPokeblock: @ 8293157
2018-12-07 16:41:08 +01:00
.string "But you don't have a {POKEBLOCK} CASE.\p"
.string "You should get a {POKEBLOCK} CASE and then\n"
.string "come see me.$"
LilycoveCity_ContestLobby_Text_2931AA: @ 82931AA
2018-12-07 16:41:08 +01:00
.string "Let's get blending already!$"
LilycoveCity_ContestLobby_Text_2931C6: @ 82931C6
2018-12-07 16:41:08 +01:00
.string "I wonder what kind of {POKEBLOCK} I'll get?\n"
.string "This is so exciting!$"
LilycoveCity_ContestLobby_Text_293201: @ 8293201
.string "Hi, there! Did you want to blend some\n"
.string "{POKEBLOCK}S with us?$"
LilycoveCity_ContestLobby_Text_293237: @ 8293237
.string "Okay!$"
LilycoveCity_ContestLobby_Text_29323D: @ 829323D
2018-12-07 16:41:08 +01:00
.string "That's too bad…\p"
.string "But we'll always be around whenever\n"
.string "you get the urge to blend!$"
LilycoveCity_ContestLobby_Text_29328C: @ 829328C
.string "Of course, you do know how to\n"
2018-12-07 16:41:08 +01:00
.string "blend {POKEBLOCK}S, don't you?$"
LilycoveCity_ContestLobby_Text_2932C3: @ 82932C3
2018-12-07 16:41:08 +01:00
.string "Let's get started, then!\p"
.string "Let's BERRY BLENDER!$"
LilycoveCity_ContestLobby_Text_2932F1: @ 82932F1
.string "Okay!\n"
.string "Let me explain it to you!\p"
2018-12-07 16:41:08 +01:00
.string "When the spinning BLENDER's arrow\n"
.string "reaches your marker, just press\l"
.string "the A Button.\p"
2018-12-07 16:41:08 +01:00
.string "That's all it takes.\n"
.string "Pretty easy, don't you think?$"
LilycoveCity_ContestLobby_Text_293394: @ 8293394
.string "Oh, but wait a second here…\n"
2018-12-07 16:41:08 +01:00
.string "You don't have any BERRIES.\p"
.string "You can't make any {POKEBLOCK}S without\n"
.string "BERRIES…\p"
2018-12-07 16:41:08 +01:00
.string "We'll always be around whenever you\n"
.string "get hold of some BERRIES to blend.$"
LilycoveCity_ContestLobby_Text_29343E: @ 829343E
.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.$"
LilycoveCity_ContestLobby_Text_2934A2: @ 82934A2
.string "Oh, but wait a second here…\n"
2018-12-07 16:41:08 +01:00
.string "You don't have a {POKEBLOCK} CASE.\p"
.string "You should get a {POKEBLOCK} CASE and\n"
.string "then come back.$"
LilycoveCity_ContestLobby_Text_29350B: @ 829350B
.string "Oh, hello! Did you want to make some\n"
.string "{POKEBLOCK}S with our little group?$"
LilycoveCity_ContestLobby_Text_29354E: @ 829354E
.string "Oh, dear!$"
LilycoveCity_ContestLobby_Text_293558: @ 8293558
.string "Oh, dear me…\p"
2018-12-07 16:41:08 +01:00
.string "You've left us in shock!$"
LilycoveCity_ContestLobby_Text_29357E: @ 829357E
.string "Naturally, you know how to make\n"
2018-12-07 16:41:08 +01:00
.string "{POKEBLOCK}S, don't you?$"
LilycoveCity_ContestLobby_Text_2935B1: @ 82935B1
.string "Okay, dear!\n"
2018-12-07 16:41:08 +01:00
.string "Let's get started!\p"
.string "Let's BERRY BLENDER!$"
LilycoveCity_ContestLobby_Text_2935E5: @ 82935E5
.string "Oh, dear!\p"
2018-12-07 16:41:08 +01:00
.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"
2018-12-07 16:41:08 +01:00
.string "That's all it takes.\n"
.string "Isn't it simple?$"
LilycoveCity_ContestLobby_Text_29367D: @ 829367D
2018-12-07 16:41:08 +01:00
.string "You don't have any BERRIES,\n"
.string "do you?\p"
2018-12-07 16:41:08 +01:00
.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.$"
LilycoveCity_ContestLobby_Text_293738: @ 8293738
.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.$"
LilycoveCity_ContestLobby_Text_293792: @ 8293792
2018-12-07 16:41:08 +01:00
.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.$"
LilycoveCity_ContestLobby_Text_2937F9: @ 82937F9
2018-12-07 16:41:08 +01:00
.string "Okay! Today's going to be the day that\n"
.string "I set a new BLENDER speed record!$"
LilycoveCity_ContestLobby_Text_293842: @ 8293842
.string "Oh, dear!\n"
2018-12-07 16:41:08 +01:00
.string "You look as if you're good at blending.\l"
.string "Would you like to join us?$"
LilycoveCity_ContestLobby_Text_29388F: @ 829388F
2018-12-07 16:41:08 +01:00
.string "I'm going to make delicious {POKEBLOCK}S\n"
.string "and make my POKéMON cuter.$"
2018-06-03 09:37:01 +02:00
Text_PblockLink_Ask: @ 82938CD
.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?$"
2018-06-03 09:37:01 +02:00
Text_PblockLink_Searching: @ 8293955
.string "Searching for your friends…\n"
.string "… … B Button: Cancel$"
2018-06-03 09:37:01 +02:00
Text_PblockLink_1Arrived: @ 8293986
.string "{STR_VAR_1} arrived.$"
2018-06-03 09:37:01 +02:00
Text_PblockLink_2Arrived: @ 8293992
.string "{STR_VAR_1} and {STR_VAR_2} arrived.$"
2018-06-03 09:37:01 +02:00
Text_PblockLink_3Arrived: @ 82939A5
.string "{STR_VAR_1}, {STR_VAR_2}, and\n"
.string "{STR_VAR_3} arrived.$"
2018-06-03 09:37:01 +02:00
Text_PblockLink_NoBerries: @ 82939BD
.string "You have no BERRIES.\n"
2018-12-07 16:41:08 +01:00
.string "The BERRY BLENDER can't be used.$"
2018-06-03 09:37:01 +02:00
Text_PblockLink_FullPokeblock: @ 82939F3
.string "Your {POKEBLOCK} CASE is full.\n"
2018-12-07 16:41:08 +01:00
.string "The BERRY BLENDER can't be used.$"
2018-06-03 09:37:01 +02:00
Text_PblockLink_NoPokeblock: @ 8293A2D
2018-12-07 16:41:08 +01:00
.string "You don't have a {POKEBLOCK} CASE.\n"
.string "The BERRY BLENDER can't be used.$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_Talk_0: @ 8293A6B
.string "I love making {POKEBLOCK}S.\p"
.string "I always have some BERRIES with me.$"
2018-06-03 09:37:01 +02:00
Text_Pblock1_Talk_1: @ 8293AA5
2018-12-07 16:41:08 +01:00
.string "If you'd like, we could make some\n"
.string "{POKEBLOCK}S together using the\l"
.string "BERRY BLENDER.$"
LilycoveCity_ContestLobby_Text_293AF0: @ 8293AF0
.string "Oh?\n"
2018-12-07 16:41:08 +01:00
.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.$"
LilycoveCity_ContestLobby_Text_293B76: @ 8293B76
2018-12-07 16:41:08 +01:00
.string "We'll use it to make {POKEBLOCK}S together\n"
.string "using the BERRY BLENDER.$"
LilycoveCity_ContestLobby_Text_293BB4: @ 8293BB4
.string "Oh?\n"
2018-12-07 16:41:08 +01:00
.string "You don't have any BERRIES?\p"
.string "If I had some left over, I'd gladly\n"
.string "give you one…\p"
2018-12-07 16:41:08 +01:00
.string "But, I don't have any to spare today.\n"
.string "Sorry about that.$"
2018-07-22 12:49:49 +02:00
EventScript_Pblock1_Ask:: @ 8293C3E
lockall
2018-12-22 02:28:24 +01:00
goto_if_unset FLAG_HIDE_LILYCOVE_CONTEST_HALL_BLEND_MASTER_ONLOOKERS, LilycoveCity_ContestLobby_EventScript_293EFB
setvar VAR_0x8009, 1
applymovement 16, LilycoveCity_ContestLobby_Movement_294053
waitmovement 0
msgbox Text_Pblock1_Ask, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_Pblock1_Yes
2018-06-03 09:37:01 +02:00
goto EventScript_Pblock1_No
end
2018-06-03 09:37:01 +02:00
EventScript_Pblock1_No: @ 8293C70
msgbox Text_Pblock1_No, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_Pblock1_NoBerries: @ 8293C7A
msgbox Text_Pblock1_NoBerries, MSGBOX_DEFAULT
dotimebasedevents
2019-01-03 02:54:55 +01:00
goto_if_set FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY, LilycoveCity_ContestLobby_EventScript_293C92
goto LilycoveCity_ContestLobby_EventScript_293C9C
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293C92: @ 8293C92
msgbox LilycoveCity_ContestLobby_Text_29307D, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293C9C: @ 8293C9C
msgbox LilycoveCity_ContestLobby_Text_292FD1, MSGBOX_DEFAULT
giveitem_std ITEM_PECHA_BERRY
2019-01-03 02:54:55 +01:00
setflag FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY
2018-06-03 09:37:01 +02:00
goto EventScript_Pblock1_KnowHow
end
2018-06-03 09:37:01 +02:00
EventScript_Pblock1_KnowHow: @ 8293CB9
msgbox Text_Pblock1_KnowHow, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_Pblock1_Start
2018-06-03 09:37:01 +02:00
goto EventScript_Pblock1_Explain
end
2018-06-03 09:37:01 +02:00
EventScript_Pblock1_Start: @ 8293CD2
msgbox Text_Pblock1_Start, MSGBOX_DEFAULT
2018-06-03 09:37:01 +02:00
goto EventScript_StartBlending
end
2018-06-03 09:37:01 +02:00
EventScript_Pblock1_Explain: @ 8293CE0
msgbox Text_Pblock1_Explain, MSGBOX_DEFAULT
2018-06-03 09:37:01 +02:00
goto EventScript_Pblock1_Start
end
2018-06-03 09:37:01 +02:00
EventScript_Pblock1_Yes: @ 8293CEE
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_Pblock1_NoPokeblock
2017-11-19 22:48:46 +01:00
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_Pblock1_FullPokeblock
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_Pblock1_NoBerries
msgbox Text_Pblock1_Yes, MSGBOX_DEFAULT
2018-06-03 09:37:01 +02:00
goto EventScript_Pblock1_KnowHow
end
2018-06-03 09:37:01 +02:00
EventScript_StartBlending: @ 8293D2C
copyvar VAR_0x8004, VAR_0x8009
fadescreen 1
2017-11-18 16:11:34 +01:00
special DoBerryBlending
waitstate
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_Pblock1_FullPokeblock: @ 8293D39
msgbox Text_Pblock1_FullPokeblock, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_Pblock1_NoPokeblock: @ 8293D43
msgbox Text_Pblock1_NoPokeblock, MSGBOX_DEFAULT
releaseall
end
2018-07-22 12:49:49 +02:00
LilycoveCity_ContestLobby_EventScript_293D4D:: @ 8293D4D
lockall
setvar VAR_0x8009, 2
applymovement 10, Common_Movement_FaceOriginalDirection
applymovement 3, LilycoveCity_ContestLobby_Movement_294053
waitmovement 0
msgbox LilycoveCity_ContestLobby_Text_293201, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293DC6
goto LilycoveCity_ContestLobby_EventScript_293D7D
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293D7D: @ 8293D7D
msgbox LilycoveCity_ContestLobby_Text_29323D, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293D87: @ 8293D87
msgbox LilycoveCity_ContestLobby_Text_293394, MSGBOX_DEFAULT
release
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293D91: @ 8293D91
msgbox LilycoveCity_ContestLobby_Text_29328C, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293DAA
goto LilycoveCity_ContestLobby_EventScript_293DB8
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293DAA: @ 8293DAA
msgbox LilycoveCity_ContestLobby_Text_2932C3, MSGBOX_DEFAULT
2018-06-03 09:37:01 +02:00
goto EventScript_StartBlending
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293DB8: @ 8293DB8
msgbox LilycoveCity_ContestLobby_Text_2932F1, MSGBOX_DEFAULT
goto LilycoveCity_ContestLobby_EventScript_293DAA
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293DC6: @ 8293DC6
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293D87
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293E14
msgbox LilycoveCity_ContestLobby_Text_293237, MSGBOX_DEFAULT
2017-11-19 22:48:46 +01:00
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_ne LilycoveCity_ContestLobby_EventScript_293D91
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293E0A
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293E0A: @ 8293E0A
msgbox LilycoveCity_ContestLobby_Text_29343E, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293E14: @ 8293E14
msgbox LilycoveCity_ContestLobby_Text_2934A2, MSGBOX_DEFAULT
releaseall
end
2018-07-22 12:49:49 +02:00
LilycoveCity_ContestLobby_EventScript_293E1E:: @ 8293E1E
lockall
setvar VAR_0x8008, 15
setvar VAR_0x8009, 3
applymovement 9, Common_Movement_FaceOriginalDirection
applymovement 17, Common_Movement_FaceOriginalDirection
applymovement VAR_0x8008, LilycoveCity_ContestLobby_Movement_294053
waitmovement 0
msgbox LilycoveCity_ContestLobby_Text_293842, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293EA3
goto LilycoveCity_ContestLobby_EventScript_293E5A
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293E5A: @ 8293E5A
msgbox LilycoveCity_ContestLobby_Text_293558, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293E64: @ 8293E64
msgbox LilycoveCity_ContestLobby_Text_29367D, MSGBOX_DEFAULT
release
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293E6E: @ 8293E6E
msgbox LilycoveCity_ContestLobby_Text_29357E, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293E87
goto LilycoveCity_ContestLobby_EventScript_293E95
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293E87: @ 8293E87
msgbox LilycoveCity_ContestLobby_Text_2935B1, MSGBOX_DEFAULT
2018-06-03 09:37:01 +02:00
goto EventScript_StartBlending
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293E95: @ 8293E95
msgbox LilycoveCity_ContestLobby_Text_2935E5, MSGBOX_DEFAULT
goto LilycoveCity_ContestLobby_EventScript_293E87
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293EA3: @ 8293EA3
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293E64
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293EF1
msgbox LilycoveCity_ContestLobby_Text_29354E, MSGBOX_DEFAULT
2017-11-19 22:48:46 +01:00
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_ne LilycoveCity_ContestLobby_EventScript_293E6E
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293EE7
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293EE7: @ 8293EE7
msgbox LilycoveCity_ContestLobby_Text_293738, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293EF1: @ 8293EF1
msgbox LilycoveCity_ContestLobby_Text_293792, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293EFB: @ 8293EFB
lockall
setvar VAR_0x8009, 1
msgbox LilycoveCity_ContestLobby_Text_2C42F4, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293F28
msgbox LilycoveCity_ContestLobby_Text_2C4332, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293F1E: @ 8293F1E
msgbox LilycoveCity_ContestLobby_Text_2C439D, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293F28: @ 8293F28
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293F8E
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293F1E
2017-11-19 22:48:46 +01:00
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_ne LilycoveCity_ContestLobby_EventScript_293F64
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293F98
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293F64: @ 8293F64
msgbox LilycoveCity_ContestLobby_Text_2C43FA, MSGBOX_YESNO
compare VAR_RESULT, 0
2018-12-22 03:32:45 +01:00
call_if_eq LilycoveCity_ContestLobby_EventScript_293F85
msgbox LilycoveCity_ContestLobby_Text_2C451B, MSGBOX_DEFAULT
2018-06-03 09:37:01 +02:00
goto EventScript_StartBlending
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293F85: @ 8293F85
msgbox LilycoveCity_ContestLobby_Text_2C444C, MSGBOX_DEFAULT
return
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293F8E: @ 8293F8E
msgbox LilycoveCity_ContestLobby_Text_2C4573, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293F98: @ 8293F98
msgbox LilycoveCity_ContestLobby_Text_2C45E8, MSGBOX_DEFAULT
releaseall
end
2018-07-22 12:49:49 +02:00
LilycoveCity_ContestLobby_EventScript_293FA2:: @ 8293FA2
msgbox LilycoveCity_ContestLobby_Text_2937F9, MSGBOX_NPC
end
2018-07-22 12:49:49 +02:00
LilycoveCity_ContestLobby_EventScript_293FAB:: @ 8293FAB
msgbox LilycoveCity_ContestLobby_Text_293842, MSGBOX_NPC
end
2018-07-22 12:49:49 +02:00
LilycoveCity_ContestLobby_EventScript_293FB4:: @ 8293FB4
msgbox LilycoveCity_ContestLobby_Text_29388F, MSGBOX_NPC
end
2018-07-22 12:49:49 +02:00
LilycoveCity_ContestLobby_EventScript_293FBD:: @ 8293FBD
setvar VAR_0x8008, 15
goto LilycoveCity_ContestLobby_EventScript_293FC8
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293FC8: @ 8293FC8
lock
faceplayer
msgbox Text_Pblock1_Talk_0, MSGBOX_DEFAULT
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293FEE
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_293FF8
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293FEE: @ 8293FEE
msgbox Text_Pblock1_Talk_1, MSGBOX_DEFAULT
release
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_293FF8: @ 8293FF8
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_294028
2017-11-19 22:48:46 +01:00
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_294028
dotimebasedevents
2019-01-03 02:54:55 +01:00
goto_if_set FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY, LilycoveCity_ContestLobby_EventScript_294028
goto LilycoveCity_ContestLobby_EventScript_294032
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_294028: @ 8294028
msgbox LilycoveCity_ContestLobby_Text_293BB4, MSGBOX_DEFAULT
release
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_294032: @ 8294032
msgbox LilycoveCity_ContestLobby_Text_293AF0, MSGBOX_DEFAULT
giveitem_std ITEM_PECHA_BERRY
2019-01-03 02:54:55 +01:00
setflag FLAG_DAILY_CONTEST_LOBBY_RECEIVED_BERRY
msgbox LilycoveCity_ContestLobby_Text_293B76, MSGBOX_DEFAULT
release
end
LilycoveCity_ContestLobby_Movement_294053: @ 8294053
walk_in_place_fastest_right
step_end
2018-07-22 12:49:49 +02:00
EventScript_PblockLink:: @ 8294055
lockall
specialvar VAR_RESULT, PlayerHasBerries
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_NoBerries
checkitem ITEM_POKEBLOCK_CASE, 1
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_NoPokeblock
2017-11-19 22:48:46 +01:00
specialvar VAR_RESULT, GetFirstFreePokeblockSlot
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_ne EventScript_PblocLink_Ask
compare VAR_RESULT, 65535
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_FullPokeblock
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_Ask: @ 8294092
msgbox Text_PblockLink_Ask, MSGBOX_YESNO
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_TryConnect
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_End
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_NoBerries: @ 82940B1
msgbox Text_PblockLink_NoBerries, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_TryConnect: @ 82940BB
call Common_EventScript_SaveGame
compare VAR_RESULT, 0
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_End
2018-07-15 13:23:38 +02:00
specialvar VAR_RESULT, IsWirelessAdapterConnected
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq LilycoveCity_ContestLobby_EventScript_2941ED
2018-06-03 09:37:01 +02:00
message Text_PblockLink_Searching
waitmessage
special sub_80B2FD8
waitstate
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_SpawnPartners
compare VAR_RESULT, 2
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_SomeoneNotReady
compare VAR_RESULT, 3
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_DifferentSelections
compare VAR_RESULT, 5
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_CloseLink
compare VAR_RESULT, 6
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_LinkError
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_1Arrived: @ 829411D
msgbox Text_PblockLink_1Arrived, MSGBOX_DEFAULT
2018-06-03 09:37:01 +02:00
goto EventScript_PblocLink_StartLinkBlending
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_2Arrived: @ 829412B
msgbox Text_PblockLink_2Arrived, MSGBOX_DEFAULT
2018-06-03 09:37:01 +02:00
goto EventScript_PblocLink_StartLinkBlending
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_3Arrived: @ 8294139
msgbox Text_PblockLink_3Arrived, MSGBOX_DEFAULT
2018-06-03 09:37:01 +02:00
goto EventScript_PblocLink_StartLinkBlending
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_StartLinkBlending: @ 8294147
setvar VAR_0x8004, 0
fadescreen 1
removeobject 240
removeobject 239
removeobject 238
removeobject 237
2017-11-18 16:11:34 +01:00
special DoBerryBlending
waitstate
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_End: @ 8294160
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_FullPokeblock: @ 8294162
msgbox Text_PblockLink_FullPokeblock, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_NoPokeblock: @ 829416C
msgbox Text_PblockLink_NoPokeblock, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_SomeoneNotReady: @ 8294176
2018-01-30 23:23:35 +01:00
special CloseLink
msgbox LilycoveCity_ContestLobby_Text_2781C7, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_DifferentSelections: @ 8294183
2018-01-30 23:23:35 +01:00
special CloseLink
msgbox LilycoveCity_ContestLobby_Text_278255, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_CloseLink: @ 8294190
2018-01-30 23:23:35 +01:00
special CloseLink
msgbox gUnknown_08272D9C, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_LinkError: @ 829419D
2018-01-30 23:23:35 +01:00
special CloseLink
msgbox LilycoveCity_ContestLobby_Text_27821C, MSGBOX_DEFAULT
releaseall
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_SpawnPartners: @ 82941AA
fadescreen 1
specialvar VAR_RESULT, GetLinkPartnerNames
copyvar VAR_0x8008, VAR_RESULT
copyvar VAR_0x8004, VAR_0x8008
special SpawnLinkPartnerEventObject
2018-06-03 09:37:01 +02:00
goto EventScript_PblocLink_Arrived
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_Arrived: @ 82941C4
fadescreen 0
switch VAR_0x8008
2018-06-03 09:37:01 +02:00
case 2, EventScript_PblocLink_1Arrived
case 3, EventScript_PblocLink_2Arrived
case 4, EventScript_PblocLink_3Arrived
end
2018-06-03 09:37:01 +02:00
LilycoveCity_ContestLobby_EventScript_2941ED: @ 82941ED
setvar VAR_0x8004, 13
2018-06-03 09:37:01 +02:00
goto EventScript_PblocLink_DecideLeader
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_DecideLeader: @ 82941F8
message Text_DecideLinkLeader
waitmessage
multichoice 16, 6, 81, 0
switch VAR_RESULT
2018-06-03 09:37:01 +02:00
case 0, EventScript_PblocLink_TryJoinGroup
case 1, EventScript_PblocLink_TryBecomeLeader
case 2, EventScript_PblocLink_CloseLink
case 127, EventScript_PblocLink_CloseLink
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_TryBecomeLeader: @ 8294235
call EventScript_PblocLink_BecomeLeader
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_SpawnPartners_
compare VAR_RESULT, 5
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_DecideLeader
compare VAR_RESULT, 8
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_TryBecomeLeader
release
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_TryJoinGroup: @ 829425D
call EventScript_PblocLink_JoinGroup
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_SpawnPartners_
compare VAR_RESULT, 5
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_DecideLeader
compare VAR_RESULT, 8
2018-12-22 02:28:24 +01:00
goto_if_eq EventScript_PblocLink_TryJoinGroup
release
end
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_BecomeLeader: @ 8294285
special BerryBlenderLinkBecomeLeader
waitstate
return
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_JoinGroup: @ 829428A
special BerryBlenderLinkJoinGroup
waitstate
return
2018-06-03 09:37:01 +02:00
EventScript_PblocLink_SpawnPartners_: @ 829428F
goto EventScript_PblocLink_SpawnPartners
end