• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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 :eek:ne target spell:grin:
 
Level 8
Joined
Mar 6, 2014
Messages
203
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 :eek:ne 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.
Top