Editing V1.4.2.5

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 79: Line 79:
  
 
Game rules params for boxes:
 
Game rules params for boxes:
<syntaxhighlight>startbox_max_n → highest box number (boxes are numbered from 0!)
+
<syntaxhighlight lang="lua">startbox_max_n → highest box number (boxes are numbered from 0!)
  
 
startbox_n_0 → how many polygons in box #0 (polygons numbered from 1)
 
startbox_n_0 → how many polygons in box #0 (polygons numbered from 1)
Line 93: Line 93:
  
 
To have an AI ask about startpos validity of coordinates XXX/ZZZ (Y is irrelevant), send a Skirmish AI Message:
 
To have an AI ask about startpos validity of coordinates XXX/ZZZ (Y is irrelevant), send a Skirmish AI Message:
<syntaxhighlight>ai_is_valid_startpos:XXX/ZZZ</syntaxhighlight>
+
<syntaxhighlight lang="lua">ai_is_valid_startpos:XXX/ZZZ</syntaxhighlight>
 
and receive "0"/"1" as the return value.
 
and receive "0"/"1" as the return value.
  
  
 
{{Navbox changelog}}
 
{{Navbox changelog}}

Please note that all contributions to Zero-K are considered to be released under the Creative Commons Attribution-ShareAlike (see Zero-K:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)