SC2Mapster Forums

Development > Data

Launching 1 unit from a magazine

  • 4 posts
    #1 Nov 14, 2012 at 14:04 UTC - 0 likes

    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/

    Last edited Nov 14, 2012 by XLIIVI

    You know how I know you're gay? You have hots beta.

    #2 Nov 14, 2012 at 22:09 UTC - 0 likes

    Somehow carrier manages it. Why you even have a Create Persistent effect?

    #3 Nov 14, 2012 at 23:57 UTC - 0 likes

    @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.

    #4 Nov 15, 2012 at 21:16 UTC - 0 likes

    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).

    Last edited Nov 15, 2012 by DrSuperEvil
  • 4 posts

You must login to post a comment. Don't have an account? Register to get one!