HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

triggers to respawn killed creep not working

03-01-2003, 01:09 PM#1
Guest
heya all, hope you could help me with this problem here:

I tried using this trigger to respawn creep that are slain after three minutes:

Event: Unit owned by Neutral Hostile dies.
Condition: (Triggering Unit is summoned) equal to false
Action:
Wait 180 seconds
Move (dying unit) to (random point in (region 001))
Replace (dying unit) with unit type of (dying unit) with new unit's max hp and mana.

In order to test it i changed wait time to 5 seconds and it worked fine. however when wait time was raised to 180 secs it doesn't work.. anyone know why or what i should do?
03-05-2003, 04:20 AM#2
sheepofdoom
It could be because the dying unit has decomposed by the end of the 180 seconds, and as such doesnt exist - hence cant be replaced?

You could try and assign the dying type to a unit-type variable and then create a unit from the variable type. This may need to be an array if you want to respawn many enemies.

You may also need some way of recording what region it was in.

Good luck and let me know if that doesnt work or you arnt sure what I mean. :)

SheepOfDoom
03-05-2003, 09:57 PM#3
Guest
Yaah sheep is right if you make a variable named unit and set the dieing unit = the variable "Unit" after the 180 seconds is up have it revive "Unit" nad it should work, for more than one unit it gets more complex with variables and triggers...
03-15-2003, 01:05 AM#4
|)@rk-Revenant
Ok, il explain:
You gotta have it like this in the first place:
conditions (DYING unit equal to summoned unit is false)
Sound simple? YEA! then if the game has over 7 slots, u should consider the possible lag, hence the need to shorten the wait to max of 60 secs. Try it to see if it works. You are looking at a master of triggers.