Page 1 of 1
Selecting varios Units
Posted: 25 Feb 2009, 09:32
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.
Re: Selecting varios Units
Posted: 25 Feb 2009, 10:30
by lurker
That's.. not.. lua?
Re: Selecting varios Units
Posted: 25 Feb 2009, 10:52
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
Re: Selecting varios Units
Posted: 25 Feb 2009, 19:47
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?
Re: Selecting varios Units
Posted: 28 Feb 2009, 16:18
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.