Hi
I'm kind of new to this with custom abilities so please take that into account. I've made a trigger that's supposed to 'select' all units within range then damage them if they're hostile to the player, and heal those who are allies. Anyhow, it looks like this:
It's most likely something wrong with 'Picked unit' or something similar, wasn't sure if I choose the right "selection method".
Thanks for taking a peak
I'm kind of new to this with custom abilities so please take that into account. I've made a trigger that's supposed to 'select' all units within range then damage them if they're hostile to the player, and heal those who are allies. Anyhow, it looks like this:
Code:
Holy Judgement
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Holy Judgement
Actions
Set HolyJudgementCaster = (Position of (Casting unit))
Animation - Play (Casting unit)'s spell animation
Special Effect - Create a special effect at HolyJudgementCaster using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl
Special Effect - Create a special effect at (HolyJudgementCaster offset by (200.00, 0.00)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Create a special effect at (HolyJudgementCaster offset by (100.00, -100.00)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Create a special effect at (HolyJudgementCaster offset by (0.00, -200.00)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Create a special effect at (HolyJudgementCaster offset by (-100.00, -100.00)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Create a special effect at (HolyJudgementCaster offset by (-200.00, 0.00)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Create a special effect at (HolyJudgementCaster offset by (-100.00, 100.00)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Create a special effect at (HolyJudgementCaster offset by (0.00, 200.00)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Create a special effect at (HolyJudgementCaster offset by (100.00, 100.00)) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Unit Group - Pick every unit in (Units within 500.00 of HolyJudgementCaster matching ((Owner of (Picked unit)) Equal to (Random player from (All enemies of (Owner of (Casting unit)))))) and do (Actions)
Loop - Actions
Wait 0.10 seconds
Unit - Cause (Casting unit) to damage (Picked unit), dealing 500.00 damage of attack type Spells and damage type Divine
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Undead\CarrionSwarm\CarrionSwarmDamage.mdl
Unit Group - Remove all units from (Last created unit group)
Unit Group - Pick every unit in (Units within 500.00 of HolyJudgementCaster matching ((Owner of (Picked unit)) Equal to (Random player from (All allies of (Owner of (Casting unit)))))) and do (Actions)
Loop - Actions
Wait 0.10 seconds
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 500.00)
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Human\Heal\HealTarget.mdl
It's most likely something wrong with 'Picked unit' or something similar, wasn't sure if I choose the right "selection method".
Thanks for taking a peak