User Tools

Site Tools


cw4:input_variables

common_scripting_language

Input Variables

Input variables are a method by which script variables can be specified to have a default value specific for each unit. Those defaults can be displayed in the editor and changed without having to adjust or recompile the script.

example

#Settings
$name:"Creeper Pump"
$pumpInterval:15 		#frames
$multiplier:4 
$minLevel:0  			#minimum amount of creeper/AC (absolute value) before unit turns on 
$transferAmount:2146.0 	#maximum amount to transfer in one operation     
$xEmitCoord:0
$zEmitCoord:0
$Debug:"N" 

FIXME show same corresponding values in package manager and in a unit.

Global Variables

FIXME - clarify with knucracker on syntax and usage

cw4/input_variables.txt · Last modified: 2021/01/09 12:01 by Karsten75