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

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