- Joined
- Jun 10, 2013
- Messages
- 473
hey I've been helped quite extensively by the user Flux and he has developed a trigger which should work perfectly for my desired ability how ever it just doesn't and neither of us can figure out why. btw I have a DDS installed in case that conflicts with any thing
Desired ability's function: When ever a unit dies around the Avenger when she has the Avenger of the Forests ability (based on devotion aura) she will be buffed with a custom bloodlust and inner fire casted on her by a dummy
here is the trigger which doesn't work oddly for me
Desired ability's function: When ever a unit dies around the Avenger when she has the Avenger of the Forests ability (based on devotion aura) she will be buffed with a custom bloodlust and inner fire casted on her by a dummy
here is the trigger which doesn't work oddly for me
-
Avenger
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Triggering unit)) Not equal to Dummy Spellcaster
-
Actions
- Game - Display to (All players) the text: A Unit Dies
- Set TempLoc = (Position of (Triggering unit))
- Set TempOwner = (Triggering player)
- Set CreateDummy = True
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 650.00 of TempLoc) and do (Actions)
-
Loop - Actions
- Set TempUnit = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (TempUnit is alive) Equal to True
- (TempUnit belongs to an ally of TempOwner) Equal to True
- (Level of Avenger of the Forests ( Avenger ) for TempUnit) Greater than 0
-
Then - Actions
- Game - Display to (All players) the text: ((Name of TempUnit) + have the ability)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- CreateDummy Equal to True
-
Then - Actions
- Set CreateDummy = False
- Game - Display to (All players) the text: Dummy Unit Created
- Unit - Create 1 Dummy Spellcaster for TempOwner at TempLoc facing Default building facing degrees
- Set Dummy = (Last created unit)
- Unit - Add a 0.20 second Generic expiration timer to Dummy
- Unit - Add Bloodlust ( attack speed increase for AvengeroftheForests ) to Dummy
- Unit - Add Inner Fire ( damage increase for AvengeroftheForests ) to Dummy
- Else - Actions
-
If - Conditions
- Set TempLoc2 = (Position of TempUnit)
- Unit - Move Dummy instantly to TempLoc2
- Custom script: call RemoveLocation(udg_TempLoc2)
- Unit - Order Dummy to Human Priest - Inner Fire TempUnit
- Unit - Order Dummy to Orc Shaman - Bloodlust TempUnit
- Game - Display to (All players) the text: (Ordered the Dummy to Cast Bloodlust and InnerFire on + (Name of TempUnit))
-
Else - Actions
- Game - Display to (All players) the text: ((Name of TempUnit) + doesn't have the ability)
-
If - Conditions
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TempLoc)
-
Events