What is this?
A way to create custom abilities with customizable damage that launch a projectile and deal damage without stunning.
Why not use a DDS?
This is very basic, if you want to be picky you can use a DDS. This is intended for newbies and people who don't know JASS.
Step 1:
Import the empty projectile attached into your map. This will allow you to change it later.
Step 2:
Create your spell based on Channel (Fireball and Arcane Missiles in the map).
Step 3:
Take an orb attack modifier ability, make it a unit ability, remove the effect on the unit and change the projectile to what suits your spell.
Steps 4:
Create a Spell dummy (with all the things a basic dummy has - also set collision to 0, apparently the unit fits closer to the caster this way and makes it look better).
Set its base damage to 1 and dices to 1/1 (this will give you 1 more damage on the spell but you can remove this if you are pretty anal about precision).
Add the empty projectile as its damage projectile.
Make the dummy ranged to your needs.
Set the Animation Backswing and Animation Damage Point to 0 (this will make the dummy attack quicker so you don't get weird delays in animations).
Set damage type to Chaos (to get 100% damage on all armor types).
Set weapon sound to none.
Set weapon type to Missile.
Step 5:
This is just the trigger that does the magic:
That's about it, its pretty basic stuff but this will help people that want a fast and easy way to create these types of things.
Things you can do with this:
Do custom damage based on attributes without using the "Make unit damage unit" trigger which is instant;
Increase the number of projectiles by modifying the attack cooldown on the dummy and the expiration timer from the trigger - see Arcane Missiles in the map;
Add a Critical Strike chance by adding the crit chance spell to the dummy;
Modify how the damage interacts with targets depending on their armor;
Works with spell damage type and the Runed Bracers/Giant's spell damage reduction abilities;
Probably has many more things but I did this fast to change the whole system on my map, so didn't get to experiment much.
Will try out different things in the future and update this thread with examples if there is anything fancy.
A way to create custom abilities with customizable damage that launch a projectile and deal damage without stunning.
Why not use a DDS?
This is very basic, if you want to be picky you can use a DDS. This is intended for newbies and people who don't know JASS.
Step 1:
Import the empty projectile attached into your map. This will allow you to change it later.
Step 2:
Create your spell based on Channel (Fireball and Arcane Missiles in the map).
Step 3:
Take an orb attack modifier ability, make it a unit ability, remove the effect on the unit and change the projectile to what suits your spell.
Steps 4:
Create a Spell dummy (with all the things a basic dummy has - also set collision to 0, apparently the unit fits closer to the caster this way and makes it look better).
Set its base damage to 1 and dices to 1/1 (this will give you 1 more damage on the spell but you can remove this if you are pretty anal about precision).
Add the empty projectile as its damage projectile.
Make the dummy ranged to your needs.
Set the Animation Backswing and Animation Damage Point to 0 (this will make the dummy attack quicker so you don't get weird delays in animations).
Set damage type to Chaos (to get 100% damage on all armor types).
Set weapon sound to none.
Set weapon type to Missile.
Step 5:
This is just the trigger that does the magic:
-
Fireball
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Fireball
-
-
Actions
-
Unit - Create 1 Spell Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
-
Unit - Add Fireball Missile to (Last created unit)
-
Unit - Set Base Damage of (Last created unit) to (Intelligence of (Triggering unit) (Include bonuses)) for weapon index: 1
-
Unit - Order (Last created unit) to Attack (Target unit of ability being cast)
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
-
That's about it, its pretty basic stuff but this will help people that want a fast and easy way to create these types of things.
Things you can do with this:
Do custom damage based on attributes without using the "Make unit damage unit" trigger which is instant;
Increase the number of projectiles by modifying the attack cooldown on the dummy and the expiration timer from the trigger - see Arcane Missiles in the map;
Add a Critical Strike chance by adding the crit chance spell to the dummy;
Modify how the damage interacts with targets depending on their armor;
Works with spell damage type and the Runed Bracers/Giant's spell damage reduction abilities;
Probably has many more things but I did this fast to change the whole system on my map, so didn't get to experiment much.
Will try out different things in the future and update this thread with examples if there is anything fancy.