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
request : building combo multiplier thing
Moderator: Moderators
Re: request : building combo multiplier thing
let 1 build solar and one MM?
Re: request : building combo multiplier thing
there are syncing problems associated with that
Re: request : building combo multiplier thing
AFAIK, work is being done on something with said functionality.
Re: request : building combo multiplier thing
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.Hacked wrote:there are syncing problems associated with that
Re: request : building combo multiplier thing
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 =)
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
show the script?
Re: request : building combo multiplier thing
give order to unit? all i have is this
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
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
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.31Spring.GiveOrderToUnit(Spring.GetSelectedUnits()[1],CMD.INSERT, {1, CMD.BUILD, CMD_OPT_INTERNAL, 11}, {"shift"})
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
"etc"? are you kidding?Spring.GiveOrderToUnit
( number unitID,
number cmdID,
params = {number, etc...},
options = {"alt", "ctrl", "shift", "right"} ) -> nil
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
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: request : building combo multiplier thing
Does the mod you're playing have metal generators?
Re: request : building combo multiplier thing
Not so, they cost a lot of E, which is critical in the early game...lurker wrote:Well, metal makers are roughly free,
-
- Posts: 250
- Joined: 22 Jul 2006, 19:58
Re: request : building combo multiplier thing
try cmdID = -unitDefID (the unit you want to build)Hacked wrote:"etc"? are you kidding?Spring.GiveOrderToUnit
( number unitID,
number cmdID,
params = {number, etc...},
options = {"alt", "ctrl", "shift", "right"} ) -> nil
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
params = {x,y,z,buildfacing}
options = {"shift"}