- Joined
- May 15, 2009
- Messages
- 192
Hello everyone, I am in need of triggering help again. (Im starting to feel like I should pay back the Hive somehow?)
This time around I have tried to do a "Needle Trap" when a unit steps upon a placed trap, it will eject waves of knives. However, the trap won't seem to start ejecting knives, when you come close to it.
Here are my triggers, a bit messy looking sorry.
This time around I have tried to do a "Needle Trap" when a unit steps upon a placed trap, it will eject waves of knives. However, the trap won't seem to start ejecting knives, when you come close to it.
Here are my triggers, a bit messy looking sorry.
-
Needle Trap
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Needle Trap
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Level of Needle Trap for (Triggering unit)) Equal to 1
- (Level of Needle Trap for (Triggering unit)) Equal to 2
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set NeedleTrap_Loop = 1
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Level of Needle Trap for (Triggering unit)) Equal to 3
- (Level of Needle Trap for (Triggering unit)) Equal to 4
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set NeedleTrap_Loop = 2
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Level of Needle Trap for (Triggering unit)) Equal to 5
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set NeedleTrap_Loop = 3
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Set NeedleTrap_Caster = (Triggering unit)
- Set NeedleTrap_CasterLoc = (Position of NeedleTrap_Caster)
- Set NeedleTrap_CasterOwner = (Owner of NeedleTrap_Caster)
- Unit - Create 1 Needle Trap for NeedleTrap_CasterOwner at NeedleTrap_CasterLoc facing Default building facing degrees
- Unit - Add a 30.00 second Healing Ward expiration timer to (Last created unit)
- Unit Group - Add (Last created unit) to NeedleTrap_Group[1]
- Custom script: call RemoveLocation(udg_NeedleTrap_CasterLoc)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Needle Trap Loop
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in NeedleTrap_Group[1] and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Matching unit) is alive) Equal to True
-
Then - Actions
- Set NeedleTrap_Picked = (Picked unit)
- Set NeedleTrap_PickedLoc = (Position of NeedleTrap_Picked)
-
Unit Group - Pick every unit in (Units within 375.00 of NeedleTrap_PickedLoc matching ((((Matching unit) is A structure) Not equal to True) and (((Matching unit) belongs to an enemy of NeedleTrap_CasterOwner) Equal to True))) and do (Actions)
-
Loop - Actions
-
For each (Integer NeedleTrap_Loop) from 1 to NeedleTrap_Loop, do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to NeedleTrap_Group[2]
- Unit - Create 1 Dummy for NeedleTrap_CasterOwner at NeedleTrap_PickedLoc facing Default building facing degrees
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Add Needle Spray to (Last created unit)
- Unit - Set level of Needle Spray for (Last created unit) to (Level of Needle Trap for NeedleTrap_Caster)
- Unit - Order (Last created unit) to Night Elf Warden - Fan Of Knives
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in NeedleTrap_Group[2]) Greater than 0
-
Then - Actions
- Set NeedleTrap_SeconPickedLoc = (Position of (Picked unit))
- Unit - Create 1 Dummy for NeedleTrap_CasterOwner at NeedleTrap_SeconPickedLoc facing Default building facing degrees
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Add Needle Poison to (Last created unit)
- Unit - Order (Last created unit) to Neutral Naga Sea Witch - Frost Arrows (Picked unit)
- Unit - Remove NeedleTrap_Picked from the game
- Else - Actions
-
If - Conditions
-
For each (Integer NeedleTrap_Loop) from 1 to NeedleTrap_Loop, do (Actions)
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_NeedleTrap_PickedLoc)
- Custom script: call RemoveLocation(udg_NeedleTrap_SeconPickedLoc)
- Custom script: call DestroyGroup(udg_NeedleTrap_Group[2])
-
Unit Group - Pick every unit in NeedleTrap_Group[1] and do (Actions)
-
Events