• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Customizing spells

Status
Not open for further replies.
Level 4
Joined
Feb 23, 2006
Messages
63
How to make E.G. frost nova which gives 20xlevel of caster damage? Or how to set the time when a unit is freezed to current lvl of caster. This is used in map named Custom hero arena. I like it and im trying to make something similar. Pls help
 
Level 6
Joined
Feb 2, 2005
Messages
205
Here is an Trigger for the Damage per Level, i dont know how to set the length of freeztime. The casted Spell should not do any Dmg, and the areas of the Damage should be the same as the area of the real Spell. Hope this helped you a bit.

  • NovaSpell
    • Events
      • Unit - A unit begins, casting an ability
    • Conditions
      • (Ability being cast) equal Frost-Nova
    • Action
      • Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 500.00 at (Target point of ability being cast), dealing (20.00 x (Real((Level of (Triggering unit))))) damage of attack type Spells and damage type Cold
 
Level 11
Joined
Jul 12, 2005
Messages
764
This will look strange, cause it damages the target instantly, and not when the projectile hits the unit. Use a wait, and calculate the wait time:

Wait (Distance between Caster and Target / Projectile speed) seconds

As for the freezing thing, use a dummy unit to cast a freezing ability that has many levels.
OR
Set the hero ability's duration to a big number, and in the trigger, just do this:

Set TargVar = Target Unit Of Ability Being Cast
Wait (Level of Triggering Unit * x) seconds
Remove Slowed buff from TargVar

But don't forget, this won't be MUI!!!
 
Level 2
Joined
Oct 3, 2006
Messages
19
Wait (Distance between Caster and Target / Projectile speed) seconds
If the wait is to small then it will, in multiplayer, wait longer. I think the lowest wait is about a half second, but im not sure.
And if the damage is after the projectile it would look as wierd as if it was before.
 
Level 2
Joined
Oct 3, 2006
Messages
19
hey I tried this with a storm bolt based skill and it doesn't work becuase I can't find the Real thing in the list of things:witch_doc_sad: :witch_doc_sad: :witch_doc_sad: :witch_doc_sad: :witch_doc_sad: :witch_doc_sad: :witch_doc_sad:
You mean ordering the dummy to cast a spell? use the base order id, or w/e it's called. If you based it on storm bolt, use "human mountain king - stormbolt"
 
Level 2
Joined
Oct 3, 2006
Messages
19
what i ment was i couldn't find "Real" under the list of things (Ex = Region, Arithmatic, Math, Unit) but i figured it out.. ^_^ thanks anyway:thumbs_up:
Heh i just thought u meant "the real thing", like saying "the right thing"
gring.gif
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Just to point something out, Damage Area will damage allies, and even the caster, without mercy, so this will be significantly off the effect you actually wish to achieve for a custom damage Frost Nova, etc.

To get a more accurate representation you can enumerate all the enemies within [radius] that are enemies of the Triggering Unit to a group (cleaning up the leak, of course), and then damage each unit individually

And waits will always suck for projectile collision detection, since they dont take into account the fact that the target unit may move.
 
Status
Not open for further replies.
Top