Hi forum!
And sorry for posting multiple threads in the same week in this forum. I will create a dedicated thread for myself if that is preferred, where I can post all my questions.
ANYWAY, on to thread.
I've written a spell that works like a Windwalk, except that it spawns an explosion on the location of the user. Said explosion will deal a huge amount of damage to units (for this level, it is 290). Furthermore, it will stun units that have the buff "Shadowflames BUFF" for 3 seconds. The same units will also have the duration of the "Shadowflames BUFF" extended by 13 seconds. The caster will be rendered invulnerable for 2 seconds after having casted Flashfire (the spell I'm talking about), and invisible for 5. The spell costs 35% of total health at level 1, 65% of current health at level 2, and 40% of current health at level 3.
The trigger look like this:
- I can't figure out how to deal aoe damage. Will I have to use dummies?
- I can't figure a way to extend the Shadowflames BUFF duration by 13 seconds.
- I can't figure how to do the health cost correctly. (At the moment I've picked a cheap choice, being the diff between max and current health.)
ps: I've left out the buff extending from the trigger, because I simply had no clue where to begin. I also tried to add some damage, but it just didn't work out. The "Set Variable" line in there is there simply because I had tried to use something like that and forgot to remove it.
Any help is greatly appreciated. And I would love to be able to do this spell in WC3 editor, without the use of Jass. If I need Jass tho, I might need a -very- thorough guide.
And sorry for posting multiple threads in the same week in this forum. I will create a dedicated thread for myself if that is preferred, where I can post all my questions.
ANYWAY, on to thread.
I've written a spell that works like a Windwalk, except that it spawns an explosion on the location of the user. Said explosion will deal a huge amount of damage to units (for this level, it is 290). Furthermore, it will stun units that have the buff "Shadowflames BUFF" for 3 seconds. The same units will also have the duration of the "Shadowflames BUFF" extended by 13 seconds. The caster will be rendered invulnerable for 2 seconds after having casted Flashfire (the spell I'm talking about), and invisible for 5. The spell costs 35% of total health at level 1, 65% of current health at level 2, and 40% of current health at level 3.
The trigger look like this:
-
Flashfire Selfdamage
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Flashfire
- (Level of Flashfire for (Casting unit)) Equal to 1
-
Actions
- Set HealthPercentageInteger = (Integer((Percentage life of (Casting unit))))
- Unit - Cause (Casting unit) to damage (Casting unit), dealing ((Max life of (Casting unit)) - (Life of (Casting unit))) damage of attack type Spells and damage type Fire
- Unit - Remove All buffs from (Casting unit)
- Unit - Make (Casting unit) Invulnerable
- Environment - Create a 7.00 second Temporary crater deformation at (Position of (Casting unit)) with radius 450.00 and depth 64.00
- Special Effect - Create a special effect at ((Position of (Casting unit)) offset by (2.00, -2.00)) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
- Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
- Special Effect - Create a special effect at ((Position of (Casting unit)) offset by (-2.00, 2.00)) using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
- Wait 2.00 seconds
- Unit - Make (Casting unit) Vulnerable
-
Events
- I can't figure out how to deal aoe damage. Will I have to use dummies?
- I can't figure a way to extend the Shadowflames BUFF duration by 13 seconds.
- I can't figure how to do the health cost correctly. (At the moment I've picked a cheap choice, being the diff between max and current health.)
ps: I've left out the buff extending from the trigger, because I simply had no clue where to begin. I also tried to add some damage, but it just didn't work out. The "Set Variable" line in there is there simply because I had tried to use something like that and forgot to remove it.
Any help is greatly appreciated. And I would love to be able to do this spell in WC3 editor, without the use of Jass. If I need Jass tho, I might need a -very- thorough guide.