User Tools

Site Tools


xrpl:input_variables

Differences

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

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
xrpl:input_variables [2020/02/02 16:50] – created Karsten75xrpl:input_variables [2020/08/15 08:18] – Added placeholder for global variables Karsten75
Line 1: Line 1:
-Input variables area a method by which values can be specified to have a default, and 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: #minimum amount of creeper/AC (absolute value) before unit turns on  
 +$transferAmount:2146.0 #maximum amount to transfer in one operation      
 +$xEmitCoord:
 +$zEmitCoord:
 +$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