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

Triggers Problem

Status
Not open for further replies.
Level 1
Joined
Aug 20, 2011
Messages
4
Hi. I have a problem in triggering. I have create 2 triggers.

  • Phantom Strike Effect 1
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Attacking unit) Equal to PhantomStrikeCaster
    • Actions
      • Set PhantomStrikeUnits = (Units in (Playable map area) matching (((Matching unit) belongs to an enemy of (Owner of PhantomStrikeCaster)) Equal to True))
      • Unit Group - Pick every unit in PhantomStrikeUnits and do (Actions)
        • Loop - Actions
          • Trigger - Add to Phantom Strike Effect 2 <gen> the event (Unit - (Picked unit) Takes damage)
  • Phantom Strike Effect 2
    • Events
    • Conditions
      • (Damage source) Equal to PhantomStrikeCaster
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Remaining time for PhantomStrikeCD) Equal to 0.00
        • Then - Actions
          • Unit - Create 1 Satyr Minion for (Owner of PhantomStrikeCaster) at (Position of (Triggering unit)) facing Default building facing degrees
          • Unit - Set level of Critical Strike (Satyr Minion) for (Last created unit) to (Level of Phantom Strike for PhantomStrikeCaster)
          • Countdown Timer - Start PhantomStrikeCD as a One-shot timer that will expire in 8.00 seconds
          • Unit - Remove Phantom Strike (Spell) from PhantomStrikeCaster
          • Unit - Remove Phantom Strike buff from PhantomStrikeCaster
        • Else - Actions
Then, i try the hero and the triggers work. But, it only works to the enemies that selected when the hero attacks and the trigger does not work to the new created enemies in the map. How to update the triggers and select the new enemies?
 
Last edited:
Level 4
Joined
Aug 5, 2011
Messages
99
or add a new trigger
event: unit enters map
action: add to Phantom Strike Effect 1 the event triggering unit takes damage
the event from the first triggering and change the condition to damage source equals to...
 
Status
Not open for further replies.
Top