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

Queen Automatic Heal { Tranfusion auto-cast }

Status
Not open for further replies.
Level 6
Joined
Apr 15, 2012
Messages
205
I want to make a trigger that lets queens automatically transfuse a target if it gets to low hp. It should only be able to target friendly units, not hostile. Also, if it is possible, I want it to only target biological units. I have created a trigger, but it doesn't seem to work. Here it is:

  • Queen (Heal)
    • Events
      • Unit - Any Unit Life changes
    • Local Variables
    • Conditions
      • And
        • Conditions
          • ((Triggering unit) Life (Current)) >= (((Triggering unit) Maximum Life (Current)) / 5.0)
          • ((Unit type of (Triggering unit)) has Biological attribute) == True
          • (Owner of (Triggering unit)) == 1
    • Actions
      • Unit Group - Pick each unit in ((Unit type of (Closest unit to (Position of (Triggering unit)) in (Unit group((Triggering unit))))) units in (Entire map) owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most 1) and do (Actions)
        • Actions
          • Unit - Order (Picked unit) to (Queen - Queen - Transfusion targeting (Triggering unit)) (Before Existing Orders)
please help
 
Level 5
Joined
Dec 13, 2008
Messages
141
Its a trigger that needs to be done yes, but I'm not sure how to even do AI via triggers.
Try looking at Left 2 Die's trigger ai for the hunterling/choker/kaboomer/spotter. I tried copying and pasting those but it didn't work, so maybe starting from there can help.
 
Level 6
Joined
Apr 15, 2012
Messages
205
Maps such as desert strike and nexus wars have the trigger that I am searching for. I could try to contact them or something
 
Level 6
Joined
Apr 15, 2012
Messages
205
You mean changing the data for the ability?

I tried to change some stuff but it still doesn't work. Here is how it looks after my modifications:


Field Queen - Transfusion
Stats: Flags - Abort On Alliance Change, Auto Cast, Auto Cast On, Best Unit, Chase, No Deceleration, Require Target Vision, Smart
Stats: Abort On Alliance Change Enabled
Stats: Allow Movement Disabled
Stats: Auto Cast Enabled
Stats: Turn Auto Cast Off When Owner Leaves Disabled
Stats: Auto Cast On Enabled
Stats: Best Unit Enabled
Stats: Chase Enabled
Stats: No Deceleration Enabled
Stats: Re-executable Disabled
Stats: Require Target Vision Enabled
Stats: Smart Enabled
Stats: Transient Disabled
Stats: Wait To Spend Disabled
Stats: Passenger Acquired External Disabled
Stats: Passenger Acquired Passenger Disabled
Stats: Passenger Acquired Transport Disabled
Stats: Transport Acquired Passengers Disabled
 
Status
Not open for further replies.
Top