• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to detect an immolating unit.

Status
Not open for further replies.
Level 8
Joined
Mar 12, 2008
Messages
437
How do you check if a unit has immolation? I wanted a trigger to run when a unit attacked an immolating trigger, so I tried to do this:
  • Trigger
    • Events
      • Unit - A unit is attacked
    • Conditions
      • (Attacked unit) has buff Immolation (Caster)
    • Actions
      • Game - Blahblah
Then nothing happened. Then I tried:
  • Trigger
    • Events
      • Unit - A unit is attacked
    • Conditions
      • (Attacking unit) has buff Immolation
    • Actions
      • Game - Blahblah
And the trigger ran both when the immolating unit and the non-immolating unit attacked. Do you know how to do that, please? It would also be nice to know how to check if a unit is locust swarming.
 
Level 17
Joined
May 6, 2008
Messages
1,598
  • Holy Shit
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(immolation))
    • Actions
      • Set Immolater = (Triggering unit)
  • Holy Shit 1
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(unimmolation))
    • Actions
      • Set Immolater = No unit

Then just do whatever you want.
 
Level 8
Joined
Mar 12, 2008
Messages
437
  • Holy Shit
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(immolation))
    • Actions
      • Set Immolater = (Triggering unit)
  • Holy Shit 1
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(unimmolation))
    • Actions
      • Set Immolater = No unit

Then just do whatever you want.

I don't think that would work on my map, because I want multiple units to be able to immolate.

Soga-: I have not changed the order strings.
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
then you could use huurkas ided with a Unit Group?
u just add the unit, wich is ordered to immolate to a unit group, then you can do whatever you want with those units. When it gets the order to unimmolate, u just remove the unit from the unit group.
 
Level 8
Joined
Mar 12, 2008
Messages
437
then you could use huurkas ided with a Unit Group?
u just add the unit, wich is ordered to immolate to a unit group, then you can do whatever you want with those units. When it gets the order to unimmolate, u just remove the unit from the unit group.

Well, to stop immolating, the unit does not have to recieve an order. It could just run out of mana.

Squiggy: Does that work if I want multiple of the same unit owned by the same player?
 
Status
Not open for further replies.
Top