Global Variables

Last updated: Mar 09th, 2017

Introductions

Allows people to hold data or A.R.S Rules inside a variable and than later call it or manipulate the data inside to suit your needs.


There are a few different D.S.S Methods to help manipulate and react to Globals.

Creating Variables

Creating a variable is simple! Let's look below:
.setvar a Hello {/user}!

Deleting Variables

When deleting a variable, make sure to remove it from all rules.
.delvar a

Listing Variables

.viewglobal

Wipe Variables

.wipeglobal

Creating Variables

.auto .create={init}
/* This command will create a global var named: YourDiscordID */
You have created a new variable!
{+{rawid}}:= 0

Deleting Variables

Not Yet Implemented

Editing Variables

There is only one way to edit a variable (for now) and that's incrementing it.
Adding +1 (soon it will be more advanced) {rawid} is the users Discord ID in this example we're incrementing the value by 1. Like a warning system
.auto .edit={init}
You have been warned!
{.{rawid}++} /* Only works if the variable is an integer */

Using Variables

You can add the key to any rule using {.Varname}
.auto .view={init}
Var value is: {.{rawid}}