User Tools

Site Tools


4rpl:commands:define

This is an old revision of the document!


Index

Input Variables

Syntax

$VAR:VAL

Description

Input variables must start with a $ sign, they defines a variable named VAR with a default value of VAL. Input variables will show up in a unit's Script Settings when selected in the editor. This allows the value of an input var to be changed through the editor at any moment in time.

Input variables are created at the same time as the unit itself (even if the game is paused and the script hasn't executed once) and assigned either the default value VAL, or a value specified in the editor through the Script Settings.

Examples

$amt:1 
$text:"abc"
$e:2.71828
 
SetCreeper(10 10 <-amt) 
4rpl/commands/define.1610662346.txt.gz · Last modified: 2025/02/14 14:56 (external edit)