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

A few questions

Status
Not open for further replies.
Level 2
Joined
Dec 25, 2008
Messages
11
I've just started playing around with the Trigger Editor, and I have two questions:

1. How do you make something happen to a unit type, but not a specific unit? I.e., all footmen, not footman 0032.

2. How do you make an action(s) loop over a few times? For example, if a want to create multiple corpses in region 000, I have to copy/paste the action Unit-create permanent corpse several times since it won't let me make multiple corpses through 1 action.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
1. You use unit groups. You make a group hold all the units of a certain type by using the corosponding functions or natives to do so.

2. You use a loop structure to preform the same action until a condition is met. In your case I would recon you want it to create the corpse and also to add 1 to a counter so it knows when to stop looping.
 
Status
Not open for further replies.
Top