- Joined
- Jul 19, 2007
- Messages
- 855
I have imported an ability that works like the "Empower" ability in DotA and it seems to work perfect in the spellpack but when I'm importing it to my map the cleave damage doesn't seems to be correct, it almost does no damage at all! What could be the cause of this? I really have studied this ability alot of times and have imported everything required for the ability to work but still the damage isn't correct...
-
Empower Init
-
Events
-
Time - Elapsed game time is 0.01 seconds
-
-
Conditions
-
Actions
-
Hashtable - Create a hashtable
-
Set VariableSet SpellData = (Last created hashtable)
-
-
-
Empower
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Empower
-
-
Actions
-
Set VariableSet TempUnit = (Triggering unit)
-
Set VariableSet TempUnit2 = (Target unit of ability being cast)
-
Set VariableSet TempInt2 = (Level of Empower for TempUnit)
-
Set VariableSet TempLoc = (Position of TempUnit2)
-
Unit - Create 1 Dummy Caster (Empower) for (Owner of TempUnit) at TempLoc facing Default building facing degrees
-
Unit - Add Empower (Dummy) to (Last created unit)
-
Unit - Set level of Empower (Dummy) for (Last created unit) to TempInt2
-
Unit - Order (Last created unit) to Human Priest - Inner Fire TempUnit2
-
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
-
Custom script: set udg_TempHandle = udg_TempUnit2
-
Hashtable - Save TempInt2 as (Key EmpowerLevel.) of (Key TempHandle.) in (Last created hashtable).
-
Custom script: call RemoveLocation( udg_TempLoc )
-
-
-
Empower Damage
-
Events
-
Game - GDD_Event becomes Equal to 0.00
-
-
Conditions
-
(GDD_DamageSource has buff Empower ) Equal to True
-
(GDD_DamageSource is A melee attacker) Equal to True
-
-
Actions
-
Trigger - Turn off (This trigger)
-
Set VariableSet TempUnit2 = GDD_DamageSource
-
Custom script: set udg_TempHandle = udg_TempUnit2
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load (Key AttackFlag.) of (Key TempHandle.) from SpellData.) Equal to True
-
-
Then - Actions
-
Set VariableSet TempUnit = GDD_DamagedUnit
-
Set VariableSet TempReal = GDD_Damage
-
Set VariableSet TempInt2 = (Load (Key EmpowerLevel.) of (Key TempHandle.) from SpellData.)
-
Set VariableSet TempLoc = (Position of TempUnit)
-
Set VariableSet TempGroup = (Units within 240.00 of TempLoc matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of TempUnit2).) Equal to True))).)
-
Unit Group - Remove TempUnit from TempGroup.
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause TempUnit2 to damage (Picked unit), dealing (TempReal x (((Real(TempInt2)) / 10.00) + 0.10)) damage of attack type Chaos and damage type Normal
-
Special Effect - Create a special effect attached to the origin of (Picked unit) using war3mapImported\Coup de Grace.mdx
-
Special Effect - Destroy (Last created special effect)
-
-
-
Custom script: call RemoveLocation( udg_TempLoc )
-
Custom script: call DestroyGroup( udg_TempGroup )
-
-
Else - Actions
-
-
Trigger - Turn on (This trigger)
-
-