Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:ZeroFrame"

From Roll20 Wiki

Jump to: navigation, search
Line 20: Line 20:
 
{& escape ...}        =>    characters to be removed only as the message leaves the metascript loop
 
{& escape ...}        =>    characters to be removed only as the message leaves the metascript loop
 
{& global ([term]def)} =>    term definition for text replacement (every loop pass)</pre>
 
{& global ([term]def)} =>    term definition for text replacement (every loop pass)</pre>
 +
 +
==Understanding MetaScripts and the ZeroFrame Loop==
  
 
<noinclude>
 
<noinclude>

Revision as of 12:37, 7 April 2023

Main Page: Meta-Toolbox

Contents

ZeroFrame

ZeroFrame(Forum) provides a way to organize, order, and loop over the other meta-scripts in the Meta-Toolbox. It can unpack inline rolls right in the command line, and lets you defer things like inline roll detection or the syntax token (the structures that would trigger the other meta-scripts) by escaping the text with a backslash(/).

Syntax:

!0 config              =>    displays the ZeroFrame configuration (showing script priorities and handles)
!0 sm|20               =>    sets the priority of SelectManager to 20
!0 logic|75 set|80     =>    multiple meta-scripts can be set in one statement (APILogic to 75, Muler Setting to 80)
{& 0 get sm }          =>    an inline tag for calls to another script changing the default loop order
                             for this call (only), the order will be Muler Get, SelectManager, then the other scripts in default order
.value                 =>    inline token to reduce an inline roll to its value (i.e., [[1d10]].value or $[[0]].value )
{& log}                =>    inline tag to output the ZeroFrame log
{& flat}               =>    send the resulting message to the chat (no further API interaction), only detected after the loop finishes
{& stop}               =>    stops further processing (no chat, no API); only detected after the loop finishes
{& escape ...}         =>    characters to be removed only as the message leaves the metascript loop
{& global ([term]def)} =>    term definition for text replacement (every loop pass)

Understanding MetaScripts and the ZeroFrame Loop

Meta-Toolbox Examples

Examples using one or more Meta-Toolbox APIs

Other APIs