I have a building on my map that can activate an ability - to start spawning units.
I'm trying to implement a pop cap of sorts on this ability, and to prevent people from cheating over the cap when they have 4 or 5 unit spawners selected and click the "start spawning" btn, I only want 1 of them to gain the buff at a time, so each bldg would take a separate click of the ability. I imagine there is some kind of setting for this, but I'm at a loss.
When you stim a group of marines they all stim, but when you snipe a unit with a ghost only 1 ghost fires per click. How do you control this in a custom ability - or is it tied to the targeting type?
Sounds more like he is looking for "Smart Casting", which is a tag that if enabled, will cause the *best unit* to cast. and with multiple clicks, multiple casts.
Ranakastrasz... that is a terrible description of smart casting. Here's some tests you can do yourself (I tried out Smart flag a loooooong time ago)
Test 1
Create a map, add a Ghost for yourself and a Zergling for player 2.
Test map, right click on Zergling... the Ghost shoots his regular weapon.
Go back to the editor, modify Snipe, add flag 'Smart'
Test map, right click on Zergling... the Ghost will Snipe instead of shooting regular weapon.
THAT is smart casting. You don't need to push a hotkey, just a right click.
By default, all the "Smartcast" abilities listed in your link, Ranakastrasz, only have 'Best Unit' flags checked, and not 'Smart'. The Train/Morph abilities are 'Best Unit' abilities aswell...
Test 2
revert to default Snipe, remove 'Best Unit'.
Test map, try sniping with all ghosts selected... they all rush towards, all trying to snipe the target first until it is dead
Test 3 & 4
default Snipe, add 'Smart'(with Best Unit and without Best Unit flags).
Test map(with hydralisks), right click on hydras while all ghosts selected, they all rush forward and only 2 will snipe at the same exact time to kill the Hydralisk.
'Smart' ignores 'Best Unit'. It is quite obvious that Smart was meant for "hero" units, or maps where you only control 1 unit and their main 'spell' would be 'Smart'. You don't even need to waste a Command Card for that 'Smart' ability.
More Proof::: says that Blink is not a 'smart cast' ability. I only added 'Best Unit' and BAM, only 1 stalker out of the bunch will blink at a time. I add 'Smart' to blink( with 0 cooldown) and it was alot of fun(lol)
That wikipage should totally be renamed to 'Best Unit Casting' or something...
I have a building on my map that can activate an ability - to start spawning units. I'm trying to implement a pop cap of sorts on this ability, and to prevent people from cheating over the cap when they have 4 or 5 unit spawners selected and click the "start spawning" btn, I only want 1 of them to gain the buff at a time, so each bldg would take a separate click of the ability. I imagine there is some kind of setting for this, but I'm at a loss.
When you stim a group of marines they all stim, but when you snipe a unit with a ghost only 1 ghost fires per click. How do you control this in a custom ability - or is it tied to the targeting type?
Just add a requirement like the zerg Spawn behaviour has or the protoss carrier Arm Magazine has or the mothership Train ability.
Try the Best Unit flag.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Sounds more like he is looking for "Smart Casting", which is a tag that if enabled, will cause the *best unit* to cast. and with multiple clicks, multiple casts.
http://starcraft.wikia.com/wiki/Smartcasting
Ranakastrasz... that is a terrible description of smart casting. Here's some tests you can do yourself (I tried out Smart flag a loooooong time ago)
Test 1
THAT is smart casting. You don't need to push a hotkey, just a right click.
By default, all the "Smartcast" abilities listed in your link, Ranakastrasz, only have 'Best Unit' flags checked, and not 'Smart'. The Train/Morph abilities are 'Best Unit' abilities aswell...
Test 2
Test 3 & 4
'Smart' ignores 'Best Unit'. It is quite obvious that Smart was meant for "hero" units, or maps where you only control 1 unit and their main 'spell' would be 'Smart'. You don't even need to waste a Command Card for that 'Smart' ability.
More Proof::: says that Blink is not a 'smart cast' ability. I only added 'Best Unit' and BAM, only 1 stalker out of the bunch will blink at a time. I add 'Smart' to blink( with 0 cooldown) and it was alot of fun(lol)
That wikipage should totally be renamed to 'Best Unit Casting' or something...
@Ktoksaproblem: Go
So as DrSuperEvil said, add a requirement and check the 'Best Unit' flag on your ability.
Just wanted to thank you guys for the input, been a bit crazy over the holidays for me.
Best Unit was exactly the flag I needed, feel kinda stupid that I asked about it =P
Can't wait to see what kind of 'documentation upgrade' is coming with HotS.
Yup, must be one of the most anticipated expansions of the decade.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg