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

"Creep Respawn"

Status
Not open for further replies.
Level 3
Joined
May 6, 2007
Messages
22
Hey all i got a proplem :emote_party:

Im decently new to map making i figured out alot of triggers but now monster respawn and any help would be appriciated.

Thanks :D
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
  • Respawn
  • Events
    • Unit - A Unit Dies
  • Conditions
    • (Owner of (Triggering Unit)) Equal to (Neutral Hostile)
  • Actions
    • Wait (time) Seconds
    • Set loc = Position of (Triggering Unit)
    • Unit - Create 1 (Unit-Type of (Triggering Unit)) for (Owner of (Triggering Unit)) at loc Facing (Facing Angle of (Triggering Unit)) Degrees
    • Custom script: call RemoveLocation( udg_loc )
Where loc is a global Point variable
 
Level 3
Joined
May 6, 2007
Messages
22
So if the enemy is player 12 could it like

Unit-A unit owned by player 12(brown) dies

Also can i add a region into it like
Unit- A <reg> and not just a single unit
 
Level 12
Joined
Feb 1, 2007
Messages
1,092
the loc that he set is a variable of the type "point" that he created. To create variables, find the little green X in the trigger editor, then it wil open another menu. Find the X+ and then you can set the properties of your variable. He sets the point so it gets stored for the trigger to use later. Also, I would set loc first before the wait, idk why but I always do.
 
Last edited:
Level 3
Joined
Jun 3, 2007
Messages
50
If I may add-on to this: So, I'm also making creeps on my maps and upon seeing this thread, I was somewhat confused about the "unit" part of:
unit - unit dies. So does that mean that I have to make a separate event for each type of hostile creep? For example: Okay, so my gang of creep consists of 2 Murlock Nightcrawlers and a Dark Troll Shadow Priest. So in the Trigger Editor, would I set one unit event for the troll priest and a separate one for the Murlocks? or is there a way to make a SINGLE event for both the murlocks and the priest?
 
Level 11
Joined
Jul 12, 2005
Messages
764
Purpy, your trigger could be better with the event:
Unit owned by Neutral Hostile dies
without any conidtion.
But you probably know the GREAT disadvantage of that "system":
It resurrects creeps where they die, and not where they were placed initially. Creeps can even get far from their camp...

If you have hostile creeps (Neutral Hostile) placed at the WE initially (not at map initialization or in-game), you can use my system:
Creep Respawn System
 
Status
Not open for further replies.
Top