Advertisement
ZoriaRPG

Debug Cheat Shell DOCS v1.13

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