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

Increase Next Damage

Status
Not open for further replies.
Level 12
Joined
May 12, 2012
Messages
631
Hello again Hive :grin:

I have trouble creating an active spell which when cast, it increase your next normal attack by 125% and deativate upon attacking
Pretty much like Raigor's Enchant Totem skill in Dota http://www.playdota.com/heroes/earthshaker#skill137 but it only have 1 level and it increases by 125%

Im sure it's trigger because I can't input a % in the Object Editor

Thanks it advance :grin::grin::grin:
 
Level 13
Joined
Mar 29, 2012
Messages
542
You may need this.

Save the unit attack damage, when a unit takes damage from the caster of the spell, calculate it and cause the bonus damage.

The calculation maybe like this : ((<attack damage> x <percent bonus damage>) / 100) - <attack damage> = bonus damage
Make caster to cause bonus damage to unit that takes damage from the caster
 

Kusanagi Kuro

Hosted Project: SC
Level 10
Joined
Mar 11, 2012
Messages
708
Actually, u can do that with Roar ability. When the unit use that skill, increase its damage. When it attacks, remove the Roar's buff.
 
Yes, if you want the bonus damage to just include your base damage(like in dota), just use the roar ability. Set the allowed targets to Self, and the Damaged Increase field to 1.25.

However, if you want it to include green numbers(From items etc...), it's alot more complicated, and probably not worth the effort.

As for removing the damage bonus, you can't just remove it when the unit attacks, because the trigger condition unit is attacked procs before the attack is completed, so the bonus damage would be removed before the attack hits. What you need is to use a damage detection system to detect when the attack damages the target, then remove the roar buff from the unit.
 
Status
Not open for further replies.
Top