27 lines
1.5 KiB
XML
27 lines
1.5 KiB
XML
/ Condition temporary learnables
|
|
This defines the condition
|
|
<Condition name = "Name goes here" function = "link to function in trigger_functions.js" funcParameters = "# of inputted parameters from the map.pmp (in previous feild) that are passed to trigger function.js">
|
|
<WindowRow> This creates a row in the Atlas GUI for input.
|
|
|
|
<Parameter name = "Label name of this parameter in Atlas trigger editor">
|
|
<Window type="Specifies window type - 'choice' = drop down box, 'text' = textbox, 'entity_selector' = entity selector" position= "0,0" size = "80, 20"/>
|
|
|
|
<Choices>1,2,3,4,5,6</Choices> - used for choice windows. These are listed in the drop down
|
|
|
|
<ParameterOrder>0</ParameterOrder> - Specifies in what order this parameter is passed to the JS function
|
|
|
|
<UIOrder>0</UIOrder> - Used to organize the parameter window in the UI. Added left to right, starting from least number
|
|
</Parameter>
|
|
|
|
<Parameter name = "Operator">
|
|
<Window type="choice" position = "5,0" size = "80, 20"/>
|
|
<Choices>Food,Wood,Stone,Metal</Choices>
|
|
<ChoiceTranslation>"Food","Wood","Stone","Metal"</ChoiceTranslation> - when choices in the choice box should be passed to javascript as a different string, use choice translation. These are matched by comma ordering
|
|
...etc
|
|
|
|
|
|
</Parameter>
|
|
|
|
<Parameter name = "Value">
|
|
<Window type="text" position = "5,0" size = "80, 20"/>
|
|
<InputType>int for integer, string for string, real for real numbers (floating point), bool for boolean true/false</InputType> |