Page 1 of 1
request : building combo multiplier thing
Posted: 15 Aug 2008, 18:16
by Hacked
basically, i want my con to build two buildings over and over, much like the way we hold shift and drag to multiply build orders for one building, but for 2 or even more different buildings.
only because i like my t1 cons to build adv solar + mm a few times in the back. currently, its the only thing that stops me from devoting time to front lines
Re: request : building combo multiplier thing
Posted: 15 Aug 2008, 18:24
by Hoi
let 1 build solar and one MM?
Re: request : building combo multiplier thing
Posted: 15 Aug 2008, 18:28
by Hacked
there are syncing problems associated with that
Re: request : building combo multiplier thing
Posted: 16 Aug 2008, 07:18
by REVENGE
AFAIK, work is being done on something with said functionality.
Re: request : building combo multiplier thing
Posted: 16 Aug 2008, 07:22
by lurker
Hacked wrote:there are syncing problems associated with that
Well, metal makers are roughly free, and if you have either widget or groupai managing them you don't need to worry about timing, since extras will turn off.
Re: request : building combo multiplier thing
Posted: 16 Aug 2008, 07:56
by Hacked
thanks everyone
im actually trying to make this myself
on my quest to learning lua scripting for spring
currently, im having trouble with giveordertounit
good to know its being worked on by someone more competent than me =)
Re: request : building combo multiplier thing
Posted: 16 Aug 2008, 08:58
by Hoi
show the script?
Re: request : building combo multiplier thing
Posted: 16 Aug 2008, 10:42
by Hacked
give order to unit? all i have is this
Spring.GiveOrderToUnit(Spring.GetSelectedUnits()[1],CMD.INSERT, {1, CMD.BUILD, CMD_OPT_INTERNAL, 11}, {"shift"})
i tried to get a t1 con to build an adv solar so i cut, pasted, and modified this line from the mexupgrader gadget in ba6.31
the spring api isnt like the .net api where everything is explicit
heres what i found in the syncedctrl wiki for giveordertounit parameters
anyone know what im supposed to put for params?
i also dont know how to add a button on the left
Spring.GiveOrderToUnit
( number unitID,
number cmdID,
params = {number, etc...},
options = {"alt", "ctrl", "shift", "right"} ) -> nil
"etc"? are you kidding?
idk, for me working with lua and spring is a little hard
perhaps a tutorial on making a button would be better than having to look through other luas
edit: i read the cmd section again after realizing there wasnt a build cmd. im still confused on how to build
Re: request : building combo multiplier thing
Posted: 29 Aug 2008, 06:55
by CarRepairer
Does the mod you're playing have metal generators?
Re: request : building combo multiplier thing
Posted: 29 Aug 2008, 11:39
by Hacked
its BA
Re: request : building combo multiplier thing
Posted: 29 Aug 2008, 11:52
by Acidd_UK
lurker wrote:Well, metal makers are roughly free,
Not so, they cost a lot of E, which is critical in the early game...
Re: request : building combo multiplier thing
Posted: 29 Aug 2008, 18:46
by Tim-the-maniac
Hacked wrote:
Spring.GiveOrderToUnit
( number unitID,
number cmdID,
params = {number, etc...},
options = {"alt", "ctrl", "shift", "right"} ) -> nil
"etc"? are you kidding?
idk, for me working with lua and spring is a little hard
perhaps a tutorial on making a button would be better than having to look through other luas
edit: i read the cmd section again after realizing there wasnt a build cmd. im still confused on how to build
try cmdID = -unitDefID (the unit you want to build)
params = {x,y,z,buildfacing}
options = {"shift"}