• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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