- Joined
- Jul 9, 2008
- Messages
- 253
Hello everybody, I got some problems with one of my spells. The spell should do AoE damage per second for 5 seconds long on the place where you used it. But I've been trying for so long that I can't think anymore. So I need your help to figure it out.
(If the triggers don't make sense, then it's because I was desperate to make it work)
Trigger 1:

Thanks in advance, Quetzalcotl
(If the triggers don't make sense, then it's because I was desperate to make it work)
Trigger 1:
-
Events
-

Unit - A unit Starts the effect of an ability
-
-
Conditions
-

(Ability being cast) Equal to Emberstorm
-
-
Actions
-

Set Unit = (Casting unit)
-

Set Ability = (Ability being cast)
-

Set Player = (Owner of Unit)
-

-------- --------------------------- --------
-

Set ConstantDamage = 10.00
-

Set LevelDamage = 10.00
-

Set AbilityPowerFactor = 0.20
-

Set Number = 5
-

Set Time = 1.00
-

-------- --------------------------- --------
-

Set Level = (Level of Ability for Unit)
-

Set Damage = (((Real(Level)) x LevelDamage) + ConstantDamage)
-

Set Location = (Target point of ability being cast)
-

-------- --------------------------- --------
-

Unit - Create 1 Dummy for Player at Location facing Default building facing degrees
-

Set Dummy = (Last created unit)
-

Unit - Add a 5.10 second Generic expiration timer to Dummy
-

-------- --------------------------- --------
-

Hashtable - Save Damage as 0 of (Key (Last created unit)) in ESTable
-

Hashtable - Save Number as 1 of (Key (Last created unit)) in ESTable
-

Hashtable - Save Time as 2 of (Key (Last created unit)) in ESTable
-

Unit Group - Add Dummy to ESGroup
-

-------- --------------------------- --------
-

Custom script: call RemoveLocation( udg_Location )
-

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


If - Conditions
-



(Emberstorm <gen> is on) Equal to False
-
-


Then - Actions
-



Trigger - Turn on Emberstorm <gen>
-
-


Else - Actions
-
-
-
Events
-

Time - Every 0.10 seconds of game time
-
-
Conditions
-
Actions
-

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


If - Conditions
-



(Number of units in ESGroup) Greater than 0
-
-


Then - Actions
-



Unit Group - Pick every unit in ESGroup and do (Actions)
-




Loop - Actions
-





Set Damage = (Load 0 of (Key (Picked unit)) from ESTable)
-





Set Number = (Key (Load 1 of (Key (Picked unit)) in ESTable))
-





Set Time = (Load 2 of (Key (Picked unit)) from ESTable)
-





Set Unit = (Picked unit)
-





Set Player = (Owner of Unit)
-





Set Location = (Position of Unit)
-





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






If - Conditions
-







Number Greater than 0
-
-






Then - Actions
-







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








If - Conditions
-









And - All (Conditions) are true
-










Conditions
-











Time Greater than 0.00
-
-
-
-








Then - Actions
-









Hashtable - Save (Time - 0.10) as 2 of (Key (Picked unit)) in ESTable
-
-








Else - Actions
-









Hashtable - Save (Number - 1) as 1 of (Key (Picked unit)) in ESTable
-









Hashtable - Save (Time + 1.00) as 2 of (Key (Picked unit)) in ESTable
-









-------- --------------------------- --------
-









Set Group = (Units within 180.60 of Location matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an ally of Player) Equal to False)))
-









Unit Group - Pick every unit in Group and do (Unit - Cause Unit to damage (Picked unit), dealing Damage damage of attack type Spells and damage type Normal)
-









-------- --------------------------- --------
-









Special Effect - Create a special effect at Location using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-









Special Effect - Destroy (Last created special effect)
-
-
-
-






Else - Actions
-







Unit Group - Remove Unit from ESGroup
-







Hashtable - Clear all child hashtables of child (Key (Picked unit)) in ESTable
-
-
-





Custom script: call RemoveLocation( udg_Location )
-
-
-
-


Else - Actions
-



Trigger - Turn off (This trigger)
-
-
-
Thanks in advance, Quetzalcotl



