• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to create a Trigger of Dota 2 Silencer's Stolen Intelligence?

Status
Not open for further replies.
Level 3
Joined
Jan 29, 2017
Messages
29
"Silencer will permanently steal 2 (4 with Talent) intelligence from any enemy hero that dies within 925 range or is killed by the Silencer."

I've been trying to create similar ability that give bonus attributes to a killing hero but, only if the hero themselves kills the enemy hero. Any ideas?
 
Level 15
Joined
Dec 21, 2013
Messages
910
roughly like this. i dont have warcraft anymore soo...

event: unit dies
condition: dying unit is heroes
action:
if
killing unit type is x and
unit range between kill and killed <925
then
modify attributes substract (dying unit)
modify attribute add (killing unit)

actually you can put all if on condition, or put all condition into if
 
Level 3
Joined
Jan 29, 2017
Messages
29
Correct me if I'm wrong, instead of create condition of Killing unit does it will be more effective to just create a condition of unit range between kill and killed?
 
Status
Not open for further replies.
Top