diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2015-11-04 20:20:14 -0500 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2015-11-04 20:20:14 -0500 |
commit | 3cadc7b012c3d11f227d71814f729952d0f56c21 (patch) | |
tree | baebe666292937ae3f70b42d83dad214c8eb192e /macros | |
parent | 7fd20e63223e777872618b3eac7cf49f8b105fec (diff) |
give/takeitem *, 1: the 1 is optional
Diffstat (limited to 'macros')
-rw-r--r-- | macros/event.asm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/macros/event.asm b/macros/event.asm index df2baab65..c51f798c5 100644 --- a/macros/event.asm +++ b/macros/event.asm @@ -206,14 +206,22 @@ writecode: macro giveitem: macro db giveitem_command db \1 ; item +if _NARG == 2 db \2 ; quantity +else + db 1 +endc endm enum takeitem_command takeitem: macro db takeitem_command db \1 ; item +if _NARG == 2 db \2 ; quantity +else + db 1 +endc endm enum checkitem_command @@ -986,7 +994,11 @@ checkphonecall: macro verbosegiveitem: macro db verbosegiveitem_command db \1 ; item +if _NARG == 2 db \2 ; quantity +else + db 1 +endc endm enum verbosegiveitem2_command |