Browse Source

Scripts und noch mehr Scripts.

DragonflySotS 7 years ago
parent
commit
7a9fc37ca8
3 changed files with 26 additions and 9 deletions
  1. BIN
      build/pkmn_sots_01.png
  2. 1
    1
      sots-private
  3. 25
    8
      src/include/script_language.h

BIN
build/pkmn_sots_01.png View File


+ 1
- 1
sots-private

@@ -1 +1 @@
1
-Subproject commit 61328dd97eaad0594fa7c5161ecfeff0582afd74
1
+Subproject commit 1824abff46e5206961d42a691f6235f8c82e125d

+ 25
- 8
src/include/script_language.h View File

@@ -19,14 +19,17 @@
19 19
 .equ B_F, 0x1
20 20
 
21 21
 @@ callstd alias
22
-.equ ITEM_OBTAIN, 0
23
-.equ ITEM_FIND, 1
24
-.equ MSG_FACE, 2
25
-.equ MSG_SIGN, 3
26
-.equ MSG_KEYOPEN, 4
27
-.equ MSG_YES_NO, 5
28
-.equ MSG_STD, 6
29
-
22
+.equ ITEM_OBTAIN, 0x0
23
+.equ ITEM_FIND, 0x1
24
+.equ MSG_FACE, 0x2
25
+.equ MSG_SIGN, 0x3
26
+.equ MSG_KEYOPEN, 0x4
27
+.equ MSG_YES_NO, 0x5
28
+.equ MSG_STD, 0x6
29
+
30
+@@ Definition
31
+.equ MUG_LEFT, 0x0
32
+.equ MUG_RIGHT, 0x1
30 33
 
31 34
 @@@@@@@@@@@@@@@@@ Macro
32 35
 
@@ -105,6 +108,20 @@ msgbox \mugmsgl_textpointer \mugmsgl_callstd
105 108
 setvar MUGHSOT_1_TABLE 0x0
106 109
 .endm
107 110
 
111
+.macro mugrival mugrivalr_textpointer:req mugrivalr_callstd:req mugrivalr_facing:req
112
+setvar 0x8000 \mugrivalr_facing
113
+call scr_mugrival
114
+msgbox \mugrivalr_textpointer \mugrivalr_callstd
115
+setvar MUGHSOT_1_TABLE 0x0
116
+.endm
117
+
118
+.macro mugrivall mugrivall_textpointer:req mugrivall_callstd:req mugrivall_facing:req
119
+setvar 0x8000 \mugrivall_facing
120
+call scr_mugrival
121
+msgbox \mugrivall_textpointer \mugrivall_callstd
122
+setvar MUGHSOT_1_TABLE 0x0
123
+.endm
124
+
108 125
 .macro transparenzon
109 126
 clearflag FLAG_ACTIVATE
110 127
 .endm