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

Too advanced to trigger

Status
Not open for further replies.
Level 1
Joined
Sep 8, 2018
Messages
3
Hi guys I have a problem about making trigger "a unit is attacked". What I want to trigger is when this unit is attacked there will be a dummy unit casting fan of knives when the chance is met. But the problem is though the attack doesn't hit the target the trigger is working. What I want is it only can be trigger when the attacked unit got hit. Help please
 
As Warseeker already said, use a DDS (Damage Engine 5.5.0.0 is good).

Follow the install instructions (basically just copy one or two triggers to your map).

Then you use the event "Real becomes Equal to" and change it to be "DamageEvent becomes equal to 1".

If you want to modify the damage use "DamageModifierEvent becomes equal to 1" and then use the action "set variable" to change the variable "Set DamageEventAmount" to "1337" for example.

Then you refer to the damaged with "DamageEventTarget" and the damage source with "DamageEventSource".
 
Level 4
Joined
Sep 2, 2016
Messages
48
I would do it this way:
Create a new "TDamaged" trigger.
Create a new "TGetGlavie" trigger.
Add event to TGetGlavie:
Unit enters the Playable map area
Add action to TGetGlavie:
Trigger - Add to TDamaged the event Unit - (Triggering unit) is damaged
Add some buff placer to the unit with the ability. For example an orb of corruption with 0.01 Duration. Create a new buff for it.
Add action to TDamaged:
If Attacked Unit has buff (The one you made) do actions{
-make dummy
-add your glave spell
-make the dummy cast it
-remove the buff from the triggering unit
-you know the rest...
 
I would do it this way:
Create a new "TDamaged" trigger.
Create a new "TGetGlavie" trigger.
Add event to TGetGlavie:
Unit enters the Playable map area
Add action to TGetGlavie:
Trigger - Add to TDamaged the event Unit - (Triggering unit) is damaged
Add some buff placer to the unit with the ability. For example an orb of corruption with 0.01 Duration. Create a new buff for it.
Add action to TDamaged:
If Attacked Unit has buff (The one you made) do actions{
-make dummy
-add your glave spell
-make the dummy cast it
-remove the buff from the triggering unit
-you know the rest...
Unnecessarily complicated, and it leaks an event.
 
Status
Not open for further replies.
Top