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