Postponed commands

Postponed commands

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Postponed commands

Post by Gota »

was thinking wouldnt it be good to give out delayed commands.
For example you have a group of 20 kbots and you want to quickly speperate them into 2 different groupsand sendeach group to a different location to flank another group that you want to attack.
The widget woul allow you to select a few units and give them movement orders and than selelct another group of units and givethe mmovemenet orders as well than by pressing a button or releasing a button the 2 groupswill start executing the movement orders mabe even allow fod another version when the 2 groups will move in a speed so that both of the groups reach their destinations at thesame time.
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Re: Postponed commands

Post by ILMTitan »

The first part of your request can be done using the (hidden) wait command. Select the units, and press shift-w. Then queue the commands you want. Finally, select all of the units again, and press w. At that point they will all begin following the orders you queued.
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: Postponed commands

Post by MelTraX »

Afaik, the same speed can be accomplished by pressing alt or ctrl (which also holds formation).. No need for Lua magic here..
ironized
Posts: 172
Joined: 25 Jun 2007, 06:33

Re: Postponed commands

Post by ironized »

what i would love is a lua script to help time attacks.

for example


>>>> ------------------- (((((
>>> [tanks] --------------((((( [enemy tanks]
>>> --------------------------((((((





--------------------------------- ^^^^^^^^^^^^ [more tanks]

i would like both groups of tanks to get to the enemy at the same time.

even if i just got given a eta on arrival, id be happy, it is just very annoying trying to do precise things like flanking, when your tanks turn up 10 seconds late.
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Re: Postponed commands

Post by Acidd_UK »

MelTraX wrote:Afaik, the same speed can be accomplished by pressing alt or ctrl (which also holds formation)
Wow, I never knew that!
Masure
Posts: 581
Joined: 30 Jan 2007, 15:23

Re: Postponed commands

Post by Masure »

Gota wrote:was thinking wouldnt it be good to give out delayed commands.
For example you have a group of 20 kbots and you want to quickly speperate them into 2 different groupsand sendeach group to a different location to flank another group that you want to attack.
The widget woul allow you to select a few units and give them movement orders and than selelct another group of units and givethe mmovemenet orders as well than by pressing a button or releasing a button the 2 groupswill start executing the movement orders mabe even allow fod another version when the 2 groups will move in a speed so that both of the groups reach their destinations at thesame time.
I recently made a short lua to split a selection in # groups. This could help you to manage your units.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Postponed commands

Post by Gota »

Imo the whole grouping 12345... thing doesn work for spring tbh
at least not for me.
When you playing a high pased game you dont hae time to make comfterble and pretty groups plus units are build all the time and sometimes you need to split forces very fast and join them back together and so on.

I di not know about the shift w wtf...dant these commands should be revealed to the public.
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Re: Postponed commands

Post by ILMTitan »

http://spring.clan-sy.com/wiki/Using_Or ... it_.28W.29

It is in the closest thing we have to an instruction manual, but I agree that most people don't read it, and it is otherwise rather hidden. Suggestions on how to change that are appreciated.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Postponed commands

Post by imbaczek »

Tutorial lua startscript/mod/gadget. No other way will be effective.
ironized
Posts: 172
Joined: 25 Jun 2007, 06:33

Re: Postponed commands

Post by ironized »

have a controls page ingame....

make them part of the ui.
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Postponed commands

Post by Tribulexrenamed »

Gota wrote:Imo the whole grouping 12345... thing doesn work for spring tbh
at least not for me.
When you playing a high pased game you dont hae time to make comfterble and pretty groups plus units are build all the time and sometimes you need to split forces very fast and join them back together and so on.

I di not know about the shift w wtf...dant these commands should be revealed to the public.
The way I use groups is whenever I give a group of units a command, I assign those units to a group. It is an instinctive habit that I have developed. This makes it easier to keep track of your units, and prevents you from accidentally missing a unit when you select an attack force. Leaving one unit behind is a big loss, because every unit costs metal, and every unit counts. Using the unitgroups LUA widget helps you to know what groups you already are using, and which groups are available. It also tells you which groups are getting attacked. Good cake.
Post Reply

Return to “Lua Scripts”