[Help] Modifying Smart Select

[Help] Modifying Smart Select

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

Moderator: Moderators

Post Reply
MrCucumber
Posts: 53
Joined: 31 Oct 2010, 19:09

[Help] Modifying Smart Select

Post by MrCucumber »

So I am trying to edit Aegis' Smart Select widget. By default the widget makes it so when you draw a selection box it only selects mobile units, and when holding alt and drawing the selection box it only selects mobile units who are not builders and have a weapon. I am trying to reverse it so that the regular select is the alt select and vise versa. Can anyone help me with this?

For reference the here is the widget :
http://paste.springfiles.com/view/9deeb95f
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: [Help] Modifying Smart Select

Post by Jools »

Why not use Z-selectot instead? It's much smarter...

http://widgets.springrts.de/index.php#88
Broker
Posts: 156
Joined: 02 Jul 2012, 13:16

Re: [Help] Modifying Smart Select

Post by Broker »

MrCucumber wrote:So I am trying to edit Aegis' Smart Select widget. By default the widget makes it so when you draw a selection box it only selects mobile units, and when holding alt and drawing the selection box it only selects mobile units who are not builders and have a weapon. I am trying to reverse it so that the regular select is the alt select and vise versa. Can anyone help me with this?

For reference the here is the widget :
http://paste.springfiles.com/view/9deeb95f
if in frame builder and weapon unit select only weapon
if in frame only builder select builder
with alt key select only builder.
Attachments
unit_smart_select.lua
(14.19 KiB) Downloaded 8 times
User avatar
PepeAmpere
Posts: 589
Joined: 03 Jun 2010, 01:28

Re: [Help] Modifying Smart Select

Post by PepeAmpere »

Your smarselect use kind of hacky way to get thing, which is with current widget handler + mouse call-ins impossible.

I get UI lag, 1 frame show of old selection, etc.

I wanted something similar, but wait for spring 95.0

http://springrts.com/mantis/view.php?id=3879
Broker
Posts: 156
Joined: 02 Jul 2012, 13:16

Re: [Help] Modifying Smart Select

Post by Broker »

PepeAmpere wrote:Your smarselect use kind of hacky way to get thing, which is with current widget handler + mouse call-ins impossible.

I get UI lag, 1 frame show of old selection, etc.

I wanted something similar, but wait for spring 95.0

http://springrts.com/mantis/view.php?id=3879
My widget dont work? In may comp it is working good.
Post Reply

Return to “Lua Scripts”