- Joined
- May 15, 2013
- Messages
- 3,781
Hey there Hive folks!
I have this annoying problem of a spell. I'll give the details,
The caster casts a taunt, which will give a buff to nearby enemy units, now the caster has another ability which is called Final Strike.
Which will instantly kill units below or equal to lvl 5 and deals 450 damage to heroes or units above lvl 5.
Now when the caster uses Final Strike on a hero while it has the taunt buff, and died, will give the caster a 1 bonus point of its strength. Stacks just up to 15.
-----------------
Here are the triggers:
The problem here is that when I put the condition which is just below the "Bonus" comment action,
any ideas on why this stuff doesn't happen?
I have this annoying problem of a spell. I'll give the details,
The caster casts a taunt, which will give a buff to nearby enemy units, now the caster has another ability which is called Final Strike.
Which will instantly kill units below or equal to lvl 5 and deals 450 damage to heroes or units above lvl 5.
Now when the caster uses Final Strike on a hero while it has the taunt buff, and died, will give the caster a 1 bonus point of its strength. Stacks just up to 15.
-----------------
Here are the triggers:
-
FS Configuration
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


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


-------- The ability that used in Finale Strike --------
-


Set FS_Ability = Final Strike (Varian)
-


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


-------- The causing damage to the heroes and the level up higher in 6. --------
-


Set FS_Damage = 450.00
-


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


-------- This is the instantly kill level of? --------
-


Set FS_InstantlyKillLevel = 5
-


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


-------- What buff is used? --------
-


Set FS_Buff = Gladiator's Wrath
-


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


-------- The attacktype of the damage. --------
-


Set FS_AttackType = Chaos
-


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


-------- The damagetype of the damage. --------
-


Set FS_DamageType = Death
-


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


-------- The special effects of the caster when the spell is cast and attachments of the special effects. --------
-


Set FS_CasterFx = Abilities\Weapons\PhoenixMissile\Phoenix_Missile_mini.mdx
-


Set FS_CasterFxAttach = weapon
-


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


-------- The special effects of the target when the spell is cast and attachments of the special effects. --------
-


Set FS_TargetFx = Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
-


Set FS_TargetFxAttach = chest
-


-------- ------------------------------- --------
-
-
-
FS Execution
-

Events
-


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

Conditions
-


(Ability being cast) Equal to FS_Ability
-
-

Actions
-


Set FS_Caster = (Triggering unit)
-


Set FS_Target = (Target unit of ability being cast)
-


Set FS_TargetLevel = (Level of FS_Target)
-


Special Effect - Create a special effect attached to the FS_CasterFxAttach of FS_Caster using FS_CasterFx
-


Special Effect - Destroy (Last created special effect)
-


Special Effect - Create a special effect attached to the FS_TargetFxAttach of FS_Target using FS_TargetFxAttach
-


Special Effect - Destroy (Last created special effect)
-


Custom script: call DestroyEffect( AddSpecialEffect( udg_FS_TargetFx, GetUnitX( udg_FS_Target ), GetUnitY( udg_FS_Target ) ) )
-


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



If - Conditions
-




Or - Any (Conditions) are true
-





Conditions
-






(FS_Target is A Hero) Equal to True
-






FS_TargetLevel Greater than FS_InstantlyKillLevel
-
-
-
-



Then - Actions
-




Unit - Cause FS_Caster to damage FS_Target, dealing FS_Damage damage of attack type FS_AttackType and damage type FS_DamageType
-




-------- Bonus --------
-




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





If - Conditions
-






(FS_Target is A Hero) Equal to True
-






(FS_Target has buff FS_Buff) Equal to True
-
-





Then - Actions
-






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







If - Conditions
-








(FS_Target is dead) Equal to True
-
-







Then - Actions
-








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









If - Conditions
-










FS_Bonus Not equal to 15
-
-









Then - Actions
-










Hero - Modify Strength of FS_Caster: Add 1
-










Set FS_Bonus = (FS_Bonus + 1)
-
-









Else - Actions
-
-
-







Else - Actions
-
-
-





Else - Actions
-
-
-



Else - Actions
-
-


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



If - Conditions
-




FS_TargetLevel Less than or equal to FS_InstantlyKillLevel
-
-



Then - Actions
-




Unit - Kill FS_Target
-
-



Else - Actions
-
-
-
The problem here is that when I put the condition which is just below the "Bonus" comment action,
-
(FS_Target has buff FS_Buff) Equal to True
any ideas on why this stuff doesn't happen?











