Spell scaling killed units

Status
Not open for further replies.
Level 1
Joined
Aug 20, 2014
Messages
3
I would like to make a spell wich , for exemple :
Deals 1 damage to target unit , whenever you kill a unit with this spell , deals 1 more damage with this spell;
I dont care what spell is , but if it's possible :one target spell:grin:
 
I would like to make a spell wich , for exemple :
Deals 1 damage to target unit , whenever you kill a unit with this spell , deals 1 more damage with this spell;
I dont care what spell is , but if it's possible :one target spell:grin:

yes its possible you just only need 2 trigger. 1st is for the spell and the 2nd is for unit killed. Goto variable editor -> press ctrl b..
create a integer variable name it damage. Then create unit variable name caster. And last create unit variable name it target.

This are your variables
Damage(Integer)
Caster(unit)
Target(unit)

Now lets go to your 1 trigger.
event
Unit start effect of ability
condition
ability being cast = stormbolt
action
Set caster = triggering unit
Set damage = 1
Set target = target unit of ability cast
Cause by caster to target deals "damage" normal normal

Now lets go with 2nd trigger


Event
unit dies
condition
killing unit = caster
Action
set damage = damage + 1

Your'e done!
 
Status
Not open for further replies.
Back
Top