-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
scripts.inc
778 lines (670 loc) · 25.6 KB
/
scripts.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
MauvilleCity_GameCorner_MapScripts::
.byte 0
@ Game Corner prices
.set TM_DOUBLE_TEAM_COINS, 1500
.set TM_PSYCHIC_COINS, 3500
.set TM_FLAMETHROWER_COINS, 4000
.set TM_THUNDERBOLT_COINS, 4000
.set TM_ICE_BEAM_COINS, 4000
.set DOLL_COINS, 1000
.set COINS_PRICE_50, 1000
.set COINS_PRICE_500, 10000
MauvilleCity_GameCorner_EventScript_CoinsClerk::
lock
faceplayer
msgbox MauvilleCity_GameCorner_Text_ThisIsMauvilleGameCorner, MSGBOX_DEFAULT
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NeedCoinCase
message MauvilleCity_GameCorner_Text_WereYouLookingForCoins
waitmessage
showmoneybox 0, 0
showcoinsbox 1, 6
goto MauvilleCity_GameCorner_EventScript_ChooseCoinsDefault50
MauvilleCity_GameCorner_EventScript_ChooseCoinsDefault50::
multichoicedefault 15, 0, MULTI_GAME_CORNER_COINS, 0, FALSE
switch VAR_RESULT
case 0, MauvilleCity_GameCorner_EventScript_Buy50Coins
case 1, MauvilleCity_GameCorner_EventScript_Buy500Coins
goto MauvilleCity_GameCorner_EventScript_CancelBuyCoins
end
@ Unused
MauvilleCity_GameCorner_EventScript_ChooseCoinsDefault500::
multichoicedefault 15, 0, MULTI_GAME_CORNER_COINS, 1, FALSE
switch VAR_RESULT
case 0, MauvilleCity_GameCorner_EventScript_Buy50Coins
case 1, MauvilleCity_GameCorner_EventScript_Buy500Coins
goto MauvilleCity_GameCorner_EventScript_CancelBuyCoins
end
MauvilleCity_GameCorner_EventScript_Buy50Coins::
checkcoins VAR_TEMP_1
goto_if_ge VAR_TEMP_1, (MAX_COINS + 1 - 50), MauvilleCity_GameCorner_EventScript_NoRoomForCoins
checkmoney COINS_PRICE_50
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NotEnoughMoney
addcoins 50
removemoney COINS_PRICE_50
updatemoneybox
updatecoinsbox 1, 6
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_ThankYouHereAreYourCoins, MSGBOX_DEFAULT
hidemoneybox
hidecoinsbox 0, 5
release
end
MauvilleCity_GameCorner_EventScript_Buy500Coins::
checkcoins VAR_TEMP_1
goto_if_ge VAR_TEMP_1, (MAX_COINS + 1 - 500), MauvilleCity_GameCorner_EventScript_NoRoomForCoins
checkmoney COINS_PRICE_500
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NotEnoughMoney
addcoins 500
removemoney COINS_PRICE_500
updatemoneybox
updatecoinsbox 1, 6
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_ThankYouHereAreYourCoins, MSGBOX_DEFAULT
hidemoneybox
hidecoinsbox 0, 5
release
end
MauvilleCity_GameCorner_EventScript_NeedCoinCase::
msgbox MauvilleCity_GameCorner_Text_NeedCoinCaseForCoins, MSGBOX_DEFAULT
release
end
MauvilleCity_GameCorner_EventScript_NotEnoughMoney::
msgbox MauvilleCity_GameCorner_Text_DontHaveEnoughMoney, MSGBOX_DEFAULT
hidemoneybox
hidecoinsbox 0, 5
release
end
MauvilleCity_GameCorner_EventScript_CancelBuyCoins::
msgbox MauvilleCity_GameCorner_Text_DontNeedCoinsThen, MSGBOX_DEFAULT
hidemoneybox
hidecoinsbox 0, 5
release
end
MauvilleCity_GameCorner_EventScript_NoRoomForCoins::
msgbox MauvilleCity_GameCorner_Text_CoinCaseIsFull, MSGBOX_DEFAULT
hidemoneybox
hidecoinsbox 0, 5
release
end
MauvilleCity_GameCorner_EventScript_PrizeCornerDolls::
lock
faceplayer
msgbox MauvilleCity_GameCorner_Text_ExchangeCoinsForPrizes, MSGBOX_DEFAULT
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, TRUE, MauvilleCity_GameCorner_EventScript_ChooseDollPrizeMessage
release
end
MauvilleCity_GameCorner_EventScript_ChooseDollPrizeMessage::
message MauvilleCity_GameCorner_Text_WhichPrize
waitmessage
setvar VAR_TEMP_1, 0
showcoinsbox 1, 1
goto MauvilleCity_GameCorner_EventScript_ChooseDollPrize
MauvilleCity_GameCorner_EventScript_ReturnToChooseDollPrize::
message MauvilleCity_GameCorner_Text_WhichPrize
waitmessage
goto MauvilleCity_GameCorner_EventScript_ChooseDollPrize
MauvilleCity_GameCorner_EventScript_ChooseDollPrize::
multichoice 12, 0, MULTI_GAME_CORNER_DOLLS, FALSE
switch VAR_RESULT
case 0, MauvilleCity_GameCorner_EventScript_TreeckoDoll
case 1, MauvilleCity_GameCorner_EventScript_TorchicDoll
case 2, MauvilleCity_GameCorner_EventScript_MudkipDoll
case 3, MauvilleCity_GameCorner_EventScript_CancelDollSelect
goto MauvilleCity_GameCorner_EventScript_CancelDollSelect
end
MauvilleCity_GameCorner_EventScript_TreeckoDoll::
setvar VAR_TEMP_1, 1
bufferdecorationname STR_VAR_1, DECOR_TREECKO_DOLL
goto MauvilleCity_GameCorner_EventScript_ConfirmDollPrize
MauvilleCity_GameCorner_EventScript_TorchicDoll::
setvar VAR_TEMP_1, 2
bufferdecorationname STR_VAR_1, DECOR_TORCHIC_DOLL
goto MauvilleCity_GameCorner_EventScript_ConfirmDollPrize
MauvilleCity_GameCorner_EventScript_MudkipDoll::
setvar VAR_TEMP_1, 3
bufferdecorationname STR_VAR_1, DECOR_MUDKIP_DOLL
goto MauvilleCity_GameCorner_EventScript_ConfirmDollPrize
MauvilleCity_GameCorner_EventScript_ConfirmDollPrize::
msgbox MauvilleCity_GameCorner_Text_SoYourChoiceIsX, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, MauvilleCity_GameCorner_EventScript_CancelDollSelect
switch VAR_TEMP_1
case 1, MauvilleCity_GameCorner_EventScript_BuyTreeckoDoll
case 2, MauvilleCity_GameCorner_EventScript_BuyTorchicDoll
case 3, MauvilleCity_GameCorner_EventScript_BuyMudkipDoll
end
MauvilleCity_GameCorner_EventScript_BuyTreeckoDoll::
checkcoins VAR_TEMP_2
goto_if_lt VAR_TEMP_2, DOLL_COINS, MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForDoll
bufferdecorationname STR_VAR_2, DECOR_TREECKO_DOLL
checkdecorspace DECOR_TREECKO_DOLL
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForDoll
removecoins DOLL_COINS
adddecoration DECOR_TREECKO_DOLL
updatecoinsbox 1, 1
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_SendToYourHomePC, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseDollPrize
end
MauvilleCity_GameCorner_EventScript_BuyTorchicDoll::
checkcoins VAR_TEMP_2
goto_if_lt VAR_TEMP_2, DOLL_COINS, MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForDoll
bufferdecorationname STR_VAR_2, DECOR_TORCHIC_DOLL
checkdecorspace DECOR_TORCHIC_DOLL
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForDoll
removecoins DOLL_COINS
adddecoration DECOR_TORCHIC_DOLL
updatecoinsbox 1, 1
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_SendToYourHomePC, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseDollPrize
end
MauvilleCity_GameCorner_EventScript_BuyMudkipDoll::
checkcoins VAR_TEMP_2
goto_if_lt VAR_TEMP_2, DOLL_COINS, MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForDoll
bufferdecorationname STR_VAR_2, DECOR_MUDKIP_DOLL
checkdecorspace DECOR_MUDKIP_DOLL
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForDoll
removecoins DOLL_COINS
adddecoration DECOR_MUDKIP_DOLL
updatecoinsbox 1, 1
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_SendToYourHomePC, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseDollPrize
end
MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForDoll::
msgbox MauvilleCity_GameCorner_Text_NotEnoughCoins, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseDollPrize
end
MauvilleCity_GameCorner_EventScript_NoRoomForDoll::
call Common_EventScript_NoRoomForDecor
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseDollPrize
end
MauvilleCity_GameCorner_EventScript_CancelDollSelect::
msgbox MauvilleCity_GameCorner_Text_OhIsThatSo, MSGBOX_DEFAULT
hidecoinsbox 0, 0
release
end
MauvilleCity_GameCorner_EventScript_PrizeCornerTMs::
lock
faceplayer
msgbox MauvilleCity_GameCorner_Text_ExchangeCoinsForPrizes, MSGBOX_DEFAULT
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, TRUE, MauvilleCity_GameCorner_EventScript_ChooseTMPrizeMessage
release
end
MauvilleCity_GameCorner_EventScript_ChooseTMPrizeMessage::
message MauvilleCity_GameCorner_Text_WhichPrize
waitmessage
setvar VAR_TEMP_1, 0
showcoinsbox 1, 1
goto MauvilleCity_GameCorner_EventScript_ChooseTMPrize
MauvilleCity_GameCorner_EventScript_ReturnToChooseTMPrize::
message MauvilleCity_GameCorner_Text_WhichPrize
waitmessage
goto MauvilleCity_GameCorner_EventScript_ChooseTMPrize
MauvilleCity_GameCorner_EventScript_ChooseTMPrize::
multichoice 12, 0, MULTI_GAME_CORNER_TMS, FALSE
switch VAR_RESULT
case 0, MauvilleCity_GameCorner_EventScript_TMDoubleTeam
case 1, MauvilleCity_GameCorner_EventScript_TMPsychic
case 2, MauvilleCity_GameCorner_EventScript_TMFlamethrower
case 3, MauvilleCity_GameCorner_EventScript_TMThunderbolt
case 4, MauvilleCity_GameCorner_EventScript_TMIceBeam
case 5, MauvilleCity_GameCorner_EventScript_CancelTMSelect
goto MauvilleCity_GameCorner_EventScript_CancelTMSelect
end
MauvilleCity_GameCorner_EventScript_TMDoubleTeam::
setvar VAR_TEMP_1, 1
bufferitemname STR_VAR_1, ITEM_TM_DOUBLE_TEAM
setvar VAR_0x8004, ITEM_TM_DOUBLE_TEAM
goto MauvilleCity_GameCorner_EventScript_ConfirmTMPrize
MauvilleCity_GameCorner_EventScript_TMPsychic::
setvar VAR_TEMP_1, 2
bufferitemname STR_VAR_1, ITEM_TM_PSYCHIC
setvar VAR_0x8004, ITEM_TM_PSYCHIC
goto MauvilleCity_GameCorner_EventScript_ConfirmTMPrize
MauvilleCity_GameCorner_EventScript_TMFlamethrower::
setvar VAR_TEMP_1, 3
bufferitemname STR_VAR_1, ITEM_TM_FLAMETHROWER
setvar VAR_0x8004, ITEM_TM_FLAMETHROWER
goto MauvilleCity_GameCorner_EventScript_ConfirmTMPrize
MauvilleCity_GameCorner_EventScript_TMThunderbolt::
setvar VAR_TEMP_1, 4
bufferitemname STR_VAR_1, ITEM_TM_THUNDERBOLT
setvar VAR_0x8004, ITEM_TM_THUNDERBOLT
goto MauvilleCity_GameCorner_EventScript_ConfirmTMPrize
MauvilleCity_GameCorner_EventScript_TMIceBeam::
setvar VAR_TEMP_1, 5
bufferitemname STR_VAR_1, ITEM_TM_ICE_BEAM
setvar VAR_0x8004, ITEM_TM_ICE_BEAM
goto MauvilleCity_GameCorner_EventScript_ConfirmTMPrize
MauvilleCity_GameCorner_EventScript_ConfirmTMPrize::
special BufferTMHMMoveName
msgbox MauvilleCity_GameCorner_Text_SoYourChoiceIsTheTMX, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, MauvilleCity_GameCorner_EventScript_CancelTMSelect
switch VAR_TEMP_1
case 1, MauvilleCity_GameCorner_EventScript_BuyTMDoubleTeam
case 2, MauvilleCity_GameCorner_EventScript_BuyTMPsychic
case 3, MauvilleCity_GameCorner_EventScript_BuyTMFlamethrower
case 4, MauvilleCity_GameCorner_EventScript_BuyTMThunderbolt
case 5, MauvilleCity_GameCorner_EventScript_BuyTMIceBeam
end
MauvilleCity_GameCorner_EventScript_BuyTMDoubleTeam::
checkcoins VAR_TEMP_2
goto_if_lt VAR_TEMP_2, TM_DOUBLE_TEAM_COINS, MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForTM
checkitemspace ITEM_TM_DOUBLE_TEAM
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForTM
removecoins TM_DOUBLE_TEAM_COINS
additem ITEM_TM_DOUBLE_TEAM
updatecoinsbox 1, 1
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_HereYouGo, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseTMPrize
end
MauvilleCity_GameCorner_EventScript_BuyTMPsychic::
checkcoins VAR_TEMP_2
goto_if_lt VAR_TEMP_2, TM_PSYCHIC_COINS, MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForTM
checkitemspace ITEM_TM_PSYCHIC
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForTM
removecoins TM_PSYCHIC_COINS
additem ITEM_TM_PSYCHIC
updatecoinsbox 1, 1
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_HereYouGo, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseTMPrize
end
MauvilleCity_GameCorner_EventScript_BuyTMFlamethrower::
checkcoins VAR_TEMP_2
goto_if_lt VAR_TEMP_2, TM_FLAMETHROWER_COINS, MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForTM
checkitemspace ITEM_TM_FLAMETHROWER
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForTM
removecoins TM_FLAMETHROWER_COINS
additem ITEM_TM_FLAMETHROWER
updatecoinsbox 1, 1
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_HereYouGo, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseTMPrize
end
MauvilleCity_GameCorner_EventScript_BuyTMThunderbolt::
checkcoins VAR_TEMP_2
goto_if_lt VAR_TEMP_2, TM_THUNDERBOLT_COINS, MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForTM
checkitemspace ITEM_TM_THUNDERBOLT
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForTM
removecoins TM_THUNDERBOLT_COINS
additem ITEM_TM_THUNDERBOLT
updatecoinsbox 1, 1
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_HereYouGo, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseTMPrize
end
MauvilleCity_GameCorner_EventScript_BuyTMIceBeam::
checkcoins VAR_TEMP_2
goto_if_lt VAR_TEMP_2, TM_ICE_BEAM_COINS, MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForTM
checkitemspace ITEM_TM_ICE_BEAM
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForTM
removecoins TM_ICE_BEAM_COINS
additem ITEM_TM_ICE_BEAM
updatecoinsbox 1, 1
playse SE_SHOP
msgbox MauvilleCity_GameCorner_Text_HereYouGo, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseTMPrize
end
MauvilleCity_GameCorner_EventScript_NotEnoughCoinsForTM::
msgbox MauvilleCity_GameCorner_Text_NotEnoughCoins, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseTMPrize
end
MauvilleCity_GameCorner_EventScript_NoRoomForTM::
call Common_EventScript_BagIsFull
goto MauvilleCity_GameCorner_EventScript_ReturnToChooseTMPrize
end
MauvilleCity_GameCorner_EventScript_CancelTMSelect::
msgbox MauvilleCity_GameCorner_Text_OhIsThatSo, MSGBOX_DEFAULT
hidecoinsbox 0, 0
release
end
MauvilleCity_GameCorner_EventScript_Woman2::
msgbox MauvilleCity_GameCorner_Text_CoinsAreNeededToPlay, MSGBOX_NPC
end
MauvilleCity_GameCorner_EventScript_Gentleman::
msgbox MauvilleCity_GameCorner_Text_RouletteOnlyLuck, MSGBOX_NPC
end
MauvilleCity_GameCorner_EventScript_Girl::
lock
faceplayer
goto_if_set FLAG_RECEIVED_STARTER_DOLL, MauvilleCity_GameCorner_EventScript_ReceivedStarterDoll
msgbox MauvilleCity_GameCorner_Text_GotTwoOfSameDollWantOne, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, MauvilleCity_GameCorner_EventScript_DeclineStarterDoll
switch VAR_STARTER_MON
case 0, MauvilleCity_GameCorner_EventScript_GiveTreeckoDoll
case 1, MauvilleCity_GameCorner_EventScript_GiveTorchicDoll
case 2, MauvilleCity_GameCorner_EventScript_GiveMudkipDoll
end
MauvilleCity_GameCorner_EventScript_GiveTreeckoDoll::
bufferdecorationname STR_VAR_2, DECOR_TREECKO_DOLL
checkdecorspace DECOR_TREECKO_DOLL
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForStarterDoll
msgbox MauvilleCity_GameCorner_Text_HereYouGo2, MSGBOX_DEFAULT
givedecoration DECOR_TREECKO_DOLL
setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_ReceivedStarterDoll
end
MauvilleCity_GameCorner_EventScript_GiveTorchicDoll::
bufferdecorationname STR_VAR_2, DECOR_TORCHIC_DOLL
checkdecorspace DECOR_TORCHIC_DOLL
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForStarterDoll
msgbox MauvilleCity_GameCorner_Text_HereYouGo2, MSGBOX_DEFAULT
givedecoration DECOR_TORCHIC_DOLL
setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_ReceivedStarterDoll
end
MauvilleCity_GameCorner_EventScript_GiveMudkipDoll::
bufferdecorationname STR_VAR_2, DECOR_MUDKIP_DOLL
checkdecorspace DECOR_MUDKIP_DOLL
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoRoomForStarterDoll
msgbox MauvilleCity_GameCorner_Text_HereYouGo2, MSGBOX_DEFAULT
givedecoration DECOR_MUDKIP_DOLL
setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_ReceivedStarterDoll
end
MauvilleCity_GameCorner_EventScript_NoRoomForStarterDoll::
call Common_EventScript_NoRoomForDecor
msgbox MauvilleCity_GameCorner_Text_YouWantItButNotNow, MSGBOX_DEFAULT
release
end
MauvilleCity_GameCorner_EventScript_DeclineStarterDoll::
msgbox MauvilleCity_GameCorner_Text_DontBeNegative, MSGBOX_DEFAULT
release
end
MauvilleCity_GameCorner_EventScript_ReceivedStarterDoll::
msgbox MauvilleCity_GameCorner_Text_CantWinJackpot, MSGBOX_DEFAULT
release
end
MauvilleCity_GameCorner_EventScript_PokefanM::
lock
faceplayer
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, TRUE, MauvilleCity_GameCorner_EventScript_TryGive20Coins
msgbox MauvilleCity_GameCorner_Text_NeedCoinCaseGoNextDoor, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_NPCReturnToSlots
end
MauvilleCity_GameCorner_EventScript_TryGive20Coins::
goto_if_set FLAG_RECEIVED_20_COINS, MauvilleCity_GameCorner_EventScript_PokefanMNormal
checkcoins VAR_TEMP_1
goto_if_ge VAR_TEMP_1, 1, MauvilleCity_GameCorner_EventScript_PokefanMNormal @ Only give 20 coins if player has no coins
setflag FLAG_RECEIVED_20_COINS
addcoins 20
msgbox MauvilleCity_GameCorner_Text_LuckOnlyLastSoLongTakeCoins, MSGBOX_DEFAULT
playse SE_SHOP
goto MauvilleCity_GameCorner_EventScript_PokefanMNormal
end
MauvilleCity_GameCorner_EventScript_PokefanMNormal::
msgbox MauvilleCity_GameCorner_Text_MauvilleSomethingForEveryone, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_NPCReturnToSlots
end
MauvilleCity_GameCorner_EventScript_OldMan::
lock
faceplayer
msgbox MauvilleCity_GameCorner_Text_RouletteTablesDifferentRates, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_NPCReturnToSlots
end
MauvilleCity_GameCorner_EventScript_Cook::
lock
faceplayer
msgbox MauvilleCity_GameCorner_Text_EasyToLoseTrackOfTime, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_NPCReturnToSlots
end
MauvilleCity_GameCorner_EventScript_Man::
lock
faceplayer
msgbox MauvilleCity_GameCorner_Text_UpTo3CoinsCanBeUsed, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_NPCReturnToSlots
end
MauvilleCity_GameCorner_EventScript_NPCReturnToSlots::
closemessage
applymovement VAR_LAST_TALKED, Common_Movement_FaceOriginalDirection
waitmovement 0
release
end
MauvilleCity_GameCorner_EventScript_Maniac::
lock
faceplayer
msgbox MauvilleCity_GameCorner_Text_DifficultToStopOn7, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_NPCReturnToSlots
end
MauvilleCity_GameCorner_EventScript_Woman::
lock
faceplayer
msgbox MauvilleCity_GameCorner_Text_HeresSomeSlotsInfo, MSGBOX_DEFAULT
goto MauvilleCity_GameCorner_EventScript_NPCReturnToSlots
end
MauvilleCity_GameCorner_EventScript_SlotMachine0::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 0
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine1::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 1
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine2::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 2
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine3::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 3
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine4::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 4
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine5::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 5
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine6::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 6
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine7::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 7
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine8::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 8
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine9::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 9
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine10::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 10
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_SlotMachine11::
lockall
checkitem ITEM_COIN_CASE
goto_if_eq VAR_RESULT, FALSE, MauvilleCity_GameCorner_EventScript_NoCoinCase
setvar VAR_0x8004, 11
specialvar VAR_RESULT, GetSlotMachineId
playslotmachine VAR_RESULT
releaseall
end
MauvilleCity_GameCorner_EventScript_NoCoinCase::
msgbox MauvilleCity_GameCorner_Text_CantPlayWithNoCoinCase, MSGBOX_DEFAULT
releaseall
end
MauvilleCity_GameCorner_Text_ThisIsMauvilleGameCorner:
.string "This is MAUVILLE GAME CORNER.$"
MauvilleCity_GameCorner_Text_NeedCoinCaseForCoins:
.string "Okay, you wanted some COINS for\n"
.string "the games?\p"
.string "But you don't have a COIN CASE for\n"
.string "stowing the COINS.$"
MauvilleCity_GameCorner_Text_WereYouLookingForCoins:
.string "Were you looking for COINS?\p"
.string "It's ¥1000 for 50 COINS.\n"
.string "Would you like some?$"
MauvilleCity_GameCorner_Text_ThankYouHereAreYourCoins:
.string "Thank you very much!\n"
.string "Here are your COINS!$"
MauvilleCity_GameCorner_Text_DontHaveEnoughMoney:
.string "Um… You don't appear to have\n"
.string "enough money…$"
MauvilleCity_GameCorner_Text_CoinCaseIsFull:
.string "Oh?\n"
.string "Your COIN CASE is full.$"
MauvilleCity_GameCorner_Text_DontNeedCoinsThen:
.string "Oh… You don't need COINS, then?\n"
.string "Good luck on your adventure!$"
MauvilleCity_GameCorner_Text_ExchangeCoinsForPrizes:
.string "Welcome.\p"
.string "You can exchange your COINS for\n"
.string "prizes here.$"
MauvilleCity_GameCorner_Text_WhichPrize:
.string "Which prize would you like?$"
MauvilleCity_GameCorner_Text_SoYourChoiceIsTheTMX:
.string "So your choice is\n"
.string "the {STR_VAR_1} {STR_VAR_2}?$"
MauvilleCity_GameCorner_Text_SendToYourHomePC:
.string "Thank you!\n"
.string "We'll send it to your PC at home.$"
MauvilleCity_GameCorner_Text_NotEnoughCoins:
.string "You don't have enough COINS.$"
@ Unused
MauvilleCity_GameCorner_Text_NoRoomForPlacingDecor:
.string "There isn't any room available for\n"
.string "placing {STR_VAR_1}.$"
MauvilleCity_GameCorner_Text_OhIsThatSo:
.string "Oh, is that so? \n"
.string "You need to save some COINS before\l"
.string "coming back here.$"
MauvilleCity_GameCorner_Text_SoYourChoiceIsX:
.string "So your choice is {STR_VAR_1}?$"
MauvilleCity_GameCorner_Text_HereYouGo:
.string "Here you go!$"
@ Unused
MauvilleCity_GameCorner_Text_CantCarryAnyMore:
.string "Oh, you can't carry any more than that.$"
MauvilleCity_GameCorner_Text_GotTwoOfSameDollWantOne:
.string "I made a mistake and got two of\n"
.string "the same DOLLS.\p"
.string "Would you like one of them?$"
MauvilleCity_GameCorner_Text_HereYouGo2:
.string "Here you go!$"
MauvilleCity_GameCorner_Text_YouWantItButNotNow:
.string "Huh?\n"
.string "You want it, but not right now?$"
MauvilleCity_GameCorner_Text_DontBeNegative:
.string "Oh, don't be so negative!\n"
.string "You can have this!$"
MauvilleCity_GameCorner_Text_CantWinJackpot:
.string "There's a prize I want, but I can't win\n"
.string "the jackpot.$"
MauvilleCity_GameCorner_Text_NeedCoinCaseGoNextDoor:
.string "Hey, kid, if you want to play here,\n"
.string "you need a COIN CASE.\p"
.string "I think the young lady next door\n"
.string "had one. Go see her!$"
MauvilleCity_GameCorner_Text_LuckOnlyLastSoLongTakeCoins:
.string "My luck can only last so long.\n"
.string "This is too much for me.\l"
.string "Here, take some COINS!$"
MauvilleCity_GameCorner_Text_MauvilleSomethingForEveryone:
.string "MAUVILLE has something for\n"
.string "everyone.\p"
.string "For me, it's the GAME CORNER.$"
MauvilleCity_GameCorner_Text_RouletteTablesDifferentRates:
.string "The ROULETTE tables have different\n"
.string "rates.\p"
.string "Check your COINS if you're going to\n"
.string "pick a table.$"
MauvilleCity_GameCorner_Text_EasyToLoseTrackOfTime:
.string "It's easy to lose track of time in here. \n"
.string "I should get back to work.$"
MauvilleCity_GameCorner_Text_CoinsAreNeededToPlay:
.string "COINS are needed to play here\n"
.string "in the GAME CORNER.$"
MauvilleCity_GameCorner_Text_RouletteOnlyLuck:
.string "This ROULETTE thing…\n"
.string "It's rather demanding.\p"
.string "Win or lose, it's only by luck.$"
MauvilleCity_GameCorner_Text_UpTo3CoinsCanBeUsed:
.string "Up to three COINS can be used to play\n"
.string "the SLOTS.$"
MauvilleCity_GameCorner_Text_DifficultToStopOn7:
.string "It's very difficult to make it stop\n"
.string "right on “7.”\p"
.string "If it stops on “7” during the REEL TIME\n"
.string "bonus game, you'll receive extra COINS.$"
MauvilleCity_GameCorner_Text_HeresSomeSlotsInfo:
.string "Here's some information for you\n"
.string "about the SLOTS.\p"
.string "The more lightning bolts you stock,\n"
.string "the more REEL TIME chances you get.\p"
.string "In a game with the maximum five\n"
.string "REEL TIME chances…\p"
.string "It is possible to receive four regular\n"
.string "bonuses, then a big bonus.\p"
.string "That would total 660 COINS, but it's\n"
.string "very difficult to get.$"
MauvilleCity_GameCorner_Text_CantPlayWithNoCoinCase:
.string "You can't play if you don't have\n"
.string "a COIN CASE.$"