Advertisement
NovaYoshi

scripting system syntax

Mar 28th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. http://www.cavestory.org/guides/basicmodding/guide/tsc.txt
  2.  
  3. Misc:
  4. [Label]: - marks a label
  5. `end - ends the script
  6. `p - waits for a button, then clears the box and starts the next page
  7. `goto Label - goto label
  8. `call Label - call a label, saving the current spot
  9. `return - return to the saved spot
  10. `delay FRAMES - delay a given number of frames
  11. `choose CHOICE_SET - display choices, from a preset list of choices elsewhere
  12. `scene SCENE_NUM - switch to a scene from a preset list of scenes elsewhere
  13. (specifying the characters on display, and the location?)
  14.  
  15. Conditionals:
  16. ?on FLAG - is flag on?
  17. ?off FLAG - is flag off?
  18. ?item ITEM - does the player have item ITEM?
  19. ?notitem ITEM - does the player not have item ITEM?
  20. ?choice NUM - did the player choose choice N?
  21. Conditionals affect the next `goto or `call, and can be chained
  22.  
  23. Flags:
  24. `on FLAG - turn flag on
  25. `off FLAG - turn flag off
  26. `toggle FLAG - toggle flag
  27.  
  28. Speaker switches:
  29. <SLOT PERSON> - switch to speech bubble with given character slot, and given character
  30. >SLOT PERSON< - switch to thought bubble with given character slot, and given character
  31. <N> - switch to narrator
  32.  
  33. ASM stuff:
  34. `poke Address, Value - write value to address
  35. `asm - start running opcodes until `endasm is reached
  36. Poke is used for changing level blocks, changing health, powerups, etc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement