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

[Trigger] Picking Corpse Of Type >.<

Status
Not open for further replies.
Level 10
Joined
Jan 21, 2007
Messages
576
Alright im stuck i cannot figure out how to do this:

I want to be able to set an integar variable to be equal to the number of corpses within 600 of Point L, but they need to be tauren corpses (Tauren, Spirit Walker, Cairn ect) Is there any way of detecting if it is a corpse of a tauren. I assumbes there would be becuase of the spell ancestral spirit but no dice so far : /???

Overview: Basicaly i want to know if there is a condition to check if a corpse or a live unit is a tauren.
 
Last edited:

Lej

Lej

Level 3
Joined
Jun 5, 2004
Messages
36
Can't you just pick all taurens and check if they are alive?

or something like this:

  • Set THE_INTEGER = 0
  • Unit Group - Pick every unit in (Units within 600.00 of THE_POINT) and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • ((Picked unit) is dead) Equal to True
              • Or - Any (Conditions) are true
                • Conditions
                  • (Unit-type of (Picked unit)) Equal to Tauren
                  • (Unit-type of (Picked unit)) Equal to Spirit Walker
                  • (Unit-type of (Picked unit)) Equal to Tauren Chieftain
        • Then - Actions
          • Set THE_INTEGER = (THE_INTEGER + 1)
        • Else - Actions
This leaks.

You could change the "unit in range" to "unit in range matching condition" and check if it's dead there.
 
Last edited:
Level 10
Joined
Jan 21, 2007
Messages
576
True corpses are specific to units, haha thanks!

EDIT: I know hot to remove leaks, no biggie.
 
Status
Not open for further replies.
Top