- Joined
- Mar 23, 2008
- Messages
- 1,813
What sort of variable should i use for this trigger?
-
Events
- Lightning Strike
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Rune of Lightning Strike
-
Actions
- Set LightningTaunt_Target = (Casting unit)
-
Unit Group - Pick every unit in (Units within 400.00 of (Position of LightningTaunt_Target)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is A structure) Equal to False
- ((Owner of (Picked unit)) is an enemy of (Owner of LightningTaunt_Target)) Equal to True
-
Then - Actions
-
[COLOR="Red"]----->[/COLOR]Set Variable = (Picked unit)[COLOR="Red"]<-----[/COLOR]
- Set Lightning_Damage = ((Intelligence of LightningTaunt_Target (Include bonuses)) x (Level of Rune of Lightning Strike for LightningTaunt_Target))
- Unit - Cause LightningTaunt_Target to damage (Picked unit), dealing (Real(Lightning_Damage)) damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
- Trigger - Turn on Lightning Strike Taunt <gen>[COLOR="Yellow"]This one is for a trigger that orders the picked units to attack the caster, but if i use the variable that i set earlier in the trigger only one of the units the spell damages attacks me[/COLOR]
-
[COLOR="Red"]----->[/COLOR]Set Variable = (Picked unit)[COLOR="Red"]<-----[/COLOR]
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions