Difference between revisions of "Script"

From Larnitech wiki page
Jump to navigation Jump to search
(Created page with "===Example of description in XML=== <syntaxhighlight lang="xml" line> <item type="script" name="Test" path="script-test.txt" addr="125:150" NAME=”VALUE”/> </syntaxhighlig...")
 
(Marked this version for translation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
===Example of description in XML===
+
<languages/>
 +
<translate>
 +
===Example of description in XML=== <!--T:1-->
  
 +
<!--T:2-->
 
<syntaxhighlight lang="xml" line>
 
<syntaxhighlight lang="xml" line>
 
<item type="script" name="Test" path="script-test.txt" addr="125:150" NAME=”VALUE”/>
 
<item type="script" name="Test" path="script-test.txt" addr="125:150" NAME=”VALUE”/>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===Parameters===
+
===Parameters=== <!--T:3-->
  
 +
<!--T:4-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 19: Line 23:
 
<nowiki>*</nowiki> – required fields
 
<nowiki>*</nowiki> – required fields
  
===Possible variants of setting the status===
+
===Possible variants of setting the status=== <!--T:5-->
  
 +
<!--T:6-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 27: Line 32:
 
|0||0 – off<br>1 – on<br>0xFF – Change the status for the opposite one
 
|0||0 – off<br>1 – on<br>0xFF – Change the status for the opposite one
 
|}
 
|}
 +
</translate>

Latest revision as of 12:49, 26 January 2022

Other languages:
English • ‎русский

Example of description in XML

1<item type="script" name="Test" path="script-test.txt" addr="125:150" NAME=”VALUE”/>

Parameters

Name type and variety description
path* string path to script file relatively to server folder
body* string contents of script (instead of path)
NAME string parameters sent to script

* – required fields

Possible variants of setting the status

Byte description
0 0 – off
1 – on
0xFF – Change the status for the opposite one