18.104.22.168 - CYOA / THEME / ADVANCED FILTER COMMANDS
28 FEBRUARY - LORD SHARPE Updates in 22.214.171.124
// NEW CHOOSE YOUR ADVENTURE FUNCTIONALITY //
You enable CYOA mode per room. Which gives 1-4 choice buttons.
room is cyoa
You can turn on / off choices using
- cyoa 1 is on / off
- cyoa 2 is on / off
- cyoa 3 is on / off
- cyoa 4 is on / off
To set the text of a choice;
- 1 is ...
- 2 is ...
- 3 is ...
- 4 is ...
When you set the text it will default the command to the same as you wrote for the text, for example take dirt, would run the command take dirt.
To manually set what command a choice calls;
- 1 does ...
- 2 does ...
- 3 does ...
- 4 does ...
They can be used to call single commands OR run scripts using;
- do ...
// NEW ON-START SCRIPT //
If script on-start is found it will be run AFTER the level has loaded. Create this script using the in-built editor;
// THEME EDITING / MANIPULATION //
All major theme elements can be edited now. To list them use;
You can then edit / delete any theme element listed: i.e.
// ADVANCED SCRIPTING //
Added new commands to fetch / filter data.
- fetchlocal ____
- fetchglobal ____
- fetchprivate _____
The fetch commands grab all data matching your query preparing it for filtering.
Use the filter commands to prepare data for filtering.
- filterlocal ____
- filterglobal ____
- filterprivate ____
Once you have the filtered data you can then use the strip command to keep what you want, please note the aim is to finish up with a single piece of data. You will get a warning if you have no results OR too results are too broad.
- keep ____
- fetchlocal box
- filterlocal box
- keep -islocked
This will return the key ie. '0|0|0|obj-box-islocked' and the value ie 'y'
You can then access this data with the following %special%.
- %SYS[FILTERKEY] for the kept key
- %SYS[FILTERVALUE] for the kept value
Get ADLENGINE - Roleplay / Text Adventure Engine
Leave a comment
Log in with itch.io to leave a comment.