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:Muler"

From Roll20 Wiki

Jump to: navigation, search
m (transclude)
m
Line 2: Line 2:
 
=Muler=</noinclude>
 
=Muler=</noinclude>
 
'''{{fpl|10005710/ Muler}}''' provides a way to store values on a [[character sheet]] in an ability (called a Mule). Syntax tokens can be used in any API command line to load a mule, retrieve a variable, and/or set a variable. Since the variable is stored on a character sheet, it persists between rolls, game sessions, or even campaigns.
 
'''{{fpl|10005710/ Muler}}''' provides a way to store values on a [[character sheet]] in an ability (called a Mule). Syntax tokens can be used in any API command line to load a mule, retrieve a variable, and/or set a variable. Since the variable is stored on a character sheet, it persists between rolls, game sessions, or even campaigns.
 
+
* {{fpl|10292476/ Muler (thread 2)}}
 
<noinclude>__TOC__</noinclude>
 
<noinclude>__TOC__</noinclude>
 
<noinclude>==</noinclude>'''Syntax'''<noinclude>==</noinclude>
 
<noinclude>==</noinclude>'''Syntax'''<noinclude>==</noinclude>

Revision as of 10:09, 14 February 2022

Main Page: Meta-Toolbox

Muler

Muler(Forum) provides a way to store values on a character sheet in an ability (called a Mule). Syntax tokens can be used in any API command line to load a mule, retrieve a variable, and/or set a variable. Since the variable is stored on a character sheet, it persists between rolls, game sessions, or even campaigns.

Contents

Syntax

Drop these syntax tokens into any API command to trigger the associated behavior. They will be filtered out (or replaced with the appropriate data) by the script.

{& mule ModTable}                                => loads the first ModTable mule it finds (from characters you control)
{& mule TableMule.ModTable}                      => loads the ModTable mule from the TableMule character
{& mule Cake Izzard.OrDeath}                     => loads the Cake mule (first found) as well as Izzard's OrDeath mule
get.4                                            => if mules are loaded, attempts to retrieve the variable "4"
get.ModTable.4                                   => gets the variable "4" from the ModTable mule (ModTable must be loaded)
get.TableMule.ModTable.4                         => same, but specifically from the TableMule character
set.Izzard.Cake.Rush = We're all outta cake/set  => sets the "Rush" variable in Izzard's Cake mule to "We're all outta cake"
                                                    note the ending /set to close the variable's value

Example

!somescript --stuff|get.thestuff {& mule ModMule} --tacos
!somescript --mod|get.initMod {& mule Viper.ModMule}

Meta-Toolbox Examples

Examples using one or more Meta-Toolbox APIs

Other APIs