SHARE
TWEET

ZShell Docs (v1.14.2)

ZoriaRPG Nov 3rd, 2018 (edited) 123 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. //! ZScript: ZC Shell for Quest Debug and CHeat Commands
  3. //! Docs for v1.14.2
  4.  
  5. /////////////
  6. /// USING ///
  7. /////////////
  8.  
  9. Press F7 to open the shell.
  10. Type an instruction.
  11. Press the DOWN ARROW KEy to ENQUEUE the instruction, or;
  12.     Press ENTER to execute the instruction.
  13. If you have enqueued instructions, press ENTER either at the
  14.     end of an instruction, or on an empty line to EXECUTE
  15.     all of your enqueued instructions.
  16.    
  17. //////////////
  18. /// Traces ///
  19. //////////////
  20.  
  21. You may print a line of text, or a literal value directly
  22. to allegro.log using the following syntax:
  23.  
  24. %s
  25.     This traces all characters that follow it, to
  26.     allegro.log as a string.
  27.     It eats all leading spaces and characters,
  28.     so all of these are identical:
  29.         %sPRINTME
  30.         %s:PRINTME
  31.         %s PRINTME
  32.         %s: PRINTME
  33.        
  34.     The output of this will be:
  35.         LOG: PRINTME
  36.        
  37. %d
  38.     This traces a literal value (integer or float)
  39.     to allegro.log.
  40.     It eats all leading spaces and characters,
  41.     so all of these are identical:
  42.         %100.500
  43.         %s:100.500
  44.         %s 100.500
  45.         %s: 100.500
  46.        
  47.     The output of this will be:
  48.         LOG: 100.500
  49.        
  50. Traces cannot be enqueued at this time.
  51.    
  52. ////////////////////////
  53. /// Sequence Scripts ///
  54. ////////////////////////
  55.  
  56. You may save a sequence of instructions that you have entered
  57. into the shell into one of TEN SEQUENCE SLOTS.
  58.  
  59. To do this, after entering a series of commands, with a BLANK LINE,
  60. press the CONTROL KEY and one of the main number keys (above the home row,
  61. not on the number pad), 1 through 0.
  62.  
  63. The number key that you press corresponds to the SEQUENCE slot that your
  64. sequence script is using.
  65.  
  66. If you save the quest, your sequence script will save with it.
  67.  
  68. To run a sequence script, open the shell, and do not add any INSTRUCTIONS ON THE STACK:
  69. Type the command: RunSequence,id
  70.  
  71.     [example--
  72.  
  73.         RunSequence,1
  74.        
  75.     --end example]
  76.    
  77.     This will immediate;y run Sequence Script 1.
  78.    
  79.    
  80.  
  81.  
  82.  
  83. //////////////////////////////
  84. /// Supported Instructions ///
  85. //////////////////////////////
  86.  
  87. Link's Position
  88. w    : Warp Link to a specific dmap and screen
  89. po   : Reposition Link on the screen.
  90. mx   : Move link by +/-n pixels on the X axis.
  91. my   : Move link by +/-n pixels on the Y axis.
  92.  
  93. //Counters
  94. h    : Set Link's HP to a specific value.
  95. m    : Set Link's Magic to a specific value.
  96. a    : Set the current number of Arrows
  97. b    : Set the current number of Bombs
  98. r    : Set the current number of Rupees
  99. mb   : Set the current number of Max Bombs
  100. ma   : Set the current number of Max Arrows
  101. mr   : Set the current number of Max Rupees
  102. k    : Set the current number of Keys
  103. co   : Set an arbitrary counter to a specific value.
  104. rh   : Refill Link's HP to Max.
  105. rm   : Refill Link's HP to Max.
  106. rc   : Refill a specific counter to Max.
  107. mh   : Set Link's Max HP.
  108. mm   : Set Link's Max MP
  109. mc   : Set the maximum value of a specific counter.
  110.  
  111. //Items
  112. lk   : Set the current number of Level Keys for a specific level ID.
  113. lm   : Set if the MAP item for a specific Level is in inventory.
  114. lc   : Set if the COMPASS item for a specific Level is in inventory.
  115. lt   : Set if the TRIFORCE item for a specific Level is in inventory.
  116. lb   : Set if the BOSS KEy item for a specific Level is in inventory.
  117. itm  : Set the state of a specific item in Link's inventory.
  118.  
  119. //Link's States
  120. hb   : Set if Link uses a full tile hitbox. (hitbox)
  121. d    : Set if Link can move diagonally.
  122. inv  : Set Link's Invisible state.
  123.  
  124. //Create Objects
  125. crn  : Create an npc.
  126. cri  : Create an item.
  127.  
  128. //FFC Values
  129. fd   : Set the Data value of one ffc.
  130. fs   : Set the Script value of one ffc.
  131. fc   : Set the CSet of an ffc.
  132. fx   : Set the X component of an ffc.
  133. fy   : Set the Y component of an ffc.
  134. fvx  : Set the X Velocity Component of an ffc.
  135. fvy  : Set the Y Velocity Component of an ffc.
  136. fax  : Set the X Accel. Component of an ffc.
  137. fay  : Set the XYAccel. Component of an ffc.
  138. ffl  : Set an ffc flag state true or false.
  139. fth  : Set the TileHeight of an ffc.
  140. ftw  : Set the TileWidth of an ffc.
  141. feh  : Set the EffectHeight of an ffc.
  142. few  : Set the EffectWidth of an ffc.
  143. fl   : Link an ffc to another, or clear a link.
  144. fm   : Write to the Misc[] values of an ffc.
  145.  
  146. //Audio
  147. pls  : Play a sound effect.
  148. plm  : Play a MIDI.
  149. dmm  : Set the MIDI for a specific DMap to a desired ID.
  150.  
  151. //Visual
  152. pal  : Change a DMap palette.
  153. mon  : Set a monochrome graphical state.
  154. hu   : Set a specific hue effect.
  155. t    : Set a specific tint effect.
  156. cl   : Clear hue/tint.
  157.  
  158. //Misc.
  159. run  : Attempt to run an ffc script.
  160. save : Save the game.
  161.  
  162. //////////////////////
  163. /// LITERAL VALUES ///
  164. //////////////////////
  165. Use these as srg values, if desired, instead of literals:
  166. lx   : The current X-coordinate for Link.
  167. ly   : The current Y-coordinate for Link.
  168.  
  169.  
  170. ////////////////////////
  171. /// Syntax and Usage ///
  172. ////////////////////////
  173.  
  174. //Link's Position
  175. w,1,2       : w,0,32 : Warps Link to DMap 0, screen 32.
  176. po,1,2      : po,60,12 : Set Link's X to 60, and his Y to 12
  177. mx,1        : mx,12 : moves Link +12 pixels on his X coordinate
  178. mx,-1       : mx,-12 : moves Link -12 pixels on his X coordinate
  179. my,1        : my,12 : moves Link +12 pixels on his Y coordinate
  180. my,-1       : my,-12 : moves Link -12 pixels on his Y coordinate
  181.  
  182. //Counters
  183. h           : h,amount
  184. h           : h,amount
  185. m           : m,amount
  186. a           : a,amount
  187. b           : b,amount
  188. r           : r,amount
  189. mb          : mb,amount
  190. ma          : mb,amount
  191. mr          : mr,amount
  192. k           : k,amount
  193. co          : co,counter_id,amount
  194. rh          : Refill Link's HP to full.
  195. rm          : Refill Link's Magic to full.
  196. rc,1        : rc,2 : Refill Counter CR_BOMBS to full.
  197. mh,1        : mh,64 : Set Link's HP to 64
  198. mm,1        : mm,256 : Set Link's Max Magic to 256
  199. mc,1,2      : mc,2,16 : Set the Bombs counter max to 16.
  200.  
  201. //Items
  202. lk          : lk,level_id,,amount
  203. lm          : lm,level_id,true|false
  204. lc          : lc,level_id,true|false
  205. lt          : lt,level_id,true|false
  206. lb          : lb,level_id,tru|false
  207. itm,1,true  : itm,6,true : Set the white sword true in inventory.
  208. itm,1,false : itm,6,true : Set the white sword falsein inventory.
  209.  
  210. //Link's States
  211. hb          : hb,true|false
  212. d           : d,true|false
  213. inv,true    : Set Link's Invincibility state true.
  214. inv,false   : Set Link's Invincibility state false.
  215.  
  216. //Create Objects
  217. cri,1,2,3   : cri,id,x,y : cri,id,lx,ly : Create an item (id) at x,y
  218. crn,1,2,3   : cri,id,x,y : Create n npc (id) at x,y
  219.  
  220. //FFC Values
  221. fc          : fc,ffc_id,cset
  222. fx          : fx,ffc_id,x
  223. fy          : fy,ffc_id,y
  224. fvx         : fvx,ffc_id,vx
  225. fvy         : fvy,ffc_id,vy
  226. fax         : fax,ffc_id,ax
  227. fay         : fay,ffc_id,ay
  228. ffl         : fl,ffc_id,flag_index,(true|false)
  229. fth         : fth,ffc_id,tileheight
  230. ftw         : ftw,ffc_id,tilewidth
  231. feh         : feh,ffc_id,effectheight
  232. few         : few,ffc_id,effecteidth
  233. fl          : fl,ffc_id,link_id
  234. fm          : fm,ffc_id,misc_index,value
  235. fd          : fd,ffc_id,combo_id
  236. fs          : fsscript_id
  237.  
  238. //Audio
  239. pls         : pls,sound_id
  240. plm         : plm,midi_id
  241. dmm         : dmm,dmap_id,midi_id
  242.  
  243. //Visual
  244. hu          : hu,red,green,blue
  245. t           : t,red,green,blue [,distributed (true|false)]
  246. pal         : pal,-1,6 : Sets the current DMap palette to 6.
  247.             : pal,3,6 : Sets the palette for DMap ID 3 to Palette ID 6.
  248. mon         : mon,5 : Sets monochrome (violet hue) mode on. (0 to disable).
  249. cl          : cl
  250.  
  251. //Misc
  252. run         : run,script_id
  253. save        : Save the game.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top