Skip to reading
Action Lists & Events

Change Variable

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

ID: ChangeVariable | Native inspector · Shared list / GUI · Visual graph · Text action wrapper

Set or modify a variable using set, arithmetic, append or toggle. The operation determines how Value is used.

Source table from Change Variable, page 63
Field / stored keyWhat to enterStarting value
Variable nameChoose a game variable name.Blank
Operation operationChoose: set, add, subtract, multiply, divide, append, toggle."set"
Value valueA value of the type required by the selected variable, operation or property.Blank

In use. Choose score, Add, 5 for a five-point reward. Toggle suits a repeatable switch; Set is safer when an event may run twice. Keep arithmetic numeric and avoid dividing by zero.

Add Score#

ID: AddScore | Shared list / GUI · Visual graph · Text action wrapper · Timeline

Increase the runtime variable named score by the given integer amount.

Source table from Change Variable, page 63
Field / stored keyWhat to enterStarting value
Amount amountNumber of points to add to score.1

In use. Award 5 after collecting a unique key. This action does not remember that the key was already collected. Put it behind the same one-time condition as the reward. In a native inspector, Change Variable / score / Add is the direct equivalent.

Page 63 of 189Permalink
Go to page