summaryrefslogtreecommitdiff
path: root/asm/macros/contest_ai_script.inc
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-08-21 14:47:55 -0400
committerGriffinR <griffin.g.richards@gmail.com>2020-08-21 14:57:17 -0400
commitfbb70b372743fca1c9323e0011a498e672d4707b (patch)
tree0296dddcfc6fafa27141ce7fecf47bbf6e6e33d9 /asm/macros/contest_ai_script.inc
parent469ec5f248ce3f3708940dfaedcb1b1c2d6d3380 (diff)
Document contest AI scripts
Diffstat (limited to 'asm/macros/contest_ai_script.inc')
-rw-r--r--asm/macros/contest_ai_script.inc15
1 files changed, 12 insertions, 3 deletions
diff --git a/asm/macros/contest_ai_script.inc b/asm/macros/contest_ai_script.inc
index 7a5d669f4..9ab7184c3 100644
--- a/asm/macros/contest_ai_script.inc
+++ b/asm/macros/contest_ai_script.inc
@@ -510,6 +510,14 @@
.4byte \destination
.endm
+ .macro if_used_combo_starter mon:req, destination:req
+ if_used_combo_starter_eq \mon, TRUE, \destination
+ .endm
+
+ .macro if_not_used_combo_starter mon:req, destination:req
+ if_used_combo_starter_eq \mon, FALSE, \destination
+ .endm
+
@ whether the mon can make an appeal
.macro check_can_participate mon:req
@@ -803,7 +811,7 @@
.4byte \destination
.endm
- @ NOTE: Random is broken (see ContestAICmd_if_random_less_than)
+ @ NOTE: The random commands are broken (see ContestAICmd_if_random_less_than)
.macro if_random_less_than num:req, destination:req
.byte 0x7D
.byte \num
@@ -844,6 +852,7 @@
.4byte \destination
.endm
+ @ This is used incorrectly to check for an effect; see ContestAICmd_check_user_has_move
.macro check_user_has_move move:req
.byte 0x85
.2byte \move
@@ -855,8 +864,8 @@
.4byte \destination
.endm
- .macro if_effect_in_user_moveset effect:req, destination:req
+ .macro if_user_doesnt_have_move move:req, destination:req
.byte 0x87
- .2byte \effect
+ .2byte \move
.4byte \destination
.endm