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

Foot Men Frenzy Question

Status
Not open for further replies.
Level 5
Joined
May 12, 2008
Messages
80
I never built a footmen map but i think u use a trigger. It creates in relation to the race you choose a few units. this action is repeated every one or two seconds.
 
Level 2
Joined
Apr 30, 2009
Messages
18
its a trigger

make a trigger spawn
and
every(seconds here)
Create (how many) footmen at the (Building) facing default degrees
that my trigger for that
 
Level 3
Joined
May 1, 2009
Messages
24
the trigger should look like this.

events: time - every 10 seconds of game time
conditions:
actions: unit - create 1 footman at posision of townhall facing default degrees
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Using the Tinker's Factory ability, like Child_0f_Bodom suggested, is much easier to make and modify, and doesn't risk causing memory leaks on your map if you're not experienced on triggering.

Remember to set the duration of the spawns to 0 (undoes the life span timer).
 
Level 27
Joined
Sep 24, 2006
Messages
4,981
the trigger should look like this.

events: time - every 10 seconds of game time
conditions:
actions: unit - create 1 footman at posision of townhall facing default degrees

Better use something like ''create 1 (unit type variable) at position of (unit variable)''

And offcourse add the condition ''if (unit type variable) is alive''

Just use arrays for multiple players.

I dunno about that ability though, this trigger can't cause to much trouble can it?
 
Level 8
Joined
Aug 19, 2007
Messages
294
Or you can just build units, like this:
  • Training
    • Events
      • Time - Every 15.00 seconds of game time
    • Conditions
    • Actions
      • Set MyUnitGroup = (Units in (Playable map area))
      • -------- Human --------
      • Unit Group - Order MyUnitGroup to train a Footman
      • Unit Group - Order MyUnitGroup to train a Knight
      • Unit Group - Order MyUnitGroup to train a Rifleman
      • Unit Group - Order MyUnitGroup to train a Mortar Team
      • Unit Group - Order MyUnitGroup to train a Flying Machine
      • Unit Group - Order MyUnitGroup to train a Gryphon Rider
      • Unit Group - Order MyUnitGroup to train a Priest
      • Unit Group - Order MyUnitGroup to train a Sorceress
      • Unit Group - Order MyUnitGroup to train a Siege Engine
      • Unit Group - Order MyUnitGroup to train a Spell Breaker
      • Unit Group - Order MyUnitGroup to train a Dragonhawk Rider
      • Custom script: call DestroyGroup(udg_MyUnitGroup)
I just dunno what will lag most, this trigger og the idea with factory...
 
Status
Not open for further replies.
Top