User Tools

Site Tools


xrpl:input_variables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
xrpl:input_variables [2020/08/15 08:13]
Karsten75 clarified
xrpl:input_variables [2020/08/15 08:18] (current)
Karsten75 Added placeholder for global variables
Line 1: Line 1:
-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.  ​+==== 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 
 + 
 +<code 4rpl> ​  
 +#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"​  
 +</​code>​ 
 + 
 +FIXME show same corresponding values in package manager and in a unit.  
 + 
 +==== Global Variables ==== 
 + 
 +FIXME - clarify with knucracker on syntax and usage
xrpl/input_variables.txt · Last modified: 2020/08/15 08:18 by Karsten75