custom formations with sane keys

custom formations with sane keys

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

Moderator: Moderators

Post Reply
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

custom formations with sane keys

Post by Silentwings »

I made a version of custom formations that doesn't require acrobatic keypresses or require different key combos to get the same command for different orders, etc etc. Thought other games might also be glad of this ;).To be precise:
To give a line command: select command, then right click & drag
To give a command within an area: select command, then left click and drag
To give a command at a point: select command, left click and don't drag
To deselect non-default command and return to default command: right click and don't drag
To deselect default command: left click
Might need a tiny changes if dropped into another game but they will be tiny.
(BA 7.95 already comes with it inside - BA players should not download this, it is automatically there for you already).
Attachments
unit_customformations2.lua
(37.86 KiB) Downloaded 3 times
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: custom formations with sane keys

Post by Jools »

Thanks for posting. But what are the changes? Ie. how did it work before?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: custom formations with sane keys

Post by Silentwings »

I don't know how yours worked before, I've never used the one in XTA. The BA one used to require alt for some commands and not others, also used to require some key combos to be pressed in a particular order.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: custom formations with sane keys

Post by Jools »

It's the same one. I think the line attack was attack+alt+draw line with left button => attack + right draw line
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: custom formations with sane keys

Post by Silentwings »

I think the line attack was attack+alt+draw line with left button => attack + right draw line
If it was the "same" one (in which case you've probably copied it within the last 6 months or so already), that depends on which order was being given.
Post Reply

Return to “Lua Scripts”