• 🏆 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!

[Solved] How to detect stasis trap activation?

Level 17
Joined
Jun 2, 2009
Messages
1,137
  • Rotten Trap
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Rotten Trap unit
    • Actions
      • Set TempPoint = (Position of (Dying unit))
      • Set TempGroup = (Units within 400.00 of TempPoint)
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an enemy of (Owner of Hero_Makrura)) Equal to True
              • ((Picked unit) is A structure) Equal to False
              • ((Picked unit) is Mechanical) Equal to False
              • ((Picked unit) is alive) Equal to True
              • ((Picked unit) is Magic Immune) Equal to False
            • Then - Actions
              • Unit - Cause (Dying unit) to damage (Picked unit), dealing (Real((Intelligence of Hero_Makrura (Include bonuses)))) damage of attack type Spells and damage type Magic
            • Else - Actions
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyGroup(udg_TempGroup)
I don't know where i am mistake.
Update: Solved. There was 2 Rotten Trap unit...
 
Last edited:
Top