• 🏆 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!

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 63
Joined
Jan 18, 2005
Messages
27,191
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