summaryrefslogtreecommitdiff
path: root/asm/macros
diff options
context:
space:
mode:
Diffstat (limited to 'asm/macros')
-rw-r--r--asm/macros/event.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/asm/macros/event.inc b/asm/macros/event.inc
index c224861b0..6a7bc2b47 100644
--- a/asm/macros/event.inc
+++ b/asm/macros/event.inc
@@ -1490,6 +1490,17 @@
goto_eq \dest
.endm
+ .macro msgbox text, type=4
+ loadword 0, \text
+ callstd \type
+ .endm
+
+ @ Message box types
+ MSGBOX_YESNO = 5
+
+ YES = 1
+ NO = 0
+
.macro giveitem_std item, amount=1, function=0
setorcopyvar 0x8000, \item
setorcopyvar 0x8001, \amount