![]() Perhaps the most frequent question asked in the PowerCards thread on the forum is something along the lines of “how do I use the result of THIS roll in the roll I make two lines later?” Unfortunately, due to the architecture of PowerCards, this isn’t possible.īesides this issue, there are various elements of a PowerCards macro that can’t support certain features. ScriptCards is more of a follow-up to PowerCards. I ( Kurt J.) have been maintaining and updating PowerCards for a couple of years now, and ScriptCards isn't an effort to supplant PowerCards, but rather represents my effort to address some of the most common issues that PowerCards users run into because of the intrinsic nature of the way PowerCards was conceived and developed over time. While these features are available now from the experimental section of the repo, they will not be available in OneClick installs until the newest version has been pushed to Roll20. This wiki documentation is in the process of being updated to include information for post 1.7.7 updates, including information for 2.0. The newest version of ScriptCards (currently in development on the GitHub repo and tagged as experimental) supports a feature called "ScriptCards Triggers", which allows you to respond to in-game events by running macros (ScriptCards scripts or otherwise) when tokens, pages, attributes, etc. The final numeric value of an inline roll can be used in a ScriptCard, but only as a text substitution value, so inline rolls can't reference the value of ScriptCards variables. ScriptCards includes its own built-in dice roll parser to allow for the use of variables inside dice rolls. Triggers – ScriptCards can be configured to respond to various events that take place in the Roll20 VTT environment, such as tokens taking damage, turn order updates, and more.Ĭurrent OneClick Version: 2.3.9 (v 2.3.9 has been deployed to One-Click)Ĭritically Important: ScriptCards does not parse inline rolls. Infinite Loop Protection – ScriptCards maintains an internal execution count to prevent crashing the Roll20 sandbox if your script enters an infinite loop. Evaluation works from the inside out, so the final reference can be made up of subreferences.Ĭode Libraries – Roll20 Handouts can be used to store common code functions that you wish to make available to your other scripts. Nested, Run-Time Referencing – Because ScriptCards lines are processed by an interpreter when the line executes, any portion of the line can be replaced by a variable reference, and any type of reference can be nested. Built-in property modification is immediately available to the remained of the executing script. Object Property access and Manipulation – Access and update the properties of Roll20 objects such as tokens, characters, graphics, etc. ![]() Gosub nesting is supported, and parameters can be passed to a gosub branch.Ĭonditionals – If/Then/Else style conditionals (including code block support) and Switch/Case style conditionals.īuilt-in Functions – A library of built-in functions for array manipulation, math, string manipulation, and system interaction with Roll20 (turnorder, date/time)Ĭalling other Mod Scripts – A syntax for building Mod calls to run asynchronously as part of a ScriptCard execution. Loops support start, end, and step values.īranching – Both direct (goto-style) branching and function calling (gosub branching) are supported. status markers on tokens, etc.)įor…Next Loops – Including the ability to break out of the current loop execution or exit the loop entirely. Roll variables can be set using a built-in roll parser that can reference other variables and values when creating Rolls, as well as a number of other math related modifiers.Īrrays – Arrays can be defined directly in your scripts or sourced from game information (e.g. Variables – String variables and Roll variables. Settings – More than 70 modifiable settings to control the appearance and behavior of executing scripts (fonts, colors, image backgrounds, and many, many more) The language supports many traditional programming features and a number of features specifically geared towards Roll20, including: ScriptCards is not tied to any specific game system or character sheet. ![]() The ScriptCards Mod ( Mod Script) implements a feature-rich script interpreter for writing programs inside macros and abilities within Roll20. Introduction to ScriptCards What is ScriptCards
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |