diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2019-10-20 20:20:45 -0400 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2019-10-20 20:20:45 -0400 |
commit | 2aeefdc5de73c630a79b183e7bc2a66ad48ed424 (patch) | |
tree | 3833a23f869ab66a7c58cb9c43d8628ece27fc46 /asm/macros/event.inc | |
parent | b3951b48ecf169463d917c3fca9c218e16fe961e (diff) |
update famechecker macro
Diffstat (limited to 'asm/macros/event.inc')
-rw-r--r-- | asm/macros/event.inc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/asm/macros/event.inc b/asm/macros/event.inc index 98910b1cc..0b5ab8915 100644 --- a/asm/macros/event.inc +++ b/asm/macros/event.inc @@ -37,6 +37,13 @@ .4byte \destination .endm + lt = 0 + eq = 1 + gt = 2 + le = 3 + ge = 4 + ne = 5 + @ If the result of the last comparison matches condition (see Comparison operators), calls destination. .macro call_if condition, destination .byte 0x07 @@ -1442,13 +1449,13 @@ callstd 9 .endm - .macro famechecker person, index + .macro famechecker person:req, index:req, function=SetFlavorTextFlagFromSpecialVars setvar VAR_0x8004, \person setvar VAR_0x8005, \index - special SetFlavorTextFlagFromSpecialVars + special \function .endm - .macro set_gym_trainers gym + .macro set_gym_trainers gym:req setvar VAR_0x8008, \gym call EventScript_1A6B18 .endm |