• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Hatchery Type (Zergish code)

Status
Not open for further replies.
Level 4
Joined
May 27, 2009
Messages
44
I need a code wherein the Hatchery can spawn only 3 eggs. All Hatcheries/Queen's Lain/Metamorphic Hive are limited to only 3 eggs.

Where as the unit Eggsack can produce 1 egg.

I did try in coding it but the code doesnot impose the limit and production properly.

I also experience a bug when I start a game.

Any solutions?
 

Attachments

Thanks again.

When I played the game I encounter these:

  • The Hatchery Spawns to many Eggs
  • The Code does not include 'New Hatcheries'
  • It does not spawn eggs on the New Hatcheries:zip:
  • Also, the Air unit that are upgraded from the Egg does not have a proper hegiht :eek:
  • It also continues to spawn even if the Hatchery/Lair/Hive has died

Btw, do you know how to extract files?
 

Attachments

One reason is that you enabled the trigger that I disabled. Just delete it. Another reason is that you fuxored the trigger that adds hatcheries that are built. And you changed the event of "Add hacheries" to periodic, when it should be one time only.

Why did you do that?

Change "Add hatcheries 1" and "Add hatcheries 2" to what they were and remove "Egg copy" altogether.

In the map I posted, you should change "picked unit" to "triggering unit" in "Add hatcheries 2". That way new hatcheries will start spawning eggs.
 
I changed the variables as you advised but I don't know why is stops spawning after a while. I also does not seem to include the Lair/Hive. I tried to add the Lair/Hive on the Temp_Group_1 but the eggs stopped spawning. :psmile:
 

Attachments

Status
Not open for further replies.
Back
Top