From 3d8e949d373a828fee370b08d005f131abb67333 Mon Sep 17 00:00:00 2001 From: Shakib2001 Date: Fri, 27 Mar 2020 14:31:38 -0400 Subject: Added warp, warp_to and sign compatibility --- macros.asm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'macros.asm') diff --git a/macros.asm b/macros.asm index 28aad1e5..2835c99a 100644 --- a/macros.asm +++ b/macros.asm @@ -715,6 +715,27 @@ endchannel: MACRO db $FF ENDM +;\1 x position +;\2 y position +;\3 destination warp id +;\4 destination map ($ff = wLastMap) +warp: MACRO + db \2, \1, \3, \4 +ENDM + +;\1 x position +;\2 y position +;\3 sign id +sign: MACRO + db \2, \1, \3 +ENDM + +;\1 x position +;\2 y position +;\3 map width +warp_to: MACRO + EVENT_DISP \3, \2, \1 +ENDM ;\1 (byte) = current map id ;\2 (byte) = connected map id -- cgit v1.3.1-sl0p