Need help with my trigger. (GUI)
The trigger are supposed to give the caster 25% chance to instant kill a unit, and then bounce of to the next one.
The Bouncing Part won't work, and i don't know why. I hope that someone can help me.
Trigger part for instant kill:
The trigger are supposed to give the caster 25% chance to instant kill a unit, and then bounce of to the next one.
The Bouncing Part won't work, and i don't know why. I hope that someone can help me.
Trigger part for instant kill:
-
Flintlock Gun of Piracy
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Flintlock Gun of Piracy (500 DMG)
-
-
Actions
-
Set Flintlock_rand = (Random integer number between 1 and 20)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Flintlock_rand Less than or equal to 5
-
((Target unit of ability being cast) is A Hero) Equal to False
-
-
Then - Actions
-
Set tempLoc = (Position of (Casting unit))
-
Unit - Create 1 Dummy Caster (Piracy Insta Kill) for (Owner of (Casting unit)) at tempLoc facing Default building facing degrees
-
Set Piracy_Dummy = (Last created unit)
-
Unit - Add a 3.00 second Generic expiration timer to Piracy_Dummy
-
Unit - Order Piracy_Dummy to Orc Far Seer - Chain Lightning (Target unit of ability being cast)
-
Custom script: call RemoveLocation( udg_tempLoc)
-
-
Else - Actions
-
-
-
-
Flintlock Gun of Piracy bounce
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Flintlock Gun of Piracy (Instant KILL)
-
-
Actions
-
Set tempLoc = (Position of (Target unit of ability being cast))
-
Unit - Create 1 Dummy Caster (Piracy 500) for (Owner of (Casting unit)) at tempLoc facing Default building facing degrees
-
Set Piracy_Dummy2 = (Last created unit)
-
Custom script: call RemoveLocation( udg_tempLoc)
-
Unit Group - Pick every unit in (Random 1 units from (Units within 1000.00 of tempLoc)) and do (Actions)
-
Loop - Actions
-
Set tempLoc = (Position of (Picked unit))
-
Unit - Order Piracy_Dummy2 to Orc Far Seer - Chain Lightning (Picked unit)
-
-
-
Unit - Add a 5.00 second Generic expiration timer to Piracy_Dummy2
-
Custom script: call RemoveLocation( udg_tempLoc)
-
-
Last edited: