summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2016-06-16 16:04:15 -0400
committeryenatch <yenatch@gmail.com>2016-06-16 16:04:15 -0400
commit9d8d999973a627b319413e33344103913b630499 (patch)
tree0bcff426d7109df9ae9bd36c69bf065e5acc7b07
parente94cd4803090ce275fb2b489d7e4cc6ade0e3327 (diff)
Add msgbox, giveitem, givedecoration.
-rw-r--r--asm/macros/event.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/asm/macros/event.s b/asm/macros/event.s
index c0152b7c5..d29e72e97 100644
--- a/asm/macros/event.s
+++ b/asm/macros/event.s
@@ -1487,3 +1487,18 @@
jumpeq \dest
.endm
+ .macro msgbox text, type=4
+ loadptr 0, \text
+ callstd \type
+ .endm
+
+ .macro giveitem item, amount=1, function=0
+ setorcopyvar 0x8000, \item
+ setorcopyvar 0x8001, \amount
+ callstd \function
+ .endm
+
+ .macro givedecoration decoration
+ setorcopyvar 0x8000, \decoration
+ callstd 7
+ .endm