- Joined
- Feb 23, 2007
- Messages
- 444
Im having some bug issues with this trigger. What i want is that the caster casts the ability and the damage dealt to the targeted unit is equal to "75 x the number of units around the targeted unit".
Thanks
-
ENDOEXO
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Exothermic/Endothermic
-
-

Actions
-


Set ENDOEXOran = (Random integer number between 1 and 1)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




ENDOEXOran Equal to 1
-
-



Then - Actions
-




Region - Center ENDOEXO Region <gen> on (Position of (Target unit of ability being cast))
-




Player Group - Pick every player in (All enemies of (Owner of (Casting unit))) and do (Actions)
-





Loop - Actions
-






Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
-







Loop - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(ENDOEXO Region <gen> contains (Picked unit)) Equal to False
-
-









Then - Actions
-










Skip remaining actions
-
-









Else - Actions
-
-
-
-
-
-




Player Group - Pick every player in (All enemies of (Owner of (Casting unit))) and do (Actions)
-





Loop - Actions
-






Unit Group - Pick every unit in (Units owned by (Picked player) matching ((Picked unit) Not equal to (Target unit of ability being cast))) and do (Actions)
-







Loop - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(ENDOEXO Region <gen> contains (Picked unit)) Equal to True
-
-









Then - Actions
-










Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius (Width of ENDOEXO Region <gen>) at (Center of ENDOEXO Region <gen>), dealing 75.00 damage of attack type Magic and damage type Cold
-










Set numofunits2 = (Number of units in (Units owned by (Picked player) matching ((Picked unit) Not equal to (Target unit of ability being cast))))
-
-









Else - Actions
-
-
-
-
-
-




Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Real(numofunits2)) x 75.00) damage of attack type Spells and damage type Fire
-




Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
-
-



Else - Actions
-
-
-
Thanks
