ZoriaRPG

ZScript and ZC General Timing

Jun 18th, 2017
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=======================================================
  2. //--- Instruction Processing Order and General Timing ---
  3. =========================================================
  4.  
  5. 1. Instructions in Global script Init (if starting a new game)
  6. 2. Instructions in Global Script OnContinue (is resuming a game)
  7. 3. Instructions immediately inside the run() function of a global active script.
  8. 4. Instructions in the global active script's infinite loop prior to Waitdraw,
  9. if (5) does not exist, or on the first frame of the game.
  10. 5. Instructions from an ffc script positioned after (an illegal)
  11. Waitdraw() instruction in that script from the previous frame.
  12. Note: Requires being on at least the second frame of a game session.
  13. 6. Instructions in the global active script prior to Waitdraw().
  14. 6A. Enqueued Script Drawing from the global active script, (and from ffcs on the previous frame).
  15. 7. Instructions in an ffc script, other than (5), excluding draw commands.
  16. Note: Instructions are handled on a per-ffc basis, in ID order; so a script on ffc ID 1 runs,
  17. then a script on ffc ID 2, up to ffc ID 32. If an ffc has no script, it is skipped.
  18. 8. Screen Scrolling (2.50.2, or later)
  19. 9. Instructions from item scripts.
  20. 10. Waitdraw() in a global active script.
  21. 11. Engine writing to Link->Dir and Link->Tile.
  22. 12. Instructions in the global active script, called after Waitdraw()
  23. 12(b). Screen Scrolling ( 2.50.0, and 2.50.1 )
  24. 13. FFCs enqueue draws for the next frame.
  25. Note: Instructions are handled on a per-ffc basis, in ID order; so a script on ffc ID 1 runs,
  26. then a script on ffc ID 2, up to ffc ID 32. If an ffc has no script, it is skipped.
  27. 14. Instructions in an OnExit script, if the game is exiting.
  28. 15. Return to (5).
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×