scripting
scripting
------------------------------------
Collection: https://github.com/Freakler/CheatDeviceRemastered-UserScripts
These script text files follow Sanny Builder 3's syntax and require opcodes for
each instruction. Cleo IF THEN END syntax is NOT supported!
Therefore it is recommended to enable "Write Opcodes" under "Tools > Options >
General" if you plan to copy paste from decompiled SCMs.
Stories specific:
https://docs.sannybuilder.com/scm-documentation/lcs
https://docs.sannybuilder.com/scm-documentation/vcs
Tutorial
--------
Good to know
------------
You can add metadata to your Script txt by using the keywords "Author:",
"Version:", "Category:", "Date:", "Description:" which will then show in the Legend
box.
You can call / jump to labels defined in the MAIN section too!
A script should always end with a return or terminate_script opcode or the game
might freeze.
The script is limited to 8192 translated Bytes with 256 possible Labels currently.
You can use up to 16 custom texts per script currently. If the GXT identifier
cannot be found the text will be displayed instead.
Starting a new script if another is still running WILL result in undefined
behaviour (probably crash) for now!!!!
--> Scripts should be created with a disable key to not run forever! See VCS
examples!
- Using defined Model names like Sanny does. Insert the actual IDE number
instead!
024C: request_model #CARDBOARDBOX -> NOT SUPPORTED
024C: request_model 547 -> OKAY!