Page 1 of 1
Suggestion: Mission builder AI
Posted: 24 Jul 2006, 19:21
by jcnossen
With fnordia working on the lua missions again, could someone create a mission builder AI?
It should be fairly simple to see which units are in the group and output some LUA code to place them.
Posted: 24 Jul 2006, 20:12
by AF
I have a sorter AI that outputs unitnames of the units selected for buildtree dev. What sort of lua commands/syntax is neded?
Posted: 24 Jul 2006, 22:51
by jcnossen
You can look at
http://svn.berlios.de/svnroot/repos/tas ... ontest.lua for an example.
I guess a simple list of
LoadUnit(UnitName, position, 0, false)
statements would be enough for easily making a few static mission scripts, but ofcourse a more complete mission editor that non-lua coders can use would be best.
Posted: 25 Jul 2006, 01:03
by esteroth12
what do the parameters stand for? afaik...
LoadUnit(UnitName, position, team, ?)
whats the false for? dead? could we load wrecks?
Posted: 25 Jul 2006, 01:10
by AF
maybe, probably, havent tested it.
We should be able to though
Posted: 25 Jul 2006, 23:47
by Fnordia
I've commited a lua script that can output some lua code that places the selected units. (
missionhelper.lua)
Posted: 26 Jul 2006, 00:40
by jcnossen
Eh I guess I was a little to enthusiastic here yes
Sorry if anyone did any double work.