• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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