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

Spawn NPCS

Status
Not open for further replies.
Level 2
Joined
Oct 20, 2008
Messages
13
Hi, i have a dude. How i can do for X time spawn 10 npcs, and when ALL theese npcs are dead wait 30 seconds and respawn it. Look like LoL spots.

Thanks.
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
note that you got to set locations and stuff yourself I just show how its done

  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is in my_group) Equal to True
    • Actions
      • Set integer_variable = (integer_variable - 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • integer_variable Equal to 0
        • Then - Actions
          • Set integer_variable = 10
          • For each (Integer A) from 1 to 10, do (Actions)
            • Loop - Actions
              • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
              • Unit Group - Add (Last created unit) to my_group
        • Else - Actions
you got to add the 10 units to the group at init too

  • Untitled Trigger 002
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
          • Unit Group - Add (Last created unit) to my_group
 
Level 2
Joined
Oct 20, 2008
Messages
13
Hi, i cant find this options in World editor, because i have the editor in another language and i cant find the options.

Can u send me this options in a map?
And i load and change the values.

Thanks :thumbs_up:
 
Level 2
Joined
Oct 20, 2008
Messages
13
UPPP!! Need help please, if someone cand send me a MAP with the npcs spawning.

I only want this:

-Map starts, wait 20 seconds, spawn 3 npcs, if all this npcs are dead, wait 15 seconds, spawn 3 npcs...

If someone can give me a map or some tutorial for do it.

Thanks. I've looking in the forum and i dont found anything.
 
Level 2
Joined
Oct 20, 2008
Messages
13
Hi, thanks for your help, but in your map, only spawns it 1 time at start map, when they are all dead, no spawn more ...

Thanks.
 
Status
Not open for further replies.
Top