fire once

fire once

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

Moderator: Moderators

Post Reply
el_matarife
Posts: 933
Joined: 27 Feb 2006, 02:04

fire once

Post by el_matarife »

BeefofAges and I have been discussing a new widget for managing strategic weapons. Basically, the concept is a button that will fire one round, no matter how many units you have selected. Here's the use case: You've built multiple nuke launchers and bound them to one keygroup, but when you hit attack they all launch a nuke on that target.

The "Fire Once" widget would fire only once from that group, preferably from the one farthest from the target. You could also use it to queue attacks, since right now you can't easily queue nuclear strikes across multiple launchers without a lot of micro.

This would benefit any stockpiling weapon, and possibly also LRPCs or other slow reloading weapons if you want to micro every shot taken. For instance, you could set two fire once commands and turn on repeat to alternate fire across the two targets.

Does this sound like something one of you Lua experts might be interested in? Is it possible with the current API functions?
Last edited by el_matarife on 16 Jan 2009, 08:58, edited 1 time in total.
User avatar
thesleepless
Posts: 417
Joined: 24 Oct 2007, 04:49

Re: "Fire Once"

Post by thesleepless »

great idea, it would need to check which ones are out of ammo and skip them until it finds one, then fire that and end. doesn't sound too impossible!
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: "Fire Once"

Post by CarRepairer »

This is how spellcasters work in Warcraft III. This is most definitely possible in lua and a very good idea. Here's a suggestion: if you have 3 nux selected, use the meta key (usually spacebar) by holding it while right clicking on an enemy. Then only one of your nux fires at it, and is then removed from your selection leaving you with 2 nux selected. Repeat as necessary.
Post Reply

Return to “Lua Scripts”