• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Multishot using battlestations (Garrison tower using units and then increase multishot number of attacks)

Level 5
Joined
Sep 10, 2023
Messages
69
Hello I want to make a multishot ability for towers than when you garrison units on the tower it increases the number of arrows shot. There is a thread with a trigger but I cant figure the right number of attacks, the creator had the same problem. When I try different number of units on the tower it stays the same number of arrows shot. Has anyone made a skill like this?


1721870007444.png


1721870038598.png

1721870060342.png
 

Attachments

  • Garrison And Multishot.w3x
    18 KB · Views: 5

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
whats a dummy attacker?
A Dummy unit is any unit with the Locust ability - which makes a unit unselectable, uncommandable (outside of triggers), untargetable, invulnerable, and prevents it from being influenced by "nearby unit" effects (auras, aoe abilities, set unit group, etc).
1722016130894.png

People use these to cast spells on command. For example, a Dummy unit could cast Bloodlust on a group of allied units. You've probably played a custom map before where a common spell that normally targets 1 unit was able to target a group of units instead (this is how).

A standard Dummy setup:
1) Copy and paste the Locust.
2) Set Model = None, Shadow = None, Attacks Enabled = None, Movement Type = None, Speed Base = 0.
3) Optionally, you can download and use this Dummy model. Doing this along with modifying the unit's Art fields can fix any Art related problems.

A Dummy "attacker" simply implies that the Dummy unit has it's Attacks Enabled = Attack 1 Only, and it's role will be to attack enemy units rather than to cast spells.

So using triggers, you would create these Dummy unit(s) on top of your Guard Tower (they have no collision and are completely hidden from sight) and use them to handle the extra attacks. You're creating the illusion that the Guard Tower is attacking multiple units when it's really the Guard Tower + multiple "Dummy guard towers" stacked on top of it. It's not the easiest thing to setup though, because these units can and will try to attack the same target, so you'd need a system in place to prevent that.

Maybe Cheshire knows of an existing system or can create one for you.
 
Last edited:
Level 5
Joined
Sep 10, 2023
Messages
69
A Dummy unit is any unit with the Locust ability - which makes a unit unselectable, uncommandable (outside of triggers), untargetable, invulnerable, and prevents it from being influenced by "nearby unit" effects (auras, aoe abilities, set unit group, etc).
View attachment 481404
People use these to cast spells on command. For example, a Dummy unit could cast Bloodlust on a group of allied units. You've probably played a custom map before where a common spell that normally targets 1 unit was able to target a group of units instead (this is how).

A standard Dummy setup:
1) Copy and paste the Locust.
2) Set Model = None, Shadow = None, Attacks Enabled = None, Movement Type = None, Speed Base = 0.
3) Optionally, you can download and use this Dummy model as well as modify the unit's Art fields to make missiles/special effects appear correctly.

A Dummy "attacker" simply implies that the Dummy unit has it's Attacks Enabled = Attack 1 Only, and it's role will be to attack enemy units rather than to cast spells.

So using triggers, you would create these Dummy unit(s) on top of your Guard Tower (they have no collision and are completely hidden from sight) and use them to handle the extra attacks. You're creating the illusion that the Guard Tower is attacking multiple units when it's really the Guard Tower + multiple "Dummy guard towers" stacked on top of it. It's not the easiest thing to setup though, because these units can and will try to attack the same target, so you'd need a system in place to prevent that.

Maybe Cheshire knows of an existing system or can create one for you.
I understand know thaks, but yeah the problem would be to make them attack different units but I guess thats not to bad.
 
Level 5
Joined
Sep 10, 2023
Messages
69
Can you make the units that dont have movement "Fly" I made it with a dummy unit but the units shoot from the middle of the tower and it looks weird
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
Can you make the units that dont have movement "Fly" I made it with a dummy unit but the units shoot from the middle of the tower and it looks weird
A Dummy unit can be created anywhere if you use the settings I suggested.

But you can adjust the Projectile (Missile) offset of your Guard Tower here:

MissileOffset.png
 
Top