• 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] Auto-cast help

Status
Not open for further replies.
Level 3
Joined
Sep 9, 2009
Messages
658
I tried messing around with Searing Arrows to make it that a sfx shows in the chest of the target. But it only works when I manually give the command to use it. The sfx doesn't appear when the unit uses it automatically, although the damage boost is there. What do I need to do to fix this?
 
Level 10
Joined
Apr 4, 2010
Messages
509
When a unit activates the auto casting, add them into a group, if a unit from that group deals physical damage, create the special effect on the target. This is not an ideal solution though. Maybe you could switch Searing Arrows with arrows that place a buff, make the buff last 0.01 seconds and then add your special effect to the buff.
 
Level 10
Joined
Apr 4, 2010
Messages
509
@D - B - M: I don't think Frenzy is autocast.
I think Maker posted this order checker in another thread. You can use it find the order id and order string.
  • Order Checker
    • Events
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Custom script: call BJDebugMsg(OrderId2String(GetIssuedOrderId()) + " ---- " + I2S(GetIssuedOrderId()))
Here's what the trigger will look like. (I'm not too sure that the order is flaming arrows on though. Like I said before, I don't reccomend this though, because if your Hero has a spell that deals physical damage, then your DDS will create the chest attachment, even though you only want it to work for the searing arrows.
  • Trigger
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(flamingarrowson))
      • (Level of Searing Arrows for (Ordered unit)) Greater than or equal to 1
    • Actions
      • -------- Do Actions --------
 
Last edited:
Level 10
Joined
Apr 4, 2010
Messages
509
No, that even just detects when you turn auto casting on.
With this
  • Searing Arrows On
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(flamingarrows))
          • (Issued order) Equal to (Order(unflamingarrows))
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(flamingarrows))
        • Then - Actions
          • Unit Group - Add (Ordered unit) to Flamaing_Arrows_Group
        • Else - Actions
          • Unit Group - Remove (Ordered unit) from Flamaing_Arrows_Group
and damage detection, I did this:
attachment.php

Still do not recommend it though.
 

Attachments

  • Flaming Arrows.gif
    Flaming Arrows.gif
    5.9 MB · Views: 178
Status
Not open for further replies.
Top