I've developing an ability Swarm Mine Tower that uses a magazine.
I'd like to limit the number of Swarm Mines launched when the weapon effect triggers.
Currently the weapon uses a Persistent Effect (period count: 1) with a Periodic Effect that links to the "Use Magazine" effect. This launches the units from the Magazine.
However, my trouble is that even when the Period Count is only 1, all the magazine units are launched. I'd like to launch 1 unit from the Magazine at a time instead of all the Magazine units.
Here's a link to my map. Nova, on the left side of the map, casts the Swarm Mine Tower.
[solved]
If the magazine units are external, then they acquire targets of their own accord. You can disable the magazine unit's attack via behavior, and then remove the behavior via a Search Area with the appropriate validator for unit type. This will create the illusion that the magazine units are being launched at the target via a Use Magazine effect.
Alternatively, if the magazine units are not external, then target acquisition is no cause for concern.
Caveat: if your goal is to send a fraction of the magazine units at one target, and another fraction at another target, this is more difficult.
The Use Magazine effect only applies to internal magazines.
For your second problem just get a search to apply a Set effect to all ammo units maybe on launch that applies a random buff of two. Then on attack you have a set use two searches that pick random targets and use an Issue Order effect to attack based on the buff the ammo unit has. This has problems if the host unit has a weapon and the Attack ability as ammo units automatically use the scope of the host for attacking. This can be overcome by spamming the issue order to the ammo units (laggy if to many).
I've developing an ability Swarm Mine Tower that uses a magazine.
I'd like to limit the number of Swarm Mines launched when the weapon effect triggers.
Currently the weapon uses a Persistent Effect (period count: 1) with a Periodic Effect that links to the "Use Magazine" effect. This launches the units from the Magazine.
However, my trouble is that even when the Period Count is only 1, all the magazine units are launched. I'd like to launch 1 unit from the Magazine at a time instead of all the Magazine units.
Here's a link to my map. Nova, on the left side of the map, casts the Swarm Mine Tower.
http://www.sc2mapster.com/maps/lightning-stream/files/9-swarm-mine-tower/
Somehow carrier manages it. Why you even have a Create Persistent effect?
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
@DrSuperEvil: Go
[solved] If the magazine units are external, then they acquire targets of their own accord. You can disable the magazine unit's attack via behavior, and then remove the behavior via a Search Area with the appropriate validator for unit type. This will create the illusion that the magazine units are being launched at the target via a Use Magazine effect.
Alternatively, if the magazine units are not external, then target acquisition is no cause for concern.
Caveat: if your goal is to send a fraction of the magazine units at one target, and another fraction at another target, this is more difficult.
The Use Magazine effect only applies to internal magazines.
For your second problem just get a search to apply a Set effect to all ammo units maybe on launch that applies a random buff of two. Then on attack you have a set use two searches that pick random targets and use an Issue Order effect to attack based on the buff the ammo unit has. This has problems if the host unit has a weapon and the Attack ability as ammo units automatically use the scope of the host for attacking. This can be overcome by spamming the issue order to the ammo units (laggy if to many).
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