Custom scripting gives experienced developers even more power by allowing you to run your own javascript.
By Tiers:
Free and Pro-tier developers only have access to in-play scripting. Enterprise customers can run javascript anywhere in their game, including sets, community pages, landing pages, etc.
Getting started with Javacript
The simplest way to try custom scripting is through the custom javascript action in the effect builder.
To use it, use the custom javascript action. All javascript is executed in the context of that action.
Examples of custom javascript commands.
console.log(thisCard) thisCard.variable = "foobar" console.log(parseVariable('$variable')) console.log(dotSyntax('$variable.variable2'))
Included third party libraries
Server side libraries:
- Async
- Lodash
Client side Libraries:
- Async
- Lodash
- jQuery
- three.js
- hammer.js