-
Notifications
You must be signed in to change notification settings - Fork 0
# Commands
Scriptor offers some preprocessor commands which start with a # character.
The command for Self-Registering Scripts. Please see the documentation there.
Include another script into this one. Includes are recursive, so your included script may contain another include and so on.
You have to specify the full path name (in the SCRIPTOR_ROOT_FOLDER) of a script.
Here's an example: Imagine your included files structure is like this:
scripts/
main/
monsters/
orcs/
orc_died.scriptor
To include the orc_died into another script, you have to write
#include monsters/orcs/orc_diedThis simple command has no arguments and will tell scriptor to measure the running time of a script.
It's always good to know, how much time your scripts need, especially when there's lots of action going on.
The #time command will print a debug-log-line to the console when a script is finished, that looks like this:
945: D game/cards/dice/dice_card_play finished with result 'undefined' in 214µs
This is printed only, when
-
#timehas been set in the script orDEBUG_LOG_SCRIPTORis set to true in theLogger_Configuration - The game must be in
CONFIGURATION_DEVto print the line (i.e. the "Default" configuration in GameMaker)
Back to Repo ● Wiki Home
Copyright © coldrock.games
- Home
- Scriptor Contents
- Scriptor Configuration
- Notepad⁺⁺ Integration
- Create a Script
- $ Variables
- Call a GML Function
- Scriptor global functions
- #-Commands
- The Scriptor Broker
- Broker Events
- Self-Registering Scripts
- Registering Broker Events
- Scriptor Broker File Format
- Extending Scriptor
- var
- new
- goto
- gosub and return
- return (without gosub)
- call
- reset
- Loops
- Conditionals