HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Duplicate

07-23-2004, 02:26 AM#1
EdwardSwolenToe
well, one of my units the nano-byte's special is duplicate where it creates a copy of itself every 20 seconds.
Although i dont know how to do it, see i want it as a global trigger and i was able to do the first bit by "pick every unit" and such, but there is a maximum of 4 'copies' so how would i enforce that limit?
Can anyone help?
07-23-2004, 04:22 AM#2
R3N3G4D3
I'm not sure how many copies you need or when if ever you want the unit to stop but you could have a trigger with periodic event of 20 seconds and action to create unit of unit-type "nano-byte" at current location of original nano-byte, this would place a nano-byte unit right next to original nano-byte every 20 seconds.
07-23-2004, 04:44 AM#3
EdwardSwolenToe
yes i can already do that, although i need to place a limit of 4 copies, and to make it that if a copy dies, another one is created in the same maner.
07-23-2004, 09:56 AM#4
Azhag
Simple, enough.

Events- Unit dies
Conditions- Triggering unit = to nano-byte
Actions- Create unit a location dying unit

That trigger is for the copy one, now for the max of 4.

Events- Unit is created
Conditions- Triggering unit = to nano-byte
Conditions- Player owned unit- Player has 4 nano-byte at location anywhere
Actions- Disable trigger *Unit creation trigger*

I'm not on the WE right now so thouse triggers might be rusty, but I'm pretty sure that will solve your problem. :D