• 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.

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.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
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.
Top