• 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] Autocasting spell

Status
Not open for further replies.
Level 9
Joined
Apr 30, 2010
Messages
324
i know how to post trigger >.> it just damaging and create special effect.. duhh..

anyway..

  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Searing Arrows
    • Actions
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real((Strength of (Triggering unit) (Include bonuses)))) damage of attack type Chaos and damage type Normal
      • Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
      • Special Effect - Destroy (Last created special effect)
the point is, if i'm rightclick the ability, it won't cast the spell...
 
I think no one "casts" searing arrows, at least when it's "autocast"...

to make sure: add a show text line before the damage part, if the text does not show, then it means no one "casts" searing arrows... so you might need to use another method to detect it

if it shows, then something is wrong with the other parts of your trigger
 
Level 9
Joined
Apr 30, 2010
Messages
324
I think no one "casts" searing arrows, at least when it's "autocast"...

to make sure: add a show text line before the damage part, if the text does not show, then it means no one "casts" searing arrows... so you might need to use another method to detect it

if it shows, then something is wrong with the other parts of your trigger

what is the other method? i need autocast ability..

help me please :/
 
Last edited:
Level 11
Joined
Nov 15, 2007
Messages
800
You'll need a trigger that fires when searing arrows is enabled or disabled and sets a variable to true/false. Then a damage detection system to detect when a unit is damaged; if the damaging unit has searing arrows enabled, do your actions. Finally, you'll need to make sure any non-attack damage the unit deals (i.e., other abilities, including item abilities) is either triggered so you can exclude that damage from being detected, or dealt by a dummy unit instead. Otherwise if you damage a unit with a spell when searing arrows is enabled, it'll run the searing arrows trigger for every damaged unit.

Unfortunately on-hit abilities are not so easily dealt with in WC3, especially when they're toggled on/off.
 
plus there will be a time delay problem there...

If I attack then activate searing arrows before the attack hits, then my attack will trigger the searing arrow trigger since I activate searing arrow even if the attack itself didn't actually used searing arrow...

Or

If I deactivate searing arrows after the attack before it hits, then even if the attack used SA, it won't trigger...
 
Status
Not open for further replies.
Top