Hello
Thank you for making this wonderful opensource software!
I'm currently having some small problems with my placement via lua.
Here's my code:
<?xml version="1.0" standalone="yes" ?>
<scenario>
<difficulty value="0"/>
<players>
<player control="human" faction="magic" team="1"/>
<player control="cpu" faction="magic" team="2"/>
<player control="closed"/>
<player control="closed"/>
</players>
<map value="amap"/>
<tileset value="forest-klima"/>
<tech-tree value="magitech"/>
<default-resources value="false"/>
<default-units value="true"/>
<default-victory-conditions value="false"/>
<scripts>
<startup>
disableAi(1)
createUnit ( "UNIT", 0, {startLocation(0)[1] - 20, startLocation(0)[1] - 15})
</startup>
</scripts>
</scenario>
My map looks like this:
I would like to have UNIT placed in the space between the trees in the lower right corner of the map. How do I do that? Every time I edit one of the "
( "UNIT", 0, {startLocation(0)[1] - [b]20[/b], startLocation(0)[1] - [b]15[/b]})
bold numbers, the UNIT jumps in triangles, instead of up/across as I would expect it to do.
Thanks in advance for your help
Best regards
ZaRo