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

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