From 9fafa122851dc4eecdefde2b36b88be6572656f0 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Fri, 10 Jan 2020 03:19:11 -0500 Subject: More basic script constants --- asm/macros/event.inc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'asm/macros') diff --git a/asm/macros/event.inc b/asm/macros/event.inc index 53a9285e9..1169905b5 100644 --- a/asm/macros/event.inc +++ b/asm/macros/event.inc @@ -1534,6 +1534,26 @@ vgoto_if FALSE, \dest .endm + .macro goto_if_defeated trainer:req, dest:req + checktrainerflag \trainer + goto_if TRUE, \dest + .endm + + .macro goto_if_undefeated trainer:req, dest:req + checktrainerflag \trainer + goto_if FALSE, \dest + .endm + + .macro call_if_defeated trainer:req, dest:req + checktrainerflag \trainer + call_if TRUE, \dest + .endm + + .macro call_if_undefeated trainer:req, dest:req + checktrainerflag \trainer + call_if FALSE, \dest + .endm + .macro switch var:req copyvar VAR_0x8000, \var .endm -- cgit v1.2.3