Windrunner's 1st skill

Status
Not open for further replies.

osh

osh

Level 2
Joined
Dec 8, 2021
Messages
10
Hello. I want to recreate windrunner of dota 1's first skill, the arrow that passes through targets while damage is reduced. Can anyone kindly help me? Thanks.
 
So Powershot is basically just Shockwave or Carrion Swarm with the added effect of dealing X% less damage per hit.

A system like this should easily be able to manage it:

You would simply adjust the Damage variable whenever it deals damage. In that system you should be able to find a line like this:
  • Unit - Cause SW_Caster[SW_Loop] to damage TempUnit, dealing SW_DamageX[SW_Loop] damage of attack type SW_AttackType[SW_Loop] and damage type SW_DamageType[SW_Loop]
SW_DamageX[SW_Loop] is the variable that contains the damage of the Shockwave. So after dealing damage you simply adjust this variable to deal X% less damage. I believe Powershot does 10% less per hit:
  • Set Variable SW_DamageX[SW_Loop] = (SW_DamageX[SW_Loop] * 0.90)
This is done using the Arithmetic function.
 
Last edited:
Status
Not open for further replies.
Back
Top