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

Attack Priority: First Kill Healing Wards

Status
Not open for further replies.
Level 5
Joined
Nov 30, 2012
Messages
200
You could try something like:

  • Healing Ward
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Healing Ward
    • Actions
      • Set temp_unit = (Triggering unit)
      • Set temp_point = (Position of temp_unit)
      • Set temp_unit_group = (Random 2 units from (Units within 512.00 of temp_point matching ((Owner of (Triggering unit)) Equal to Neutral Hostile)))
      • Unit Group - Pick every unit in temp_unit_group and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack temp_unit
      • Custom script: call DestroyGroup( udg_temp_unit_group )
      • Custom script: call RemoveLocation( udg_temp_point )
Or you could change its priority in the Object Editor, but for some reason I don't think it would work.
 
You could try something like:

  • Healing Ward
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Healing Ward
    • Actions
      • Set temp_unit = (Triggering unit)
      • Set temp_point = (Position of temp_unit)
      • Set temp_unit_group = (Random 2 units from (Units within 512.00 of temp_point matching ((Owner of (Triggering unit)) Equal to Neutral Hostile)))
      • Unit Group - Pick every unit in temp_unit_group and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack temp_unit
      • Custom script: call DestroyGroup( udg_temp_unit_group )
      • Custom script: call RemoveLocation( udg_temp_point )
Or you could change its priority in the Object Editor, but for some reason I don't think it would work.
I think that the reason is because WARDS are picked lately, will it be correct to put it in no "ward" in classification in order to make it first to target or there is more?

Your trigger should do the trick, but if the units were lured into a fight that allready contain an healing ward, it wouldn't be enought...
 
Status
Not open for further replies.
Top