- Joined
- Feb 17, 2017
- Messages
- 26
Hello everyone,
I'm new to the forum but I have quite some experience to the WE already.
Basically what I'm trying to do is create an aura spell that can absorb a specified attack type, eventually with help of triggers. Please note I am not looking for ANY kind of attack reduction like berserk or hardened skin.
Basically this is the context:
I created a hero who can cast a spell named "wrath of fire", which is basically a copy of the mountain king's thunder clap, with the difference being that it deals damage of type SPELL => FIRE to any nearby units (including ally) and of course without the thunder clap's buff and effect. I did fine with the triggers so far.
The reason I changed the targets to enemy AND ally is for balance reasons, and also because I wanted to include another aura spell that will reduce fire damage taken to allies, protecting them from the fiery blast.
Let me be clear, "just change the targets to enemy only" is not an answer I will accept, this is the way I want it.
I managed to create a dummy aura around the hero giving a dummy buff to him and his nearby allies with all the animations and other artistic stuff I need. The concerned units really look like they have the effect of that buff.
But what's missing is the actual effect of that buff. And I can't find a way to simulate it with triggers.
So far I think that the trigger code should look something like this:
Event:
A Unit is attacked
Condition:
Attack type is equal to Spell => Fire
Action:
Pick all units of the playable map area
If picked unit has "specific buff", then reduce damage taken by xx%, else Do nothing
Here's my main problem: I don't know if there are a condition and an action that can do this in the WE. I mean I didn't find any sort of "attack type" in the boolean condition neither have I found an action that reduces a picked unit's taken damage.
It's just frustrating to see how close I am to achieve what I want...
Anyway,
Thank you in advance for your support
I'm new to the forum but I have quite some experience to the WE already.
Basically what I'm trying to do is create an aura spell that can absorb a specified attack type, eventually with help of triggers. Please note I am not looking for ANY kind of attack reduction like berserk or hardened skin.
Basically this is the context:
I created a hero who can cast a spell named "wrath of fire", which is basically a copy of the mountain king's thunder clap, with the difference being that it deals damage of type SPELL => FIRE to any nearby units (including ally) and of course without the thunder clap's buff and effect. I did fine with the triggers so far.
The reason I changed the targets to enemy AND ally is for balance reasons, and also because I wanted to include another aura spell that will reduce fire damage taken to allies, protecting them from the fiery blast.
Let me be clear, "just change the targets to enemy only" is not an answer I will accept, this is the way I want it.
I managed to create a dummy aura around the hero giving a dummy buff to him and his nearby allies with all the animations and other artistic stuff I need. The concerned units really look like they have the effect of that buff.
But what's missing is the actual effect of that buff. And I can't find a way to simulate it with triggers.
So far I think that the trigger code should look something like this:
Event:
A Unit is attacked
Condition:
Attack type is equal to Spell => Fire
Action:
Pick all units of the playable map area
If picked unit has "specific buff", then reduce damage taken by xx%, else Do nothing
Here's my main problem: I don't know if there are a condition and an action that can do this in the WE. I mean I didn't find any sort of "attack type" in the boolean condition neither have I found an action that reduces a picked unit's taken damage.
It's just frustrating to see how close I am to achieve what I want...
Anyway,
Thank you in advance for your support