User Tools

Site Tools


cw4:input_variables

This is an old revision of the document!


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.1610211671.txt.gz · Last modified: 2025/02/14 14:56 (external edit)