Is this possible? A missile barrage ability the Battlecruiser randomly picks 1-3 targets nearby and shoots 4 missiles at them.
To clarify regardless of how many targets there are, it could pick 1, it could pick 2 or 3. It could fire 3 missiles at a target and 1 missile at another, or 2 missiles at 1 and 2 missiles at another or... simply all 4 at 1 target.
Completely random group selection and completely random distribution. Could someone point me down the road to making this?
Set effect that picks a random effect tree leading to all the possibiliies is one method. An alternative is to use a periodic Create Persistent with a Switch effect that uses a single target Search Area with the random target sort that applies a counter buff. An Enumerate Area validator flips the switch if there are 3 different units with the buff to use another singe target Search Area effect That has a Behavior Count target sort followed by a random target sort so it then prioritizes units already with the buff if there are already 3 different units with it. The final 4 effects of the Create Persistent are searches linked your Launch Missile effects that requires the target to have the buff and on impact does damage and removes a count of the buff using a Remove Behavior effect. The downside of this method is that with more targets the likely hood of targeting the same target more than once is reduced.
Set effect that picks a random effect tree leading to all the possibiliies is one method. An alternative is to use a periodic Create Persistent with a Switch effect that uses a single target Search Area with the random target sort that applies a counter buff. An Enumerate Area validator flips the switch if there are 3 different units with the buff to use another singe target Search Area effect That has a Behavior Count target sort followed by a random target sort so it then prioritizes units already with the buff if there are already 3 different units with it. The final 4 effects of the Create Persistent are searches linked your Launch Missile effects that requires the target to have the buff and on impact does damage and removes a count of the buff using a Remove Behavior effect. The downside of this method is that with more targets the likely hood of targeting the same target more than once is reduced.
Is this possible? A missile barrage ability the Battlecruiser randomly picks 1-3 targets nearby and shoots 4 missiles at them.
To clarify regardless of how many targets there are, it could pick 1, it could pick 2 or 3. It could fire 3 missiles at a target and 1 missile at another, or 2 missiles at 1 and 2 missiles at another or... simply all 4 at 1 target.
Completely random group selection and completely random distribution. Could someone point me down the road to making this?
Set effect that picks a random effect tree leading to all the possibiliies is one method. An alternative is to use a periodic Create Persistent with a Switch effect that uses a single target Search Area with the random target sort that applies a counter buff. An Enumerate Area validator flips the switch if there are 3 different units with the buff to use another singe target Search Area effect That has a Behavior Count target sort followed by a random target sort so it then prioritizes units already with the buff if there are already 3 different units with it. The final 4 effects of the Create Persistent are searches linked your Launch Missile effects that requires the target to have the buff and on impact does damage and removes a count of the buff using a Remove Behavior effect. The downside of this method is that with more targets the likely hood of targeting the same target more than once is reduced.
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
Holy shit
Weapon -> Persistent with 4 ticks -> Search (Target Sort: Random) -> LM -> Damage
@Eiviyn: Go
But he wants it to hit no more than 3 different targets.
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