• 🏆 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] Is this bugged?

Status
Not open for further replies.
It feels like this spell is bugged, some1 it doesn't work at 100% :S

  • Incarcerous
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Incarcerous *
    • Actions
      • Set TriggeringUnit = (Triggering unit)
      • 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 (Target point of ability being cast) facing (Position of (Triggering unit))
          • Set UnitVariable = (Last created unit)
          • Set Rope_Point = (Target point of ability being cast)
          • 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 (Target point of ability being cast) facing (Position of (Triggering unit))
              • Set UnitVariable = (Last created unit)
              • Set Rope_Point = (Target point of ability being cast)
              • 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 (Target point of ability being cast) facing (Position of (Triggering unit))
                  • Set UnitVariable = (Last created unit)
                  • Set Rope_Point = (Target point of ability being cast)
                  • 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
  • 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)
I don't need it in MUI, cause it's only 1 unit who use this...
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Detail pl0x
What happens ?
Units dont get paused ?
Units dont get unpaused ?
nothing happens at all ?
 
Level 5
Joined
Jan 25, 2006
Messages
103
remove the event from unitgroup trigger.

Also on the "else do actions" remove:the following 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

add those actions to unitgroup trigger:
Unit Group
Events
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)
If ability being cast equal to ensare lvl1 do multiple actions
wait 3 seconds
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)
Unit - Unpause (Picked unit)
Unit - Kill UnitVariable
 
Status
Not open for further replies.
Top