Campaign Creation Documentation

Use this page to navigate the Campaign Creation Documentation. It's not expected that you read all of this to create a campaign - Instead, use this as a reference during campaign creation, whenever you need to use a specific event.






These pages are being restructured and may not be complete!

You can find the older version of this page here.

vars

Description

Vars sets variables which can later be referenced by split.
You can add a "vars" attribute to any event, to set variables when that event begins.




Inline Variables

"text": {
    "addTest": {
        "parts": [
            {
                "text": "Talking to me will set a to 1 and b to 2"
            }
        ],
        "vars": {
            "a": 1,
            "b": 2
        }
    }
}



Variable Modifiers

You can modify variables with arithmetic and string operations like add, sub, mul, div, floor, ceil, equals, etc.




Vars event

"vars": {
    "change_stuff": {
        "chain": "text:nextEvent",
        "list": [
            {
                "numberOfCats": "7"
            },
            {
                "numberOfDogs": "3"
            }
        ]
    }
}