• 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.

Spell trigger

Status
Not open for further replies.
Level 1
Joined
Mar 8, 2008
Messages
2
I've just recently started to make maps for wc3, and got a little issue with a custom spell I'm trying to create. Any help provided is very appreciated :)

Okay, here it goes! I made a new spell based on Storm Bolt with the Blood Mage missile. When I cast the spell on a target, the effect and damage occurs before the actual missile has reached the target. I've tested the "wait" action, but if the unit is close, the missile hits the target and a little while later the effect occurs. What I want is that the effect and damage triggers when the missile hits its target, no matter how far it has to travel! Is there any way to do this? If there is, how would the complete trigger look like?

Here's how my trigger for the spell at level 1 looks at the moment:

  • Flame Pillar
  • Events
  • Unit - A unit Starts the effect of an ability
  • Conditions
  • ((Ability being cast) Equal to Flame Pillar ) and ((Level of Flame Pillar for (triggering unit)) Equal to 1)
  • Actions
  • Set Victim = (Target unit of ability being cast)
  • Set Point = (Position of Victim)
  • Special Effect - Create a special effect at Point using Objects\Spawnmodels\Human\SmallFlameSpawn\SmallFlameSpawn.mdl
  • Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 100.00 at Point, dealing 150 damage of attack type Spells and damage type Fire
 
Level 3
Joined
Mar 2, 2008
Messages
62
instead of wait, use the 'wait for condition (target unit of ability being cast hs buff 'stunned-pause' = true)' action. this should do it
 
Level 1
Joined
Mar 8, 2008
Messages
2
instead of wait, use the 'wait for condition (target unit of ability being cast hs buff 'stunned-pause' = true)' action. this should do it

The only problem with your sollution is that I've removed the stun, and only want the damage :p
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Use the simple range calculation that works like this: Distance/Speed.

This means that if for example the distance between you and the target (you'll need to set a variable to it) is 500, and the missle's speed is 1000, the time untill hit will be 500/1000 = 0.5 seconds (half a second).
 
Status
Not open for further replies.
Top