It would look like this -
Code: Select all
gamename - ba
uniticon - <setuniticon>
templatename - <mytemplate>
new <unitdefid>, <unitname>, <facing>, <posx>, <posz>
new <unitdefid>, <unitname>, <facing>, <posx>, <posz>
new <unitdefid>, <unitname>, <facing>, <posx>, <posz>
...
<another template>
<another template>
...
--|I try to save/add templates with file: like this
- http://pastebin.com/m7e6b3133
I dont really know if that works haven't tested because I don't have Spring at work. But the question is about overwriting lines. Because there can be the option to change template name so I have to modify the file where I need to overwrite a line but not when adding a template.
Or can someone point out a easier way? such as adding a LUA file which has arrays added? Though writing to files would still be needed.
