-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontest_ai_scripts.s
858 lines (821 loc) · 23.3 KB
/
contest_ai_scripts.s
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
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
.include "asm/macros.inc"
.include "asm/macros/contest_ai_script.inc"
.include "constants/constants.inc"
.section script_data, "aw", %progbits
enum_start
enum MON_1
enum MON_2
enum MON_3
enum MON_4
.align 2
gContestAIs:: @ 81DC118
.4byte AI_CheckForBadMove
.4byte AI_CheckForCombo
.4byte AI_CheckBoring
.4byte AI_CheckExcitement
.4byte AI_CheckOrder
.4byte AI_CheckForGoodMove
.4byte AI_Erratic
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
.4byte AI_Nothing
@ Unreferenced AI routine to encourage moves that improve condition on the first
@ turn. Additionally, it checks the appeal order of the user and the effect
@ type, but the code is buggy and doesn't affect the score.
if_turn_not_eq 0, ContestUnreferenced_80
if_effect_not_eq CONTEST_EFFECT_IMPROVE_CONDITION_PREVENT_NERVOUSNESS, ContestUnreferenced_80
score +10
ContestUnreferenced_80:
call ContestUnreferenced_0D
end
ContestUnreferenced_0D:
if_user_order_more_than MON_2, ContestUnreferenced_end
if_effect_type_not_eq 2, ContestUnreferenced_end
if_effect_type_not_eq 3, ContestUnreferenced_end
score +10 @ unreachable
ContestUnreferenced_end:
end
@ Unreferenced AI routine that doesn't make much sense.
if_turn_eq 0, ContestUnreferenced_0F_1
if_turn_eq 1, ContestUnreferenced_0F_2
if_turn_eq 2, ContestUnreferenced_0F_3
if_turn_eq 3, ContestUnreferenced_0F_4
if_turn_eq 4, ContestUnreferenced_0F_5
end
ContestUnreferenced_0F_1:
if_user_order_not_eq MON_1, ContestUnreferenced_2B_1
if_user_order_not_eq MON_2, ContestUnreferenced_2B_2
if_user_order_not_eq MON_3, ContestUnreferenced_2B_1
if_user_order_not_eq MON_4, ContestUnreferenced_2B_1
end
ContestUnreferenced_2B_1:
if_effect_type_eq 1, ContestUnreferenced_score
end
ContestUnreferenced_2B_2:
if_effect_type_eq 1, ContestUnreferenced_score
end
if_effect_type_eq 1, ContestUnreferenced_score
end
ContestUnreferenced_0F_2:
if_user_order_not_eq MON_1, ContestUnreferenced_2B_1
if_user_order_not_eq MON_2, ContestUnreferenced_2B_1
if_user_order_not_eq MON_3, ContestUnreferenced_2B_1
if_user_order_not_eq MON_4, ContestUnreferenced_2B_1
end
ContestUnreferenced_0F_3:
if_user_order_not_eq MON_1, ContestUnreferenced_2B_1
if_user_order_not_eq MON_2, ContestUnreferenced_2B_1
if_user_order_not_eq MON_3, ContestUnreferenced_2B_1
if_user_order_not_eq MON_4, ContestUnreferenced_2B_1
end
ContestUnreferenced_0F_4:
if_user_order_not_eq MON_1, ContestUnreferenced_2B_1
if_user_order_not_eq MON_2, ContestUnreferenced_2B_1
if_user_order_not_eq MON_3, ContestUnreferenced_2B_1
if_user_order_not_eq MON_4, ContestUnreferenced_2B_1
end
ContestUnreferenced_0F_5:
if_user_order_not_eq MON_1, ContestUnreferenced_2B_1
if_user_order_not_eq MON_2, ContestUnreferenced_2B_1
if_user_order_not_eq MON_3, ContestUnreferenced_2B_1
if_user_order_not_eq MON_4, ContestUnreferenced_2B_1
end
ContestUnreferenced_score:
score +10
end
end
@ Unreferenced AI routine to encourage the most appealing move.
if_most_appealing_move ContestUnreferenced_score2
end
ContestUnreferenced_score2:
score +10
end
AI_CheckBoring:
if_effect_eq CONTEST_EFFECT_REPETITION_NOT_BORING, AI_end_081DC27F
if_move_used_count_eq 1, AI_score1_081DC27F
if_move_used_count_eq 2, AI_score2_081DC27F
if_move_used_count_eq 3, AI_score3_081DC27F
if_move_used_count_eq 4, AI_score4_081DC27F
end
AI_score1_081DC27F:
score -5
end
AI_score2_081DC27F:
score -15
end
AI_score3_081DC27F:
score -20
end
AI_score4_081DC27F:
score -25
end
AI_end_081DC27F:
end
AI_CheckExcitement:
if_move_excitement_less_than 0, AI_contest09_081DC2AB
if_move_excitement_eq 0, AI_contest7D_4_081DC2AB
if_move_excitement_eq 1, AI_contest3D_081DC2AB
end
AI_contest09_081DC2AB:
if_excitement_eq 4, AI_contest0F_1_081DC2AB
if_excitement_eq 3, AI_contest0F_2_081DC2AB
if_user_has_exciting_move AI_end_081DC2AB
score +15
end
AI_contest0F_1_081DC2AB:
if_user_order_not_eq MON_1, AI_contest7D_1_081DC2AB
if_random 51, AI_end_081DC2AB
score +20
end
AI_contest7D_1_081DC2AB:
if_random 127, AI_end_081DC2AB
score -10
end
AI_contest0F_2_081DC2AB:
if_user_order_not_eq MON_1, AI_contest7D_3_081DC2AB
if_turn_eq 4, AI_score_081DC2AB
AI_contest7D_2_081DC2AB:
if_random 51, AI_end_081DC2AB
score +10
end
AI_score_081DC2AB:
score +15
end
AI_contest7D_3_081DC2AB:
if_random 127, AI_end_081DC2AB
score +10
end
AI_contest7D_4_081DC2AB:
if_random 127, AI_end_081DC2AB
score +10
end
AI_contest3D_081DC2AB:
if_move_used_count_more_than 0, AI_contest29_081DC2AB
if_user_order_not_eq MON_1, AI_contest7D_5_081DC2AB
if_excitement_not_eq 4, AI_contest7D_5_081DC2AB
score +30
end
AI_contest7D_5_081DC2AB:
if_random 100, AI_end_081DC2AB
score +10
end
AI_contest29_081DC2AB:
if_effect_not_eq CONTEST_EFFECT_REPETITION_NOT_BORING, AI_end_081DC2AB
if_user_order_not_eq MON_1, AI_contest7D_5_081DC2AB
if_excitement_not_eq 4, AI_contest7D_5_081DC2AB
score +30
end
AI_end_081DC2AB:
end
AI_CheckForCombo:
if_would_finish_combo AI_score_081DC348
call AI_contest3F_081DC348
call AI_contest45_081DC348
end
AI_contest3F_081DC348:
if_move_used_count_not_eq 0, AI_end_081DC348
if_not_combo_starter AI_end_081DC348
if_user_order_eq MON_1, AI_contest04_1_081DC348
if_user_order_eq MON_2, AI_contest04_2_081DC348
if_user_order_eq MON_3, AI_contest04_3_081DC348
if_user_order_eq MON_4, AI_contest04_4_081DC348
end
AI_contest45_081DC348:
if_not_combo_finisher AI_end_081DC348
score -10
end
AI_score_081DC348:
score +25
end
AI_contest04_1_081DC348:
if_turn_eq 4, AI_contest7D_081DC348
if_random 150, AI_end_081DC348
score +10
end
AI_contest04_2_081DC348:
if_turn_eq 4, AI_contest7D_081DC348
if_random 125, AI_end_081DC348
score +10
end
AI_contest04_3_081DC348:
if_turn_eq 4, AI_contest7D_081DC348
if_random 50, AI_end_081DC348
score +10
end
AI_contest04_4_081DC348:
if_turn_eq 4, AI_contest7D_081DC348
score +10
end
AI_contest7D_081DC348:
if_random 125, AI_end_081DC348
score -15
end
AI_end_081DC348:
end
AI_CheckForGoodMove:
if_effect_eq CONTEST_EFFECT_BETTER_WITH_GOOD_CONDITION, ContestEffect39
if_effect_eq CONTEST_EFFECT_NEXT_APPEAL_EARLIER, ContestEffect40
if_effect_eq CONTEST_EFFECT_NEXT_APPEAL_LATER, ContestEffect41
if_effect_eq CONTEST_EFFECT_REPETITION_NOT_BORING, ContestEffect3
if_effect_eq CONTEST_EFFECT_IMPROVE_CONDITION_PREVENT_NERVOUSNESS, ContestEffect38
if_effect_eq CONTEST_EFFECT_DONT_EXCITE_AUDIENCE, ContestEffect47
if_effect_eq CONTEST_EFFECT_APPEAL_AS_GOOD_AS_PREV_ONES, ContestEffect31
if_effect_eq CONTEST_EFFECT_APPEAL_AS_GOOD_AS_PREV_ONE, ContestEffect32
if_effect_eq CONTEST_EFFECT_BETTER_WHEN_AUDIENCE_EXCITED, ContestEffect46
if_effect_eq CONTEST_EFFECT_WORSEN_CONDITION_OF_PREV_MONS, ContestEffect27
if_effect_eq CONTEST_EFFECT_SHIFT_JUDGE_ATTENTION, ContestEffect16or17
if_effect_eq CONTEST_EFFECT_STARTLE_MON_WITH_JUDGES_ATTENTION, ContestEffect16or17
if_effect_eq CONTEST_EFFECT_MAKE_FOLLOWING_MONS_NERVOUS, ContestEffect_FollowingMonsNervous
if_effect_eq CONTEST_EFFECT_JAMS_OTHERS_BUT_MISS_ONE_TURN, ContestEffect18
end
ContestEffect39:
if_user_condition_eq 3, ContestEffect39_score1
if_user_condition_eq 2, ContestEffect39_score2
if_user_condition_eq 1, ContestEffect39_score3
if_user_condition_eq 0, ContestEffect39_score4
end
ContestEffect39_score1:
score +20
end
ContestEffect39_score2:
if_random 125, ContestEffectEnd
score +15
end
ContestEffect39_score3:
if_random 125, ContestEffectEnd
score +5
end
ContestEffect39_score4:
score -20
end
ContestEffect40:
if_effect_in_user_moveset CONTEST_EFFECT_BETTER_IF_FIRST, ContestEffectEnd
if_random 50, ContestEffectEnd
score +20
end
ContestEffect41:
if_effect_in_user_moveset CONTEST_EFFECT_BETTER_IF_LAST, ContestEffectEnd
if_random 50, ContestEffectEnd
score +20
end
ContestEffect3:
if_user_order_not_eq MON_4, ContestEffectEnd
if_random 50, ContestEffectEnd
score +15
end
if_turn_eq 4, ContestEffect3_7D
if_random 220, ContestEffect3_score
score +10
end
ContestEffect3_7D:
if_random 20, ContestEffectEnd
score +15
end
ContestEffect3_score:
score -20
end
ContestEffect38:
if_effect_in_user_moveset CONTEST_EFFECT_BETTER_WITH_GOOD_CONDITION, ContestEffect38_contest04
if_user_condition_eq 3, ContestEffect38_score1
if_random 50, ContestEffectEnd
score +15
end
ContestEffect38_score1:
score -10
end
ContestEffect38_contest04:
if_turn_eq 4, ContestEffect38_score2
if_turn_eq 0, ContestEffect38_random
if_move_used_count_eq 1, ContestEffectEnd
if_random 125, ContestEffectEnd
score +10
end
ContestEffect38_random:
if_random 100, ContestEffectEnd
score +10
end
ContestEffect38_score2:
score -10
end
ContestEffect47:
if_move_used_count_eq 1, ContestEffectEnd
if_user_order_eq MON_1, ContestEffect47_random
if_user_order_eq MON_2, ContestEffect47_random
if_turn_not_eq 4, ContestEffectEnd
if_user_has_exciting_move ContestEffectEnd
if_excitement_less_than 1, ContestEffectEnd
score +10
end
ContestEffect47_random:
if_random 127, ContestEffectEnd
score +10
end
ContestEffect31:
if_user_order_eq MON_2, ContestEffect31_score1
if_user_order_eq MON_3, ContestEffect31_score2
if_user_order_eq MON_4, ContestEffect31_score3
end
ContestEffect31_score1:
score +5
end
ContestEffect31_score2:
score +15
end
ContestEffect31_score3:
score +20
end
ContestEffect32:
if_user_order_eq MON_1, ContestEffect32_score1
if_user_order_eq MON_2, ContestEffect32_score2
if_user_order_eq MON_3, ContestEffect32_score3
if_user_order_eq MON_4, ContestEffect32_score5
end
ContestEffect32_score1:
score -10
end
ContestEffect32_score2:
if_cannot_participate MON_1, ContestEffectEnd
score +5
end
ContestEffect32_score3:
if_cannot_participate MON_1, ContestEffect32_score4
score +5
jump ContestEffect32_score4
end
ContestEffect32_score4:
if_cannot_participate MON_2, ContestEffectEnd
score +5
end
ContestEffect32_score5:
if_cannot_participate MON_1, ContestEffect32_score6
score +5
jump ContestEffect32_score6
end
ContestEffect32_score6:
if_cannot_participate MON_2, ContestEffect32_score7
score +5
jump ContestEffect32_score7
end
ContestEffect32_score7:
if_cannot_participate MON_3, ContestEffectEnd
score +5
end
ContestEffect46:
if_user_order_eq MON_1, ContestEffect46_05
if_user_order_more_than MON_1, ContestEffect46_score4
end
ContestEffect46_05:
if_turn_not_eq 0, ContestEffect46_score1
if_excitement_eq 4, ContestEffect46_score2
if_excitement_eq 3, ContestEffect46_score3
end
ContestEffect46_score1:
if_random 125, ContestEffectEnd
score -15
end
ContestEffect46_score2:
if_random 125, ContestEffectEnd
score +20
end
ContestEffect46_score3:
if_random 125, ContestEffectEnd
score +15
end
ContestEffect46_score4:
if_random 178, ContestEffectEnd
score +10
end
ContestEffect27:
if_user_order_eq MON_1, ContestEffectEnd
jump ContestEffect27_55_1
end
ContestEffect27_55_1:
if_cannot_participate MON_1, ContestEffect27_noscore
if_condition_eq MON_1, 0, ContestEffect27_noscore
if_condition_eq MON_1, 1, ContestEffect27_score1
if_condition_eq MON_1, 2, ContestEffect27_score2
if_condition_eq MON_1, 3, ContestEffect27_score3
end
ContestEffect27_score1:
if_random 125, ContestEffect27_55_2
score +5
if_user_order_more_than MON_2, ContestEffect27_55_2
end
ContestEffect27_score2:
if_random 125, ContestEffect27_55_2
score +10
if_user_order_more_than MON_2, ContestEffect27_55_2
end
ContestEffect27_score3:
if_random 125, ContestEffect27_55_2
score +15
if_user_order_more_than MON_2, ContestEffect27_55_2
end
ContestEffect27_noscore:
if_user_order_more_than MON_2, ContestEffect27_55_2
end
ContestEffect27_55_2:
if_cannot_participate MON_2, ContestEffect27_noscore2
if_condition_eq MON_2, 0, ContestEffect27_noscore2
if_condition_eq MON_2, 1, ContestEffect27_score4
if_condition_eq MON_2, 2, ContestEffect27_score5
if_condition_eq MON_2, 3, ContestEffect27_score6
end
ContestEffect27_score4:
if_random 125, ContestEffect27_55_3
score +5
if_user_order_more_than MON_3, ContestEffect27_55_3
end
ContestEffect27_score5:
if_random 125, ContestEffect27_55_3
score +10
if_user_order_more_than MON_3, ContestEffect27_55_3
end
ContestEffect27_score6:
if_random 125, ContestEffect27_55_3
score +15
if_user_order_more_than MON_3, ContestEffect27_55_3
end
ContestEffect27_noscore2:
if_user_order_more_than MON_3, ContestEffect27_55_3
end
ContestEffect27_55_3:
if_cannot_participate MON_3, ContestEffect27_end
if_condition_eq MON_3, 0, ContestEffect27_end
if_condition_eq MON_3, 1, ContestEffect27_score7
if_condition_eq MON_3, 2, ContestEffect27_score8
if_condition_eq MON_3, 3, ContestEffect27_score9
end
ContestEffect27_score7:
if_random 125, ContestEffectEnd
score +5
end
ContestEffect27_score8:
if_random 125, ContestEffectEnd
score +10
end
ContestEffect27_score9:
if_random 125, ContestEffectEnd
score +15
end
ContestEffect27_end:
end
ContestEffect16or17:
if_user_order_eq MON_1, ContestEffectEnd
jump ContestEffect16or17_55
end
ContestEffect16or17_55:
if_cannot_participate MON_1, ContestEffect16or17_0E_1
if_used_combo_starter_eq MON_1, TRUE, ContestEffect16or17_0E_1
if_random 125, ContestEffect16or17_0E_1
score +2
contest_58 MON_1, ContestEffect16or17_0E_1
score +8
end
ContestEffect16or17_0E_1:
if_user_order_eq MON_2, ContestEffectEnd
if_cannot_participate MON_2, ContestEffect16or17_0E_2
if_used_combo_starter_eq MON_2, TRUE, ContestEffect16or17_0E_2
if_random 125, ContestEffect16or17_0E_2
score +2
contest_58 MON_2, ContestEffect16or17_0E_2
score +8
end
ContestEffect16or17_0E_2:
if_user_order_eq MON_3, ContestEffectEnd
if_cannot_participate MON_3, ContestEffectEnd
if_used_combo_starter_eq MON_3, TRUE, ContestEffectEnd
if_random 125, ContestEffectEnd
score +2
contest_58 MON_3, ContestEffectEnd
score +8
end
ContestEffect_FollowingMonsNervous:
if_user_order_eq MON_4, ContestEffectEnd
jump ContestEffect_FollowingMonsNervous_CheckMon4
end
ContestEffect_FollowingMonsNervous_CheckMon4:
if_cannot_participate MON_4, ContestEffect_FollowingMonsNervous_CheckMon3
if_used_combo_starter_eq MON_4, FALSE, ContestEffect_FollowingMonsNervous_CheckMon3
score +5
if_random 125, ContestEffect16or17_0E_1
score +5
end
ContestEffect_FollowingMonsNervous_CheckMon3:
if_user_order_eq MON_3, ContestEffectEnd
if_cannot_participate MON_3, ContestEffect_FollowingMonsNervous_CheckMon2
if_used_combo_starter_eq MON_3, FALSE, ContestEffect_FollowingMonsNervous_CheckMon2
score +5
if_random 125, ContestEffect16or17_0E_2
score +5
end
ContestEffect_FollowingMonsNervous_CheckMon2:
if_user_order_eq MON_2, ContestEffectEnd
if_cannot_participate MON_2, ContestEffectEnd
if_used_combo_starter_eq MON_2, FALSE, ContestEffectEnd
score +5
if_random 125, ContestEffectEnd
score +5
end
ContestEffect18:
if_turn_eq 4, ContestEffect18_score1
jump ContestEffect18_0E
end
ContestEffect18_score1:
score +5
jump ContestEffect18_0E
end
ContestEffect18_0E:
if_user_order_eq MON_1, ContestEffect18_score2
if_user_order_eq MON_2, ContestEffect18_random1
if_user_order_eq MON_3, ContestEffect18_random2
if_user_order_eq MON_4, ContestEffect18_random3
end
ContestEffect18_score2:
score -15
end
ContestEffect18_random1:
if_random 125, ContestEffectEnd
score -10
end
ContestEffect18_random2:
if_random 125, ContestEffectEnd
score +5
end
ContestEffect18_random3:
if_random 125, ContestEffectEnd
score +15
end
ContestEffectEnd:
end
@ Randomly encourage moves in Cute, Smart, and Tough contests.
AI_Erratic:
if_contest_type_eq CONTEST_CUTE, Erratic_CuteSmartTough
if_contest_type_eq CONTEST_SMART, Erratic_CuteSmartTough
if_contest_type_eq CONTEST_TOUGH, Erratic_CuteSmartTough
end
Erratic_CuteSmartTough:
if_random 125, Erratic_NoScoreIncrease
score +10
end
Erratic_NoScoreIncrease:
end
AI_CheckForBadMove:
if_effect_eq CONTEST_EFFECT_STARTLE_FRONT_MON, ContestEffect2_8
if_effect_eq CONTEST_EFFECT_STARTLE_PREV_MON, ContestEffect2_8
if_effect_eq CONTEST_EFFECT_BADLY_STARTLE_FRONT_MON, ContestEffect2_8
if_effect_eq CONTEST_EFFECT_STARTLE_PREV_MON_2, ContestEffect2_8
if_effect_eq CONTEST_EFFECT_APPEAL_AS_GOOD_AS_PREV_ONE, ContestEffect2_8
if_effect_eq CONTEST_EFFECT_BETTER_IF_SAME_TYPE, ContestEffect2_8
if_effect_eq CONTEST_EFFECT_BETTER_IF_DIFF_TYPE, ContestEffect2_8
if_effect_eq CONTEST_EFFECT_AFFECTED_BY_PREV_APPEAL, ContestEffect2_8
if_effect_eq CONTEST_EFFECT_SLIGHTLY_STARTLE_PREV_MONS, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_STARTLE_PREV_MONS, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_BADLY_STARTLE_PREV_MONS, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_STARTLE_PREV_MONS_2, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_STARTLE_MON_WITH_JUDGES_ATTENTION, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_SHIFT_JUDGE_ATTENTION, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_JAMS_OTHERS_BUT_MISS_ONE_TURN, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_STARTLE_MONS_SAME_TYPE_APPEAL, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_BADLY_STARTLE_MONS_WITH_GOOD_APPEALS, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_STARTLE_MONS_COOL_APPEAL, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_STARTLE_MONS_BEAUTY_APPEAL, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_STARTLE_MONS_CUTE_APPEAL, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_STARTLE_MONS_SMART_APPEAL, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_STARTLE_MONS_TOUGH_APPEAL, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_BADLY_STARTLES_MONS_IN_GOOD_CONDITION, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_WORSEN_CONDITION_OF_PREV_MONS, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_APPEAL_AS_GOOD_AS_PREV_ONES, ContestEffect2_9
if_effect_eq CONTEST_EFFECT_MAKE_FOLLOWING_MON_NERVOUS, ContestEffect2_25
if_effect_eq CONTEST_EFFECT_MAKE_FOLLOWING_MONS_NERVOUS, ContestEffect2_26
if_effect_eq CONTEST_EFFECT_DONT_EXCITE_AUDIENCE, ContestEffect2_26
if_effect_eq CONTEST_EFFECT_IMPROVE_CONDITION_PREVENT_NERVOUSNESS, ContestEffect2_38
if_effect_eq CONTEST_EFFECT_AVOID_STARTLE_ONCE, ContestEffect2_4
if_effect_eq CONTEST_EFFECT_AVOID_STARTLE, ContestEffect2_4
if_effect_eq CONTEST_EFFECT_AVOID_STARTLE_SLIGHTLY, ContestEffect2_4
if_effect_eq CONTEST_EFFECT_GREAT_APPEAL_BUT_NO_MORE_MOVES, ContestEffect2_2
end
ContestEffect2_8:
if_user_order_eq MON_1, ContestEffect2_8_score1
if_user_order_eq MON_2, ContestEffect2_8_score2
if_user_order_eq MON_3, ContestEffect2_8_score3
if_user_order_eq MON_4, ContestEffect2_8_score4
end
ContestEffect2_8_score1:
score -10
end
ContestEffect2_8_score2:
if_can_participate MON_1, ContestEffectEnd2
score -10
end
ContestEffect2_8_score3:
if_can_participate MON_2, ContestEffectEnd2
score -10
end
ContestEffect2_8_score4:
if_can_participate MON_3, ContestEffectEnd2
score -10
end
ContestEffect2_9:
if_user_order_eq MON_1, ContestEffect2_9_score1
if_user_order_eq MON_2, ContestEffect2_9_score2
if_user_order_eq MON_3, ContestEffect2_9_score3
if_user_order_eq MON_4, ContestEffect2_9_score4
end
ContestEffect2_9_score1:
score -20
end
ContestEffect2_9_score2:
if_can_participate MON_1, ContestEffectEnd2
score -15
end
ContestEffect2_9_score3:
if_can_participate MON_1, ContestEffectEnd2
if_can_participate MON_2, ContestEffectEnd2
score -15
end
ContestEffect2_9_score4:
if_can_participate MON_1, ContestEffectEnd2
if_can_participate MON_2, ContestEffectEnd2
if_can_participate MON_3, ContestEffectEnd2
score -15
end
ContestEffect2_25:
if_user_order_eq MON_1, ContestEffect2_25_score1
if_user_order_eq MON_2, ContestEffect2_25_score2
if_user_order_eq MON_3, ContestEffect2_25_score3
score -10
end
ContestEffect2_25_score1:
if_can_participate MON_2, ContestEffectEnd2
score -10
end
ContestEffect2_25_score2:
if_can_participate MON_3, ContestEffectEnd2
score -10
end
ContestEffect2_25_score3:
if_can_participate MON_4, ContestEffectEnd2
score -10
end
ContestEffect2_26:
if_user_order_eq MON_1, ContestEffect2_26_score1
if_user_order_eq MON_2, ContestEffect2_26_score2
if_user_order_eq MON_3, ContestEffect2_26_score3
score -10
end
ContestEffect2_26_score1:
if_can_participate MON_2, ContestEffectEnd2
if_can_participate MON_3, ContestEffectEnd2
if_can_participate MON_4, ContestEffectEnd2
score -10
end
ContestEffect2_26_score2:
if_can_participate MON_3, ContestEffectEnd2
if_can_participate MON_4, ContestEffectEnd2
score -10
end
ContestEffect2_26_score3:
if_can_participate MON_4, ContestEffectEnd2
score -10
end
ContestEffect2_38:
if_user_condition_less_than 3, ContestEffectEnd2
score -20
end
ContestEffect2_4:
if_user_order_eq MON_1, ContestEffect2_4_score1
if_user_order_eq MON_2, ContestEffect2_4_score2
if_user_order_eq MON_3, ContestEffect2_4_score3
score -10
end
ContestEffect2_4_score1:
if_can_participate MON_2, ContestEffectEnd2
if_can_participate MON_3, ContestEffectEnd2
if_can_participate MON_4, ContestEffectEnd2
score -10
end
ContestEffect2_4_score2:
if_can_participate MON_3, ContestEffectEnd2
if_can_participate MON_4, ContestEffectEnd2
score -10
end
ContestEffect2_4_score3:
if_can_participate MON_4, ContestEffectEnd2
score -10
end
ContestEffect2_2:
if_turn_eq 0, ContestEffect2_2_score1
if_turn_eq 1, ContestEffect2_2_score2
if_turn_eq 2, ContestEffect2_2_score3
if_turn_eq 3, ContestEffect2_2_score4
if_turn_eq 4, ContestEffect2_2_score5
end
ContestEffect2_2_score1:
if_random 20, ContestEffectEnd2
score -15
end
ContestEffect2_2_score2:
if_random 40, ContestEffectEnd2
score -15
end
ContestEffect2_2_score3:
if_random 60, ContestEffectEnd2
score -15
end
ContestEffect2_2_score4:
if_random 80, ContestEffectEnd2
score -15
end
ContestEffect2_2_score5:
if_random 20, ContestEffectEnd2
score +20
end
ContestEffectEnd2:
end
AI_CheckOrder:
if_user_order_eq MON_1, AI_effectcheck1_081DCA4C
if_user_order_eq MON_2, AI_effectcheck2_081DCA4C
if_user_order_eq MON_3, AI_effectcheck3_081DCA4C
if_user_order_eq MON_4, AI_effectcheck4_081DCA4C
end
AI_effectcheck1_081DCA4C:
if_effect_eq CONTEST_EFFECT_BETTER_IF_FIRST, AI_score1_081DCA4C
if_effect_eq CONTEST_EFFECT_BETTER_WHEN_LATER, AI_score2_081DCA4C
if_effect_type_eq 1, AI_random1_081DCA4C
end
AI_score1_081DCA4C:
score +15
end
AI_score2_081DCA4C:
score -15
end
AI_random1_081DCA4C:
if_random 100, ContestEffectEnd2
score +10
end
AI_effectcheck2_081DCA4C:
if_effect_eq CONTEST_EFFECT_BETTER_WHEN_LATER, AI_score3_081DCA4C
if_effect_type_eq 1, AI_random2_081DCA4C
end
AI_score3_081DCA4C:
score -5
end
AI_random2_081DCA4C:
if_random 125, ContestEffectEnd2
score +10
end
AI_effectcheck3_081DCA4C:
if_effect_eq CONTEST_EFFECT_BETTER_WHEN_LATER, AI_score4_081DCA4C
if_effect_eq CONTEST_EFFECT_APPEAL_AS_GOOD_AS_PREV_ONES, AI_score4_081DCA4C
if_effect_eq CONTEST_EFFECT_USER_MORE_EASILY_STARTLED, AI_score4_081DCA4C
end
AI_score4_081DCA4C:
score +5
end
AI_effectcheck4_081DCA4C:
if_effect_eq CONTEST_EFFECT_BETTER_WHEN_LATER, AI_score5_081DCA4C
if_effect_eq CONTEST_EFFECT_BETTER_IF_LAST, AI_score5_081DCA4C
if_effect_eq CONTEST_EFFECT_APPEAL_AS_GOOD_AS_PREV_ONES, AI_score5_081DCA4C
if_effect_eq CONTEST_EFFECT_USER_MORE_EASILY_STARTLED, AI_score5_081DCA4C
if_effect_eq CONTEST_EFFECT_JAMS_OTHERS_BUT_MISS_ONE_TURN, AI_score7_081DCA4C
if_effect_type_eq 1, AI_score6_081DCA4C
if_effect_type_eq 3, AI_random3_081DCA4C
end
AI_score5_081DCA4C:
score +15
end
AI_score6_081DCA4C:
score -10
end
AI_random3_081DCA4C:
if_random 125, ContestEffectEnd2
score +10
end
AI_score7_081DCA4C:
score +5
end
AI_Nothing:
end