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

[Trigger] Problem with Stun!

Status
Not open for further replies.
  • Incarcerous
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Incarcerous *
    • Actions
      • Set TriggeringUnit = (Triggering unit)
      • Set Rope_Point = (Target point of ability being cast)
      • Set TriggeringUnitLoc = (Position of TriggeringUnit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of (Ability being cast) for (Triggering unit)) Equal to 1
        • Then - Actions
          • Unit - Create 1 Esnare 1 for (Owner of (Triggering unit)) at Rope_Point facing TriggeringUnitLoc
          • Set UnitVariable = (Last created unit)
          • Sound - Set position of EnsnareTarget <gen> to Rope_Point with Z offset 0.00
          • Trigger - Turn on Unit Group <gen>
          • Wait 3.00 seconds
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of (Ability being cast) for (Triggering unit)) Equal to 2
            • Then - Actions
              • Unit - Create 1 Esnare 2 for (Owner of (Triggering unit)) at Rope_Point facing TriggeringUnitLoc
              • Set UnitVariable = (Last created unit)
              • Sound - Set position of EnsnareTarget <gen> to Rope_Point with Z offset 0.00
              • Trigger - Turn on Unit Group <gen>
              • Wait 4.00 seconds
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of (Ability being cast) for (Triggering unit)) Equal to 3
                • Then - Actions
                  • Unit - Create 1 Esnare 3 for (Owner of (Triggering unit)) at Rope_Point facing TriggeringUnitLoc
                  • Set UnitVariable = (Last created unit)
                  • Sound - Set position of EnsnareTarget <gen> to Rope_Point with Z offset 0.00
                  • Trigger - Turn on Unit Group <gen>
                  • Wait 5.00 seconds
                • Else - Actions
      • Trigger - Turn off Unit Group <gen>
      • Sound - Destroy EnsnareTarget <gen>
      • Unit Group - Pick every unit in (Units within (100.00 + (100.00 x (Real((Level of (Ability being cast) for (Triggering unit)))))) of Rope_Point) and do (Actions)
        • Loop - Actions
          • Unit - Unpause (Picked unit)
      • Unit - Kill UnitVariable
      • Custom script: call RemoveLocation (udg_Rope_Point)
      • Custom script: call RemoveLocation (udg_TriggeringUnitLoc)
When a unit is stucked by this spell and then get hit by annother spell that stunn, its stunned for ever! So what is wrong here? Is it best that I remove the whole trigger?

Edit: The only thing unit grope does is to hurt the targets...
 
Level 9
Joined
Apr 25, 2009
Messages
468
You want an AoE Stun?
Why dont you just:

Unit Group - Pick every unit in (Units within 200 of (Triggering Unit)) and do Actions
Loop Actions
Unit - Cause (Triggering Unit) to damage (Picked Unit) with 200 damage of type Spell and Normal

Something like that...
 
Its not supposed to be mui, I am a bit lazy so I just made this in a rush ^^

Well here's the other trigger:

  • Unit Group
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units within (100.00 + (100.00 x (Real((Level of Incarcerous * for TriggeringUnit))))) of Rope_Point) and do (Actions)
        • Loop - Actions
          • Unit - Pause (Picked unit)
 
Level 12
Joined
Aug 22, 2008
Messages
911
The most recommendable to do this is to create a dummy for each unit in AOE and order each dummy to stun the targeted unit. Like thus:
  • Actions
    • Unit Group - Pick every unit in (Units within RANGE of (Triggering Unit) matching (Owner of (Matching Unit) is an enemy of (Owner of (Triggering Unit))) equal to True)
      • Loop - Actions
        • Unit - Create 1 dummy for (Owner of (Triggering Unit)) at (Position of (Picked Unit)) facing WHATEVER
        • Unit - Add a 1.00 second expiration timer to (Last Created Unit)
        • Unit - Order (Last Created Unit) to Human Mountain King - Storm Bolt (Picked Unit)
In case you wondered the dummy storm bolt is artless and its buff is edited. I'll let you do the leak removing. ^^
 
Level 22
Joined
Nov 14, 2008
Messages
3,256
the problem is that you pause units. Cant explain more further but you unpause them wrong make them remember their stun in their pause condition makin them stunned forever.

you need to first of all make it to a temp group when you pick the the units which should be paused. And also this line dont work

  • Unit Group - Pick every unit in (Units within (100.00 + (100.00 x (Real((Level of Incarcerous * for TriggeringUnit))))) of Rope_Point) and do (Actions)
there are no triggering unit in an event which is a time based. Just make the group and the trigger should be fixed.
 
Status
Not open for further replies.
Top