• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Link a summoner and his summon and do stuff

Status
Not open for further replies.
Level 31
Joined
Dec 3, 2020
Messages
1,237
@Uncle I need you...

How can I make it so when an Orc Warlock summons a Voidwalker (edited Summon Sea Elemental ability), it links them so when the Orc Warlock takes ANY damage from ANY damage source, the damage is reduced by 40% to the Orc Warlock and the Voidwalker takes 40% extra damage; the voidwalker that was summoned by the specific Orc Warlock.
The damage reduction will only happen of course if the Voidwalker is alive.

Thanks so much in advance :D ...
 
This is the rough idea:

Events:
A unit takes damage

Conditions:
Damaged unit is an Orc Warlock
Damaged unit has a summoned Voidwalker

Actions:
Set Variable DamageAbsorbed = (Damage taken * 0.40)
Set damage event to (Damage taken * 0.60)
Unit - Cause (Damage source) to deal DamageAbsorbed to the summoned Voidwalker...

It's rather simple as long as each Warlock can only have one Voidwalker. If the damage is being split between multiple Voidwalkers then you need to modify the design and figure out how you want the math to work.

Edit:
Attached a map with an MUI version that works for any number of Voidwalkers.
 

Attachments

Last edited:
Status
Not open for further replies.
Back
Top