Skip to content

Variables

The K-scaffold provides several variables to allow your scripts to tap into its information flow.

k.baseGet

constant

The array of attribute names that the k-scaffold gets by default. Does not incude repeating attributes.

k.debugMode

member

A boolean flag that tells the script whether to enable or disable debug calls. If the version of the sheet is 0, or an attribute named debug_mode is found on opening this is set to true for your entire session. Otherwise, it remains false.

k.defaultRollStart

member

Defines the rollstring that rolls made using k.startRoll begin with. Defaults to "&{template:default}".

k.sheetName

member

This stores the name of your sheet for use in the logging functions log and debug. Accessible by k.sheetName

k.version

member

This stores the version of your sheet for use in the logging functionslog and debug. It is also stored in the sheet_version attribute on your character sheet. Accessible via k.version

Released under the MIT License