Selecting varios Units

Selecting varios Units

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

Moderator: Moderators

Post Reply
Durchfalmann
Posts: 1
Joined: 25 Feb 2009, 09:22

Selecting varios Units

Post by Durchfalmann »

I have tried to build a little unit selection.
That selects all spam units by typing ctrl+s and so on
I tryied in the selectionkeys.txt a lot. But
"Control_S AllMap+_NameContain_corak"OR"armpee+_ClearSelection_SelectAll+"
just won't work...
My question is how can you build in the "OR"...
I'm sure that the answer is just to simple to see for me.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Selecting varios Units

Post by lurker »

That's.. not.. lua?
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Selecting varios Units

Post by Google_Frog »

I think the question has a reason to belong here. It's sort of like lua because it can add things to the interface and the answer will be 'use lua'

The answer to the question is select keys can't use OR. Use lua, specifically Auto Groups. It's a widget in CA and available with the Lua module of Spring Dler, here's some info on it http://trac.caspring.org/wiki/CustomKeys
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: Selecting varios Units

Post by zwzsg »

lurker wrote:That's.. not.. lua?
The problem is not Lua, but Durchfalmann is apparently a wise newb who already knew that no matter the question, the answer always is: Use Lua!
Google_Frog wrote:The answer to the question is select keys can't use OR. Use lua
See?
Ashnal
Posts: 104
Joined: 24 Jun 2008, 00:57

Re: Selecting varios Units

Post by Ashnal »

Why would you need an or anyways? Just have it select both, and the majority f the time you'll only have one of the two anyways.
Post Reply

Return to “Lua Scripts”