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

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

Status
Not open for further replies.
Level 28
Joined
Dec 3, 2020
Messages
971
@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 ...
 

Uncle

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

  • Summon Share Damage 1.w3m
    27 KB · Views: 5
Last edited:
Status
Not open for further replies.
Top