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

Autocast ability

Status
Not open for further replies.
You need a damage detection system. Instead of using Frost arrows, use "Searing Arrows" and add a "Frost attack" to your unit, so that the system underneath works. If you want no slow effect to take place at all, just use Searing Arrows, because they have a plain order Id to easily detect. Here:
  • Trigger1
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units in (Playable Map Area)) and do (Actions)
      • Loop - Actions
        • Trigger - Add to Trigger3 <gen> the event (Unit - (Picked unit) takes damage)
  • Trigger2
  • Events
    • Unit - A unit enters (Playable Map Area)
  • Conditions
  • Actions
    • Trigger - Add to Trigger3 <gen> the event (Unit - (Triggering unit) takes damage)
  • Trigger3
  • Events
  • Conditions
    • ((Damage source) is in ArrowGroup) Equal to True
  • Actions
    • Player - Add 1 to (Owner of (Triggering unit)) Current lumber
  • Trigger4
  • Events
    • Unit - A unit is issued an order with no target
  • Conditions
  • Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Issued order) Equal to (order(flamingarrows))
      • Then - Actions
        • Unit Group - Add (Triggering unit) to ArrowGroup
      • Else - Actions
        • If (All conditions are true) then do (Actions) else do (Actions)
          • If - Conditions
            • (Issued order) Equal to (order(unflamingarrows))
          • Then - Actions
            • Unit Group - Remove (Triggering unit) from ArrowGroup
 
Status
Not open for further replies.
Top