/
coms.txt
237 lines (184 loc) · 5.25 KB
/
coms.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
[str] = variable name, array location
## = variable name, array location, number,function
Data Types
counter = float
array = float[]
string = char[]
INPUT COMMAND
getString
keyPressed
mouseClick
DATA COMMAND
set int [str] ##
set string [str] "...."
set float [str] ##.##
inc [str] ##
dec [str] ##
Functions
multiply [str] ##
divide [str] ##
pow [str] ##
log [str] ##,##
abs [str]
rshift [str]
lshift [str]
String Commands
ID EOC Command
--- --- -------
0 x End
1 x Die
2 x Wait [##]
3 Cycle [##]
4 x g Go [dir] [##]
5 g Walk [dir]
7 g Char [ch]
8 g Color [col]
9 x g Gotoxy [-#] [-#]
10 Set [str] [##]
11 Inc [str] [##]
12 Dec [str] [##]
16 If [str] [!<>=] [##] [str]
18 g If [cond] [str]
19 g If not [cond] [str]
20 If any [color/thing/param] [str] (different)
21 If not any [color/thing/param] [str] (different)
22 If [color/thing/param] [dir] [str] (different)
23 If not [color/thing/param] [dir] [str] (different)
24 If [color/thing/param] [-#] -#] [str] (different)
25 g If [-#] [-#] [str]
26 If [dir] player [color/thing/param] [str] (different)
27 Double [str]
28 Half [str]
29 Goto [str]
30 Send [str] [str]
36 * Endgame
38 Mod [str]
39 Sam [##] [str]
40 Volume [##]
41 End mod
42 End sam
43 Play [str]
44 End play
45 Wait play [str]
46 Wait play
47 (blank line)
48 Sfx [##]
49 Play sfx [str]
51 * Lockself
52 * Unlockself
53 g Send [dir] [label]
54 Zap [str] [##]
55 Restore [str] [##]
56 * Lock [str] dir
57 * Unlock [str]
68 x g Try [dir] [str]
71 g Switch [dir] [dir]
81 Send [-#] [-#] [str]
82 x * Copyrobot [str]
83 x * Copyrobot [-#] [-#]
84 x*g Copyrobot [dir]
85 g Duplicate self [dir]
86 Duplicate self [-#] [-#]
95 Inc [str] random [##] [##]
96 Dec [str] random [##] [##]
97 Set [str] random [##] [##]
101 x /[str]
102 *[str]
103 [[str]
104 ?[str];[str]
105 ?[str];[str];[str]
106 :[str]
107 .[str]
108 |[str]
110 * Scrollview [dir] [##]
111 Input string [str]
112 If string [str] [str]
113 If string not [str] [str]
114 If string matches [str] [str]
116 %[str]
117 &[str]
118 x Move all [color/thing/param] [dir] (different)
119 x Copy [-#] [-#] [-#] [-#]
120 Set edge color [col]
121 Board [dir] [str]
122 Board [dir] none
124 g Become pushable
125 g Become nonpushable
132 x g Copy [dir] [dir]
133 g Become lavawalker
134 g Become nonlavawalker
135 Change [color/thing/param] [color/thing/param] (Diff. from ver 1.0?)
140 Pre Rel self (In MZX 2.0, unpredictable/useless for use w/global robot)
142 Pre Rel counters
144 Jump mod order [##]
150 Save player position (In MZX 2.0, saves to position 1)
151 Restore player position (In MZX 2.0, uses position 1)
152 Exchange player position (In MZX 2.0, uses position 1)
153 Set mesg column [##]
154 Center mesg
155 Clear mesg
156 * Resetview
157 Sam [##] [##]
158 ODT Volume [str]
159 * Scrollbase color [col]
160 * Scrollcorner color [col] (Diff. from MZX 1.03)
161 * Scrolltitle color [col]
162 * Scrollpointer color [col]
163 * Scrollarrow color [col]
164 Viewport [##] [##] (Not param checked until MZX 2.0)
165 Viewport size [##] [##] (Not param checked until MZX 2.0)
166 ODT Set mesg column [str]
167 ODT Message row [str]
168 Save player position [##]
169 Restore player position [##]
170 Exchange player position [##]
171 Restore player position [##] duplicate self
172 Exchange player position [##] duplicate self
193 Pre Rel self first (Unpredictable/useless for use w/global robot)
194 Pre Rel self last (Unpredictable/useless for use w/global robot)
197 Pre Rel counters first
198 Pre Rel counters last
199 Mod fade out
200 Mod fade in [str]
201 x Copy block [-#] [-#] [##] [##] [-#] [-#]
202 Clip input
203 g Push [dir]
204 Scroll char [ch] [dir]
205 Flip char [ch] [dir]
206 Copy char [ch] [ch]
211 Color intensity [##] percent
212 Color intensity [##] [##] percent
213 x Color fade out
214 x Color fade in
215 Set color [##] [##] [##] [##]
216 Load char set [str]
217 Multiply [str] [##]
218 Divide [str] [##]
219 Modulo [str] [##]
220 Player char [dir] [ch]
221
222 Load palette [str]
223
224 Mod fade [##] [##] (target/speed)
225 * Scrollview [-#] [-#]
226 x Swap world [str]
227 * If alignedrobot [str] [str]
228
229 * Lockscroll
230 * Unlockscroll
231 If first string [str] [str]
232 Persistent go [str] (waits until it can move then moves)
233 Wait mod fade
235 Enable saving
236 Disable saving
239 Overlay on
240 Overlay static
241 Overlay transparent
242 Put [col] [ch] overlay [-#] [-#]
243 x Copy overlay block [-#] [-#] [##] [##] [-#] [-#]
247 Write overlay [col] [str] [-#] [-#]
251 Loop start
252 Loop [##]
253 Abort loop
254 Disable mesg edge
255 Enable mesg edge