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

[Trigger] Preset help.

Status
Not open for further replies.
Level 2
Joined
Apr 20, 2010
Messages
12
I'm having trouble with a trigger, any help will be most helpful:

Effect;
Unit- A unit is attacked

Condition;
(Attacking unit) Equal to ________

Action;
Special effect - create a specail effect attached to the weapon of (Attacking unit)
Special effect - Destroy (Last created special effect)


As you see on the condition i have left a blank space, this space is supposed to contain a certain unit, but not just one unit already on the feild. I need it to work on all units of this model, such as if was has been created via building. I'm guessing you need presets to do this, so the question is:
How do i add units to a preset?

Thanks in advance :cool:
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
Because it was spoken of a model, not a unit type. That's why I inquired. Grouping of units is a general method to mark units. I would not add them an ability because that's actually more inconvenient. You need to create object editor stuff, may have to get along with its quirks, for example that the unit loses the ability when morphing unless you turn it permanent (this option is only accessible via jass though) and you cannot create new abilities ingame, thus you cannot create new flag types.
 
I need it to work on all units of this model, such as if was has been created via building
Coz in my understanding;
- Create a new unit in the object editor, referenced as 'h000' for example
- Change its model
- Then filter the attacking unit as a UnitType (in this case, the 'h000')

surely this trigger will not fire if the attacker is not footman...
  • Untitled Trigger 002
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Footman
    • Actions
      • Special Effect - Create a special effect attached to the weapon of (Attacking unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
      • Special Effect - Destroy (Last created special effect)
 
Status
Not open for further replies.
Top