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

Pick Destructible help!

Status
Not open for further replies.
Level 1
Joined
Dec 19, 2011
Messages
3
Hi guys!

This is my first post here!
I firstly want to say that this site is very very useful and that I really like it.

With that said here's my problem:

What I need to do is resurrect a set number (and not every) of type-destructible near a specific unit but I can't find a way to do this.

Is this possible?
 
Level 1
Joined
Dec 19, 2011
Messages
3
Some questions:

- loop: what loop do you mean? (I have the editor in half italian and half english so it's a bit tricky to find out the right action)

Do you mean the For each (Integer A)? If so how should I use it in that trigger?


- Skip remaning actions: will this prevent ALL next actions to be skipped? I mean the ones out of the loop?
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Set i1 = 0
      • Destructible - Pick every destructible in (Playable map area) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • i1 Less than maxCount
            • Then - Actions
              • Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
              • Set i1 = (i1 + 1)
            • Else - Actions
 
Level 1
Joined
Dec 19, 2011
Messages
3
Thanks m8 it works!

Just one more question:

under what do u find maxCount? (I put a set number atm cuz I can't find where it is lol)

Sry for my noobness and ty again :D
 
Status
Not open for further replies.
Top