Skip to main content

Set

Set statement let you set a Property to a particular value.

Syntax

Set statements start with the set keyword, followed by the target Property, then the to keyword, a set expression and ending with a ;.

Set Expression

The set expression can be a Value, a Math expression or a Pick expression.

Examples

Set Acrobatics as a Class Skill

set character.acrobatics.classSkill to true;

Set Unarmed Damage Dice Count based on Character Level

set character.unarmed.diceCount to pick [4:1, 8:2, 12:3, 15:5, 20:7] at character.level;