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

What is wrong with the "targets" section?

Level 24
Joined
Feb 27, 2019
Messages
833
Here is a rough draft of how the target types work for units.

Target Types: Allied, Enemy, Friend, Neutral, Player Units
Allied: Can target Allied players
Enemy: Can target Enemy players
Friend: Can target Allied players and Yourself
Neutral: Can target Neutral Passive
Player units: Can target Yourself
None: Can target All players

Target Types: Self, Not self (Ignores Target Types: Allied, Enemy, Friend, Neutral, Player Units)
Self: Can target Self
Not self: Can target any unit that is Not self
Both: Can target any unit
None:

Target Types: Alive, Dead
Alive: Must target a living unit
Dead: Must target a dead unit
Both: Can target living and dead units
None: Must target a living unit

Target Types: Invulnerable, Vulnerable
Invulnerable: Must target an Invulnerable unit
Vulnerable: Must target a Vulnerable unit
Both: Can target Invulnerable and Vulnerable units
None: Must target a Vulnerable unit

Target Types: Hero, Non-Hero
Hero: Must target a hero unit
Non-Hero: Must target a Non-Hero unit
Both: Can target Hero and Non-Hero units
None: Can target Hero and Non-Hero units

Target Types: Air, Ground, Structure, Ward
Air: Can target Air units
Ground: Can target Ground units
Structure: Can target Structures
Ward: Can target Wards
None: Can target all units

Target Types: Mechanical, Organic
Mechanical: Must target a Mechanical unit
Organic: Must target an Organic unit
Both: Can target Mechanical and Organic units
None: Can target Mechanical and Organic units

Target Types: Suicidal, Non-suicidal
Suicidal: Must target a Suicidal units
Non-suicidal: Must target a Non-suicidal units
Both: Can target Suicidal and Non-suicidal units
None: Can target Suicidal and Non-suicidal units

Target Types: Ancient, Non-Ancient
Ancient: Must target an Ancient unit
Non-Ancient: Must target a Non-Ancient unit
Both: Can target Ancient and Non-Ancient units
None: Can target Ancient and Non-Ancient units

As an example with your current Target Types of Enemy, Hero, Structure, Ancient and Mechanical would mean the spell must target an enemy-hero-structure-ancient-mechanical unit.
 
Last edited:
Hero, Non-Hero, Mechanical, Ancient, Non-Ancient, Enemy

I need to know from all the following default melee units, which ones it can and cannot hit?
1. Peasant
2. Archmage
3. Siege Engine
4. Town Hall
5. Tree of Life

If you want to be able to attack both Siege Engine and Town Hall, only include Mechanical. If you only want Town Hall then include Structure.
 
Level 18
Joined
Jun 2, 2009
Messages
1,233
How about enemy heroes and structures?
Hero, Non-Hero, Mechanical, Ancient, Non-Ancient, Enemy

I need to know from all the following default melee units, which ones it can and cannot hit?
1. Peasant
2. Archmage
3. Siege Engine
4. Town Hall
5. Tree of Life

If you want to be able to attack both Siege Engine and Town Hall, only include Mechanical. If you only want Town Hall then include Structure.
Hmmmm. Let me tell you what "exactly" i am trying to do. One of my maps called Battleships. Maybe you know these games.
Players are buying guns and guns shooting automatically and of course, all of them are Phoenix Fire.
I had a weapon called Fire Cannon. It was hitting HEROES Only. I was released huge update but Fire Cannon is pretty useles now.

This is why i have decided to do something like this. I want to make it attack enemy buildings and ancients
We can made changes about ancient. There is only 1 Ancient type unit in the map. It is a normal unit actually. But i want to make it attack this unit but NOT rest of the normal units. Because there are many normal units, heroes and enemy structures/buildings.
Fire Cannon
Targets: Enemy Heroes, Enemy Structures and X UNIT
X unit is the only unit i want to make it attack.

Or at least i can make it attack to X unit via triggers. But i want to make it attack enemy | hero | structure
 

Remixer

Map Reviewer
Level 33
Joined
Feb 19, 2011
Messages
2,112
This is why i have decided to do something like this. I want to make it attack enemy buildings and ancients
We can made changes about ancient. There is only 1 Ancient type unit in the map. It is a normal unit actually. But i want to make it attack this unit but NOT rest of the normal units.
You either need to adjust the "Targeted As" field to such state that it can be inclusive to a single unit, but exclusive to other normal units to make this happen. This can be very problematic, however if there are a lot of units and a lot of different target groups for weapons to target.

Another (perhaps more sophisticated) solution is to use triggers for the effect. This would give more control over how it functions.
 
Ah, Battleships. That gives me a gist of the idea, similar to Battle Tanks in a way.

How many slot available for the cannon? If there's more than one slot, I'd split the targeting over several Phoenix Fire abilities so they can aim independently. Not the ideal way, but it can work.

This means you want an attack that can aim both Archmage and Town Halls, but not Peasant or Siege Engines. Curious, is the special unit classified as building too or not?

I'd do two weapons here: one for hero and one for structure. I observed Battle Tanks doesn't have weapons that aim both hero and structure at the same time, probably for this reason.
 
Top