info_mzx.txt 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. ** Codes for objects-
  2. ID Is Char Param Color Special
  3. --- --------------- ---- --------------- ----- ----------------------------
  4. 0 Space 32 Curr UNDER
  5. 1 Normal 178 Curr
  6. 2 Solid 219 Curr
  7. 3 Tree 6 10
  8. 4 Line Var Curr
  9. 5 Custom Block Par Char Curr
  10. 6 Breakaway 177 Curr
  11. 7 Custom Break Par Char Curr
  12. 8 Boulder 233 7
  13. 9 Crate 254 6
  14. 10 Custom Push Par Char Curr
  15. 11 Box 254 Curr
  16. 12 Custom Box Par Char Curr
  17. 13 Fake 178 Curr UNDER
  18. 14 Carpet 177 Curr UNDER
  19. 15 Floor 176 Curr UNDER
  20. 16 Tiles 254 Curr UNDER
  21. 17 Custom Floor Par Char Curr UNDER
  22. 18 Web Var 7 UNDER
  23. 19 Thick Web Var 7 UNDER
  24. 20 Still Water 176 25 UNDER
  25. 21 N Water 24 25 UNDER
  26. 22 S Water 25 25 UNDER
  27. 23 E Water 26 25 UNDER
  28. 24 W Water 27 25 UNDER
  29. 25 Ice Var Anim 59 UNDER
  30. 26 Lava Var Anim 76 UNDER
  31. 27 Chest 239 Contents 6 CHAR 160 IN v2.0+
  32. 28 Gem 4 Curr
  33. 29 Magic Gem 4 Curr
  34. 30 Health 3 Amount 12
  35. 31 Ring 9 Effect 14
  36. 32 Potion 173 Effect 11 CHAR 150 IN v2.0+
  37. 33 Energizer 7 Glow 15
  38. 34 Goop 176 24 v2.0+ LIKE ZZT'S WATER
  39. 35 Ammo Var Amount 3
  40. 36 Bomb 11 High or Low 8
  41. 37 Lit Bomb Var Fuse 8
  42. 38 Explosion 177 Stage 239
  43. 39 Key 12 Curr
  44. 40 Lock 10 Curr
  45. 41 Door Var Dir/Lock Curr
  46. 42 Open Door Var Dir/Stage Curr TREAT AS ABOVE FOR CHANGE CMD
  47. 43 Stairs 240 Destination Curr UNDER, CHAR 162 IN v2.0+
  48. 44 Cave ("Door") 239 Destination Curr UNDER, CHAR 161 IN v2.0+
  49. 45 CW Rotate Var Anim Curr
  50. 46 CCW Rotate Var Anim Curr
  51. 47 Gate 22 Lock 8
  52. 48 Open Gate 95 Delay 8 UNDER, CHAR 196 IN v2.0+
  53. 49 Transport Var Anim/Dir Curr
  54. 50 Coin 7 14
  55. 51 N Moving Wall Par Char Curr
  56. 52 S Moving Wall Par Char Curr
  57. 53 E Moving Wall Par Char Curr
  58. 54 W Moving Wall Par Char Curr
  59. 55 Pouch 229 Contents 7 CHAR 159 IN v2.0+
  60. 56 Pusher Var Direction Curr
  61. 57 Slider NS 18 Curr
  62. 58 Slider EW 29 Curr
  63. 59 Lazer Var Anim/Dir/Stage Curr
  64. 60 Lazer Gun 206 Dir/Timing 4
  65. 61 Bullet Var Dir/Type 15
  66. 62 Missile Var Dir 8
  67. 63 Fire Var Anim 12
  68. 64
  69. 65 Forest 178 2
  70. 66 Life Var Anim 13
  71. 67 Whirlpool 1 54 Destination 31 UNDER, CHAR 151-154 IN v2.0+
  72. 68 Whirlpool 2 64 Destination 31 UNDER, TREAT AS 1 FOR CHANGE
  73. 69 Whirlpool 3 57 Destination 31 UNDER, TREAT AS 1 FOR CHANGE
  74. 70 Whirlpool 4 149 Destination 31 UNDER, TREAT AS 1 FOR CHANGE
  75. 71 Invis Wall 32 Curr
  76. 72 Ricochet Panel Var Orientation 9
  77. 73 Ricochet 42 10
  78. 74 Mine Var Anim/Radius 12
  79. 75 Spike Var Dir 8
  80. 76 Custom Hurt Par Char Curr
  81. 77 Text Par Char Curr
  82. 78 Shooting Fire Var Anim/Dir 14
  83. 79 Seeker Var Anim/Life 10
  84. 80 Snake 235 Int/Spd/Dir 2
  85. 81 Eye 236 Int/Spd/Radius 15
  86. 82 Thief 1 Int/Spd/Steal 12 CHAR 5 IN v2.0+
  87. 83 Slimeblob 42 Spd/Invnc/Hurts 10
  88. 84 Runner 2 Spd/Dir/HP 4
  89. 85 Ghost 234 Int/Spd/Invnc 7
  90. 86 Dragon 21 Fire/Move/HP 4
  91. 87 Fish 224 Int/Spd/Hurts 14 PARAM CONT- HP/CurrentAffects
  92. 88 Shark 94 Int/Fire/Rate 7 CHAR 127 IN v2.0+
  93. 89 Spider 15 Int/Spd/HP/Web 7 CHAR 149 IN v2.0+
  94. 90 Goblin 5 Int/Rest 2
  95. 91 Spitting Tiger 227 Int/Fire/Rate 11
  96. 92 Bullet Gun Var Dir/Rate/Int 15
  97. 93 Spinning Gun Var Dir/Rate/Int 15
  98. 94 Bear 153 Sens/Spd/HP 6 CHAR 172 IN v2.0+
  99. 95 Bear Cub 148 Int/Mode/Switch 6 CHAR 173 IN v2.0+
  100. 96
  101. 97 Missile Gun Var Int/Dir/Rate 8
  102. 98
  103. 99
  104. 100
  105. 101
  106. 102
  107. 103
  108. 104
  109. 105
  110. 106
  111. 107
  112. 108
  113. 109
  114. 110
  115. 111
  116. 112
  117. 113
  118. 114
  119. 115
  120. 116
  121. 117
  122. 118
  123. 119
  124. 120
  125. 121
  126. 122 Sensor Var ID # Curr
  127. 123 Robot Pushable Var ID # Curr
  128. 124 Robot Var ID # Curr
  129. 125 Sign 226 ID # 8
  130. 126 Scroll 232 ID # 15
  131. 127 Player Var 27
  132. ** Robot program storage format-
  133. BYTE 1- Number of total bytes in this command, not including this one or
  134. the final byte which is a repeat of this count.
  135. A zero here signifies the end of the program.
  136. A -1 (~0) (0FFh) here signifies the start of the program, and is
  137. immediatly followed by BYTE 1 of the first command.
  138. BYTE 2- Command identification code.
  139. THEN - Command paramters, if any, according to command. Parameters take
  140. the minimum bytes required for ver 1.0?. For ver 2.00, they are
  141. all min. 3 bytes- The first byte is a code of n for a string/counter
  142. of n length or 0 for a numeral, the second/third bytes is the numeral
  143. or the null-terminated counter/string. Conditions/etc are stored as
  144. numerals. Even things like directions that fit in one byte take up
  145. two bytes. Nothing except counters/strings requires more than these
  146. two bytes, however. The length of a string INCLUDES THE NULL BYTE.
  147. FINAL - Repeat of BYTE 1 for backwards searching.
  148. A blank program is 2 bytes long- A -1 then a 0.
  149. ** Scroll storage format-
  150. BYTE 1- A 01h. This marks the start of the text.
  151. MIDDLE- Lines, all terminated with a '\n'. (0Ah) There must be at least
  152. one line, even if it is just a '\n'.
  153. LAST - A 00h. This marks the end of the text.
  154. A blank text is 3 bytes long- A 01h, a '\n', and a 00h.
  155. ** Command line options-
  156. Version 1.0? and below-
  157. -debug : Begin with x/y pos, etc showing (Like Alt-Y within program)
  158. -ms : Music on SB
  159. -mp : Music on PC
  160. -mo : Music off
  161. -sp : PC speaker sound effects on
  162. -so : PC speaker sound effects off
  163. -bios : Use bios for certain functions
  164. -nomouse: Don't activate mouse
  165. -mouse : Use mouse even if found
  166. -prism : Cheat keys
  167. -ii! : Pro mode
  168. -keyboard2:Use another method of ending the keyboard handler
  169. Version 2.0 and above-
  170. -? : Bring up command line help screen, also done on invalid option
  171. along with a beep
  172. -lblah : Loads up blah.mzx at start up (.mzx is optional)
  173. -nomouse: Don't activate mouse
  174. -noems : Don't use EMS
  175. -ega : Use EGA mode even on higher cards
  176. -keyb2 : Use another method of ending the keyboard handler
  177. ** Transport destination search algorithim
  178. 1) Check space on other side of transport- if it is empty or can be pushed
  179. out of the way, transport to there.
  180. 2) Check starting at space on other side for a transport of opposite
  181. orientation or of anydir orientation. The first found that has empty
  182. on the other side or stuff that can be pushed out of the way on the
  183. other side is the destination.
  184. 3) No destination.
  185. ** Robot command codes-
  186. Version 1.0?-
  187. EOC=End-of-cycle (x=yes, Pre=prefix)
  188. Params-
  189. [#] Number 0 to 255
  190. [##] Number 0 to 65535
  191. [-#] Number from -128 to 127
  192. [dir] NSEW plus modifiers
  193. [ch] Character
  194. [col] Color
  195. [color/thing/param] Color + Thing + Param
  196. [color/thing] Color + Thing (no Param)
  197. [thing] Thing (no Color or Param)
  198. [str] String
  199. [!<>=] Equality
  200. [cond] Condition (often with a direction)
  201. [item] Item (AMMOS, etc)
  202. Color can only have ?'s when coupled with a thing. In that case, if
  203. a ? is present, the high bit of the thing is set. (+128) See later
  204. section for color coding.
  205. ID EOC Command
  206. --- --- -------
  207. 0 x End
  208. 1 x Die
  209. 2 x Wait [#]
  210. 3 Cycle [#]
  211. 4 x Go [dir] [#]
  212. 5 Walk [dir]
  213. 6 x Become [color/thing/param]
  214. 7 Char [ch]
  215. 8 Color [col]
  216. 9 x Gotoxy [-#] [-#]
  217. 10 Set [str] [##]
  218. 11 Inc [str] [##]
  219. 12 Dec [str] [##]
  220. 13 Set [str] [str]
  221. 14 Inc [str] [str]
  222. 15 Dec [str] [str]
  223. 16 If [str] [!<>=] [##] [str]
  224. 17 If [str] [!<>=] [str] [str]
  225. 18 If [cond] [str]
  226. 19 If not [cond] [str]
  227. 20 If any [color/thing] [str]
  228. 21 If not any [color/thing] [str]
  229. 22 If [color/thing] [dir] [str]
  230. 23 If not [color/thing] [dir] [str]
  231. 24 If [color/thing] [-#] -#] [str]
  232. 25 If [-#] [-#] [str]
  233. 26 If [dir] player [color/thing] [str]
  234. 27 Double [str]
  235. 28 Half [str]
  236. 29 Goto [str]
  237. 30 Send [str] [str]
  238. 31 x Explode [#]
  239. 32 Put [color/thing/param] [dir]
  240. 33 Give [##] [item]
  241. 34 Take [##] [item]
  242. 35 Take [##] [item] [str]
  243. 36 Endgame
  244. 37 Endlife
  245. 38 Mod [str]
  246. 39 Sam [##] [str]
  247. 40 Volume [#]
  248. 41 End mod
  249. 42 End sam
  250. 43 Play [str]
  251. 44 End play
  252. 45 Wait play [str]
  253. 46 Wait play
  254. 47 (blank line)
  255. 48 Sfx [#]
  256. 49 Play sfx [str]
  257. 50 Open [dir]
  258. 51 Lockself
  259. 52 Unlockself
  260. 53 Send [dir] [label]
  261. 54 Zap [str] [#]
  262. 55 Restore [str] [#]
  263. 56 Lockplayer
  264. 57 Unlockplayer
  265. 58 Lockplayer ns
  266. 59 Lockplayer ew
  267. 60 Lockplayer attack
  268. 61 x Move player [dir]
  269. 62 x Move player [dir] [str]
  270. 63 Put player [-#] [-#]
  271. 64 If player [dir] [str]
  272. 65 If player not [dir] [str]
  273. 66 If player [-#] [-#] [str]
  274. 67 Put player [dir]
  275. 68 x Go [dir] [str]
  276. 69 Rotatecw
  277. 70 Rotateccw
  278. 71 Switch [dir] [dir]
  279. 72 Shoot [dir]
  280. 73 Laybomb [dir]
  281. 74 Laybomb high [dir]
  282. 75 Shootmissile [dir]
  283. 76 Shootseeker [dir]
  284. 77 Spitfire [dir]
  285. 78 Lazerwall [dir] [#]
  286. 79 Put [color/thing/param] [-#] [-#]
  287. 80 x Die item
  288. 81 Send [-#] [-#] [str]
  289. 82 x Copyrobot [str]
  290. 83 x Copyrobot [-#] [-#]
  291. 84 x Copyrobot [dir]
  292. 85 Duplicate self [dir]
  293. 86 Duplicate self [-#] [-#]
  294. 87 Bulletn [ch] (In MZX 2.0, changes all bullet n pics)
  295. 88 Bullets [ch] (In MZX 2.0, changes all bullet s pics)
  296. 89 Bullete [ch] (In MZX 2.0, changes all bullet e pics)
  297. 90 Bulletw [ch] (In MZX 2.0, changes all bullet w pics)
  298. 91 Givekey [col]
  299. 92 Givekey [col] [str]
  300. 93 Takekey [col]
  301. 94 Takekey [col] [str]
  302. 95 Inc [str] random [##] [##]
  303. 96 Dec [str] random [##] [##]
  304. 97 Set [str] random [##] [##]
  305. 98 Trade [##] [item] [##] [item] [str]
  306. 99 Send [dir] player [str]
  307. 100 Put [color/thing/param] [dir] player
  308. 101 x /[str]
  309. 102 *[str]
  310. 103 [[str]
  311. 104 ?[str];[str]
  312. 105 ?[str];[str];[str]
  313. 106 :[str]
  314. 107 .[str]
  315. 108 |[str]
  316. 109 x Teleport player [str] [-#] [-#]
  317. 110 Scrollview [dir] [#]
  318. 111 Input string [str]
  319. 112 If string [str] [str]
  320. 113 If string not [str] [str]
  321. 114 If string matches [str] [str]
  322. 115 Player char [ch] (In MZX 2.0, sets the pic for all four directions)
  323. 116 %[str]
  324. 117 &[str]
  325. 118 x Move all [color/thing] [dir]
  326. 119 x Copy [-#] [-#] [-#] [-#]
  327. 120 Set edge color [col]
  328. 121 Board [dir] [str]
  329. 122 Board [dir] none
  330. 123 Char edit [ch] [#] [#] [#] [#] [#] [#] [#] [#] [#] [#] [#] [#] [#] [#]
  331. 124 Become pushable
  332. 125 Become nonpushable
  333. 126 Blind [#]
  334. 127 Firewalker [#]
  335. 128 Freezetime [#]
  336. 129 Slowtime [#]
  337. 130 Wind [#]
  338. 131 Avalance
  339. 132 x Copy [dir] [dir]
  340. 133 Become lavawalker
  341. 134 Become nonlavawalker
  342. 135 Change [color/thing] [color/thing/param]
  343. 136 Playercolor [col]
  344. 137 Bulletcolor [col] (In MZX 2.0, changes all bullet colors)
  345. 138 Missilecolor [col]
  346. 139 Message row [#]
  347. 140 Pre Rel self
  348. 141 Pre Rel player
  349. 142 Pre Rel counters
  350. 143 Change char id [##] [ch] (Not param checked or doc'd until MZX 2.0)
  351. 144 Jump mod order [#]
  352. 145 Ask [str]
  353. 146 Fillhealth
  354. 147 Change thick arrow char [dir] [ch]
  355. 148 Change thin arrow char [dir] [ch]
  356. 149 Set maxhealth [##]
  357. 150 Save player position (In MZX 2.0, saves to position 1)
  358. 151 Restore player position (In MZX 2.0, uses position 1)
  359. 152 Exchange player position (In MZX 2.0, saves to position 1)
  360. 153 Set mesg column [#]
  361. 154 Center mesg
  362. 155 Clear mesg
  363. 156 Resetview
  364. 157 Sam [##] [#]
  365. 158 Volume [str]
  366. 159 Scrollbase color [col]
  367. 160 Scrollborder color [col]
  368. 161 Scrolltitle color [col]
  369. 162 Scrollpointer color [col]
  370. 163 Scrollarrow color [col]
  371. 164 Viewport [#] [#] (Not param checked until MZX 2.0)
  372. 165 Viewport size [#] [#] (Not param checked until MZX 2.0)
  373. 166 Set mesg column [str]
  374. 167 Message row [str]
  375. Version 2.00-
  376. EOC=End-of-cycle (x=yes, Pre=prefix, ODT=Outdated and NOT SUPPORTED since it
  377. can be translated into another command, *=would be nice to seperate into
  378. multiple words, g=works different/unpredictably for a global robot) The
  379. ODT's may be replaced with new commands at a later date.
  380. Params-
  381. [##] Number 0 to 65535 OR a counter (can be converted from a color, char,
  382. or param)
  383. [-#] Number from -32768 to 32768 OR a counter (can be converted)
  384. [ch] Character OR a counter (can be converted from a color, param, or num)
  385. [col] Color OR a counter (can be converted from a char, param, or num)
  386. [dir] NSEW plus modifiers
  387. [color/thing/param] Color + Thing + Param <- OR a counter/char/color/num
  388. [str] String (often a counter)
  389. [!<>=] Equality
  390. [cond] Condition (often with a direction)
  391. [item] Item (AMMOS/AMMO, GEMS/GEM, etc)
  392. Color can only have ?'s when coupled with a thing OR used in the overlay
  393. put command. In that case, if a ? is present, the +256 bit of the color
  394. is set. See later section for color coding.
  395. A param of 256 means "any param" or p??.
  396. ID EOC Command
  397. --- --- -------
  398. 0 x End
  399. 1 x Die
  400. 2 x Wait [##]
  401. 3 Cycle [##]
  402. 4 x g Go [dir] [##]
  403. 5 g Walk [dir]
  404. 6 x g Become [color/thing/param]
  405. 7 g Char [ch]
  406. 8 g Color [col]
  407. 9 x g Gotoxy [-#] [-#]
  408. 10 Set [str] [##]
  409. 11 Inc [str] [##]
  410. 12 Dec [str] [##]
  411. 13 ODT Set [str] [str]
  412. 14 ODT Inc [str] [str]
  413. 15 ODT Dec [str] [str]
  414. 16 If [str] [!<>=] [##] [str]
  415. 17 ODT If [str] [!<>=] [str] [str]
  416. 18 g If [cond] [str]
  417. 19 g If not [cond] [str]
  418. 20 If any [color/thing/param] [str] (different)
  419. 21 If no [color/thing/param] [str] (different)
  420. 22 If [color/thing/param] [dir] [str] (different)
  421. 23 If not [color/thing/param] [dir] [str] (different)
  422. 24 If [color/thing/param] [-#] -#] [str] (different)
  423. 25 g If [-#] [-#] [str]
  424. 26 If [dir] player [color/thing/param] [str] (different)
  425. 27 Double [str]
  426. 28 Half [str]
  427. 29 Goto [str]
  428. 30 Send [str] [str]
  429. 31 x g Explode [##]
  430. 32 g Put [color/thing/param] [dir]
  431. 33 Give [##] [item]
  432. 34 Take [##] [item]
  433. 35 Take [##] [item] [str]
  434. 36 * Endgame
  435. 37 * Endlife
  436. 38 Mod [str]
  437. 39 Sam [##] [str]
  438. 40 Volume [##]
  439. 41 End mod
  440. 42 End sam
  441. 43 Play [str]
  442. 44 End play
  443. 45 Wait play [str]
  444. 46 Wait play
  445. 47 (blank line)
  446. 48 Sfx [##]
  447. 49 Play sfx [str]
  448. 50 g Open [dir]
  449. 51 * Lockself
  450. 52 * Unlockself
  451. 53 g Send [dir] [label]
  452. 54 Zap [str] [##]
  453. 55 Restore [str] [##]
  454. 56 * Lockplayer
  455. 57 * Unlockplayer
  456. 58 * Lockplayer ns
  457. 59 * Lockplayer ew
  458. 60 * Lockplayer attack
  459. 61 x Move player [dir]
  460. 62 x Move player [dir] [str]
  461. 63 Put player [-#] [-#]
  462. 64 ODT If player [dir] [str] (Becomes If [cond=touching] [dir] [str])
  463. 65 ODT If player not [dir] [str] (Becomes If not [cond=touching] [dir] [str])
  464. 66 If player [-#] [-#] [str]
  465. 67 g Put player [dir]
  466. 68 x g Try [dir] [str]
  467. 69 * g Rotatecw
  468. 70 * g Rotateccw
  469. 71 g Switch [dir] [dir]
  470. 72 g Shoot [dir]
  471. 73 * g Laybomb [dir]
  472. 74 * g Laybomb high [dir]
  473. 75 * g Shootmissile [dir]
  474. 76 * g Shootseeker [dir]
  475. 77 * g Spitfire [dir]
  476. 78 * g Lazerwall [dir] [##]
  477. 79 Put [color/thing/param] [-#] [-#]
  478. 80 x g Die item
  479. 81 Send [-#] [-#] [str]
  480. 82 x * Copyrobot [str]
  481. 83 x * Copyrobot [-#] [-#]
  482. 84 x*g Copyrobot [dir]
  483. 85 g Duplicate self [dir]
  484. 86 Duplicate self [-#] [-#]
  485. 87 Bulletn [ch] (In MZX 2.0, changes ALL bullet n pics)
  486. 88 Bullets [ch] (In MZX 2.0, changes ALL bullet s pics)
  487. 89 Bullete [ch] (In MZX 2.0, changes ALL bullet e pics)
  488. 90 Bulletw [ch] (In MZX 2.0, changes ALL bullet w pics)
  489. 91 * Givekey [col]
  490. 92 * Givekey [col] [str]
  491. 93 * Takekey [col]
  492. 94 * Takekey [col] [str]
  493. 95 Inc [str] random [##] [##]
  494. 96 Dec [str] random [##] [##]
  495. 97 Set [str] random [##] [##]
  496. 98 Trade [##] [item] [##] [item] [str]
  497. 99 Send [dir] player [str]
  498. 100 Put [color/thing/param] [dir] player
  499. 101 x /[str]
  500. 102 *[str]
  501. 103 [[str]
  502. 104 ?[str];[str]
  503. 105 ?[str];[str];[str]
  504. 106 :[str]
  505. 107 .[str]
  506. 108 |[str]
  507. 109 x Teleport player [str] [-#] [-#]
  508. 110 * Scrollview [dir] [##]
  509. 111 Input string [str]
  510. 112 If string [str] [str]
  511. 113 If string not [str] [str]
  512. 114 If string matches [str] [str]
  513. 115 Player char [ch] (In MZX 2.0, sets the pic for all four directions)
  514. 116 %[str]
  515. 117 &[str]
  516. 118 x Move all [color/thing/param] [dir] (different)
  517. 119 x Copy [-#] [-#] [-#] [-#]
  518. 120 Set edge color [col]
  519. 121 Board [dir] [str]
  520. 122 Board [dir] none
  521. 123 Char edit [ch] [##] [##] [##] [##] [##] [##] [##] [##] [##] [##] [##] [##] [##] [##]
  522. 124 g Become pushable
  523. 125 g Become nonpushable
  524. 126 Blind [##]
  525. 127 Firewalker [##]
  526. 128 * Freezetime [##]
  527. 129 * Slowtime [##]
  528. 130 Wind [##]
  529. 131 Avalance
  530. 132 x g Copy [dir] [dir]
  531. 133 g Become lavawalker
  532. 134 g Become nonlavawalker
  533. 135 Change [color/thing/param] [color/thing/param] (Diff. from ver 1.0?)
  534. 136 * Playercolor [col]
  535. 137 * Bulletcolor [col] (In MZX 2.0, changes all bullet colors)
  536. 138 * Missilecolor [col]
  537. 139 Message row [##]
  538. 140 Pre Rel self (In MZX 2.0, unpredictable/useless for use w/global robot)
  539. 141 Pre Rel player
  540. 142 Pre Rel counters
  541. 143 Change char id [##] [ch] (Not param checked or doc'd until MZX 2.0)
  542. 144 Jump mod order [##]
  543. 145 Ask [str]
  544. 146 * Fillhealth
  545. 147 Change thick arrow char [dir] [ch]
  546. 148 Change thin arrow char [dir] [ch]
  547. 149 * Set maxhealth [##]
  548. 150 Save player position (In MZX 2.0, saves to position 1)
  549. 151 Restore player position (In MZX 2.0, uses position 1)
  550. 152 Exchange player position (In MZX 2.0, uses position 1)
  551. 153 Set mesg column [##]
  552. 154 Center mesg
  553. 155 Clear mesg
  554. 156 * Resetview
  555. 157 Sam [##] [##]
  556. 158 ODT Volume [str]
  557. 159 * Scrollbase color [col]
  558. 160 * Scrollcorner color [col] (Diff. from MZX 1.03)
  559. 161 * Scrolltitle color [col]
  560. 162 * Scrollpointer color [col]
  561. 163 * Scrollarrow color [col]
  562. 164 Viewport [##] [##] (Not param checked until MZX 2.0)
  563. 165 Viewport size [##] [##] (Not param checked until MZX 2.0)
  564. 166 ODT Set mesg column [str]
  565. 167 ODT Message row [str]
  566. 168 Save player position [##]
  567. 169 Restore player position [##]
  568. 170 Exchange player position [##]
  569. 171 Restore player position [##] duplicate self
  570. 172 Exchange player position [##] duplicate self
  571. 173 Player bulletn [ch]
  572. 174 Player bullets [ch]
  573. 175 Player bullete [ch]
  574. 176 Player bulletw [ch]
  575. 177 Neutral bulletn [ch]
  576. 178 Neutral bullets [ch]
  577. 179 Neutral bullete [ch]
  578. 180 Neutral bulletw [ch]
  579. 181 Enemy bulletn [ch]
  580. 182 Enemy bullets [ch]
  581. 183 Enemy bullete [ch]
  582. 184 Enemy bulletw [ch]
  583. 185 * Player bulletcolor [col]
  584. 186 * Neutral bulletcolor [col]
  585. 187 * Enemy bulletcolor [col]
  586. 188
  587. 189
  588. 190
  589. 191
  590. 192
  591. 193 Pre Rel self first (Unpredictable/useless for use w/global robot)
  592. 194 Pre Rel self last (Unpredictable/useless for use w/global robot)
  593. 195 Pre Rel player first
  594. 196 Pre Rel player last
  595. 197 Pre Rel counters first
  596. 198 Pre Rel counters last
  597. 199 Mod fade out
  598. 200 Mod fade in [str]
  599. 201 x Copy block [-#] [-#] [##] [##] [-#] [-#]
  600. 202 Clip input
  601. 203 g Push [dir]
  602. 204 Scroll char [ch] [dir]
  603. 205 Flip char [ch] [dir]
  604. 206 Copy char [ch] [ch]
  605. 207
  606. 208
  607. 209
  608. 210 Change sfx [##] [str]
  609. 211 Color intensity [##] percent
  610. 212 Color intensity [##] [##] percent
  611. 213 x Color fade out
  612. 214 x Color fade in
  613. 215 Set color [##] [##] [##] [##]
  614. 216 Load char set [str]
  615. 217 Multiply [str] [##]
  616. 218 Divide [str] [##]
  617. 219 Modulo [str] [##]
  618. 220 Player char [dir] [ch]
  619. 221
  620. 222 Load palette [str]
  621. 223
  622. 224 Mod fade [##] [##] (target/speed)
  623. 225 * Scrollview [-#] [-#]
  624. 226 x Swap world [str]
  625. 227 * If alignedrobot [str] [str]
  626. 228
  627. 229 * Lockscroll
  628. 230 * Unlockscroll
  629. 231 If first string [str] [str]
  630. 232 Persistent go [str] (waits until it can move then moves)
  631. 233 Wait mod fade
  632. 234
  633. 235 Enable saving
  634. 236 Disable saving
  635. 237 * Enable sensoronly saving
  636. 238 Status counter [##] [str]
  637. 239 Overlay on
  638. 240 Overlay static
  639. 241 Overlay transparent
  640. 242 Put [col] [ch] overlay [-#] [-#]
  641. 243 x Copy overlay block [-#] [-#] [##] [##] [-#] [-#]
  642. 244
  643. 245 Change overlay [col] [ch] [col] [ch]
  644. 246 Change overlay [col] [col]
  645. 247 Write overlay [col] [str] [-#] [-#]
  646. 248
  647. 249 INTERNAL USE (temporary use for box messages)
  648. 250
  649. 251 Loop start
  650. 252 Loop [##]
  651. 253 Abort loop
  652. 254 Disable mesg edge
  653. 255 Enable mesg edge
  654. ** Color words-
  655. 00 Black
  656. 01 Dark Blue
  657. 02 Dark Green
  658. 03 Dark Cyan
  659. 04 Dark Red
  660. 05 Dark Purple
  661. 06 Brown
  662. 07 Light Gray
  663. 08 Dark Gray
  664. 09 Blue
  665. 10 Green
  666. 11 Cyan
  667. 12 Red
  668. 13 Purple
  669. 14 Yellow
  670. 15 White
  671. ** Conditions-
  672. Walking [dir]
  673. Swimming
  674. Firewalking
  675. Touching [dir]
  676. Blocked [dir]
  677. Aligned
  678. Alignedns
  679. Alignedew
  680. Lastshot [dir]
  681. Lasttouch [dir]
  682. Rightpressed
  683. Leftpressed
  684. Uppressed
  685. Downpressed
  686. Spacepressed
  687. Delpressed
  688. Musicon
  689. Pcsfxon
  690. ** Auto labels-
  691. THUD, TOUCH, BOMBED, KEYA-Z, INVINCO, PUSHED, EDGE, ENEMYSHOT, PLAYERSHOT,
  692. NEUTRALSHOT, SHOT, PLAYERHIT, SENSORON, SENSORTHUD.
  693. MZX 2.0- KEY1-9, SPITFIRE, JUSTLOADED, JUSTENTERED, SENSORPUSHED, LAZER,
  694. GOOPTOUCHED, PLAYERHURT.
  695. ** Auto counters- (* = Robot specific)
  696. GEMS, AMMO, LOBOMBS, HIBOMBS, COINS, LIVES, HEALTH, TIME, INVINCO, INPUT,
  697. INPUTSIZE, KEY, BULLETTYPE*, PLAYERDIST*, HORIZPLD*, VERTPLD*.
  698. MZX 2.0- SCORE, THISX*, THISY*, TIMERESET, LOOPCOUNT*, PLAYERLASTDIR,
  699. PLAYERFACEDIR.
  700. Special- XPOS, YPOS (for REL COUNTERS) These are still global.
  701. ** Directions-
  702. IDLE (0)
  703. NORTH, N, UP (1)
  704. SOUTH, S, DOWN (2)
  705. EAST, E, RIGHT (3)
  706. WEST, W, LEFT (4)
  707. RANDNS (5)
  708. RANDEW (6)
  709. RANDNE (7)
  710. RANDNB (8)
  711. SEEK (9)
  712. RANDANY (10)
  713. BENEATH, UNDER (11)
  714. ANYDIR (12)
  715. FLOW (13)
  716. NODIR (14)
  717. RANDB (15)
  718. RANDP (+16)
  719. CW (+32)
  720. OPP (+64)
  721. RANDNOT (+128)
  722. ** Equalitys-
  723. = or == (equal to)
  724. != or <> or >< (not equal to)
  725. > (greater than)
  726. < (less than)
  727. >= or => (greater than or equal to)
  728. <= or =< (less than or equal to)
  729. ** Color coding-
  730. W/o ?-
  731. Low nybble foreground (0-15)
  732. High nybble background (0-15)
  733. With ?-
  734. Check to see if bit for ? is set (In 1.0? robots, this is the high bit of
  735. the following thing code. Otherwise, it is +256.) If not, color is same as
  736. above. Otherwise- 0 through 15 stand for a specific foreground color with
  737. unknown background color. 16 through 31 stand for a specific background
  738. color (the number minus 16) with unknown foreground color. 32 stands for
  739. unknown background and unknown foreground both.
  740. ** Sound effects numbers and codings- (version 1.0?) (See v2.00 editor for
  741. changes to game over and death sfx)
  742. Num String Is
  743. --- ---------------------------------------------------- ------------------
  744. 0 t5c-gec-gec Gem
  745. 1 t5c-gec-gec Magic Gem
  746. 2 tcge-zcge Health
  747. 3 t-c+c+c-g-g-g Ammo
  748. 4 t6a#a#zx Coin
  749. 5 t-cegeg+c-g+cecegeg+c Life
  750. 6 t-cc#dd#e Lo Bomb
  751. 7 tcc#dd#e Hi Bomb
  752. 8 t4gec-g+ec-ge+c-gec Key
  753. 9 t-gc#-a#a Full Keys
  754. 10 tceg+c-eg+ce-g+ceg Unlock
  755. 11 s1a#z+a#-a#x Can't Unlock
  756. 12 t-a-a+e-e+c-c Invis. Wall
  757. 13 zax Forest
  758. 14 t0a#+a#-a#b+b-b Gate Locked
  759. 15 t0a+a-a+a-a Opening Gate
  760. 16 t-g+g-g+g+g-g+g-g-g+g-g-tg+g Invinco Start
  761. 17 sc-cqxsg-g+a#-a#xx+g-g+a#-a# Invinco Beat
  762. 18 sc-cqxsg-g+f-f+d#-d#+c-ca#-a#2c-c Invinco End
  763. 19 t0g+g-gd#+d#-d# Door locked
  764. 20 t0g+gd#+d# Door opening
  765. 21 tc-zgd#c-gd#c Hurt
  766. 22 ta-a-a+a-a-a AUGH!
  767. 23 t+c-gd#cgd#c-g+d#c-g+d#c-gd#+c-gd#cgd#c-g+d#c-gd#+c Death
  768. -gd#cgd#c-g+d#c-gc-gd#g+c
  769. 24 sc-cqxsa#-a#++c-c+q.xsd#-d#qxsa#-a#++c-cq.xs+c-cqxs Game over
  770. a#-a#++c-c+q.xsd#-d#qxs+f-f+c-cq.xs
  771. 25 t0c+c-c+c-c Gate closing
  772. 26 t1d#x Push
  773. 27 t2c+c+c2d#+d#+d#2g+g+g3cd#g Transport
  774. 28 z+c-c Shoot
  775. 29 t1a+a+a Break
  776. 30 t-af#-f#a Out of ammo
  777. 31 t+f# Ricochet
  778. 32 s-d-d-d Out of bombs
  779. 33 tc-aec-a Place bomb (lo)
  780. 34 t+c-aec-a Place bomb (hi)
  781. 35 t+g-ege-ege Switch bomb type
  782. 36 t1c+c0d#+d#-g+g-c# Explosion
  783. 37 t2cg+e+c2c#g#+f+c#2da+f#+d2d#a#+g+d# Entrance
  784. 38 tcge+c-g+ecge+c-g+ec Pouch
  785. 39 zcd#gd#cd#gd#cd#gd#cd#gd#cfg#fcfg#fcfg#fcfg#fcga#gc Ring/potion
  786. ga#gcga#gcga#gs+c
  787. 40 z-a-a-aa-aa Empty chest
  788. 41 t1c+c-c#+c#-d+d-d#+d#-e+e-ec Chest
  789. 42 tc-gd#c-zd#gd#c Out of time
  790. 43 zc-d#g-cd# Fire ouch
  791. 44 tcd#g+cd#g Stolen gem
  792. 45 z1d#+d#+d# Enemy HP down
  793. 46 z0ca#f+d#cf# Dragon fire
  794. 47 tcg+c-eda+d-f#eb+e-g# Scroll/sign
  795. 48 See editor in v2.00 Goop touch (v2.0+)
  796. ** Codes for variables, etc-
  797. Overlay off 0
  798. Overlay on 1
  799. Overlay static 2
  800. Overlay transparent 3
  801. Explosion leave space 0
  802. Explosion leave ash 1
  803. Explosion leave fire 2
  804. Can save 0
  805. Can't save 1
  806. Can save only on a sensor 2
  807. Forest becomes empty 0
  808. Forest becomes floor 1
  809. Fire burns limited 0
  810. Fire burns forever 1
  811. Code for no board 255
  812. Code for no endgame board 128 (255 in MZX v2.0+)
  813. Code for death to restart 128 (255 in MZX v2.0+)
  814. Code for death to be same pos 129 (254 in MZX v2.0+)
  815. Player bullet 0
  816. Neutral bullet 1
  817. Enemy bullet 2
  818. Directions SEE ABOVE
  819. Colors SEE ABOVE
  820. Simple direction, N 0
  821. Simple direction, S 1
  822. Simple direction, E 2
  823. Simple direction, W 3
  824. Simple direction -> Complex Add 1
  825. Complex direction -> Simple Subtract 1
  826. Horizontal 0
  827. Vertical 1
  828. No key (key array) 127
  829. No time limit 0
  830. No protection 0
  831. Protection from saving 1
  832. Protection from editing 2
  833. Protection from everything 3
  834. Size of full pathname holders 129
  835. Other variable codes are not important or are only internal and will not
  836. carry over to MZX 2.0.