- Joined
- May 24, 2009
- Messages
- 55
Help : Restructuring this spell into a Ground AOE DoT spell from its currect Single Target DoT nature.
Goal : I wish to modify this spell so that when the spell is cast on a specific ground, any enemy unit
that remains in that area will be dealt damage, but if the spell is still in effect and the unit leaves the area,
that unit will not be damaged. (Kinda like Flame Strike)
Alternatives: If there is already a spell similar to what i described in my goal, please point me that way.
Any form of help is greatly appreciated, thank you.
Goal : I wish to modify this spell so that when the spell is cast on a specific ground, any enemy unit
that remains in that area will be dealt damage, but if the spell is still in effect and the unit leaves the area,
that unit will not be damaged. (Kinda like Flame Strike)
Alternatives: If there is already a spell similar to what i described in my goal, please point me that way.
Any form of help is greatly appreciated, thank you.
-
BerzerkeR's Dot
-
Events
-
Unit - A unit starts the effect of an ability
-
-
Conditions
-
(Ability being cast) equal to DoT
-
-
Actions
-
Custom script: local unit a = GetTriggerUnit()
-
Custom script: local unit b = GetSpellTargetUnit()
-
Custom script: local integer c = GetUnitAbilityLevelSwapped(GetSpellAbilityId(), a)
-
Custom script: local integer d = 1
-
Custom script: local real e = 100
-
Custom script: local real f = (e*I2R(c))
-
Custom script: local real e = 100
-
Custom script: local real h = (g*I2R(c))
-
Custom script: local real i = 1.0
-
Custom script: call UnitDamageTarget(a, b, f, true,false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_UNKNOWN,WEAPON_TYPE_WHOKNOWS)
-
Custom script: call DestroyEffect (AddSpecialEffectTarget("Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayDamage.mdl",b,"chest"))
-
Custom script: call DestroyEffect (AddSpecialEffectTarget("Abilities\\Spells\\NightElf\\ManaBurn\\ManaBurnTarget.mdl",b,"origin"))
-
Custom script: loop
-
Custom script: exitwhen GetBooleanOr(d > 10, GetUnitState(b, UNIT_STATE_LIFE) <= 0.405)
-
Custom script: call TriggerSleepAction(i)
-
Custom script: call UnitDamageTarget(a, b, h, true, false, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_UNKNOWN,WEAPON_TYPE_WHOKNOWS)
-
Custom script: call DestroyEffect (AddSpecialEffectTarget("Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayDamage.mdl",b,"chest"))
-
Custom script: call DestroyEffect (AddSpecialEffectTarget("Abilities\\Spells\\Other\\AcidBomb\\BottleImpact.mdl",b,"chest"))
-
Custom script: set d = d + 1
-
Custom script: endloop
-
Custom script: set a = null
-
Custom script: set b = null
-
-
Last edited: