• 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] 'Frostbolt' but with X*INT in damage

Status
Not open for further replies.
Level 3
Joined
Jun 23, 2007
Messages
28
I've been trying to make 'change' the Frostbolt ability to make X*(The Units INT) in damage and I've succeded with that. It's just that it takes damage before the animation of Frostbolt even leaves the caster.
  • Frostbolt
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Frost Bolt
    • Actions
      • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Real((Intelligence of (Casting unit) (Include bonuses)))) x 5.00) damage of attack type Spells and damage type Normal
(I've configured Frost Bolt to do 0 damage)

I want the damage to be inflicted once the Frostbolt hits the target.
 
Level 4
Joined
Jun 5, 2007
Messages
65
First of all- as a general rule of thumb you never use "A unit begins casting an ability" (it allows in certain situations for the caster not to lose any mana and the cooldown time isnt started). Instead use "A unit starts the effects of an ability", which starts after the mana and the cooldown have started.

As for your spell, you could try a couple of things.

If you don't really care about exact timing, you could just have the trigger use the 'Wait' action for like 3 seconds or something, then do damage. However if you want to get really specific, you would have to use a dummy unit. Give the dummy unit the frostbolt model, and order it to move towards the target. When it comes in range of the unit, destroy it and do X amount of damage or whatever.
 
Level 3
Joined
Jun 23, 2007
Messages
28
Ok, I understand those things and I feel clumsy for forgetting.

Anyhow, I was wondering now how do I do so that the target takes damage WHEN the Frostbolt dummy reaches him :/
 
Status
Not open for further replies.
Top