Warcraft III resources & community, 2003–2006 · archived

Respawn creeps with item table.

8 posts
#1

Respawn creeps with item table.

Hey, I need to make a trigger so that when a hostile creep dies it revives in 300 seconds with the original item table i gave it. I know how to do the create a new creep equal to the one that died after 300 seconds but i cant figure out how to give it an item table or better yet the one the triggering dieing unit had. Is this possible? If so please give me a hand.

Edit: Heres the trigger i have right now.

Creep Respawn
Events
Unit - A unit Dies
Conditions
(Owner of (Triggering unit)) Equal to Neutral Hostile
Actions
Wait 300.00 seconds
Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at (Position of (Triggering unit)) facing (Position of (Triggering unit))

Any ideas or any type of solution would be very appreciated.


Thanks for reading,
LoDown
#2
http://www.wc3sear.ch/?p=Maps&ID=3213
download it , i make there a trigger..it's not a table but something...

_____________________
EDIT

there in a trigger mode.. it's consist only from 1 trigger wich name is "angry"
#3
Ok, ive downloaded it, where can i find this thing you speak of?

There are no triggeres named "angry"
#4
LoDown, that trigger you made there wont work. You can't reference a unit position of a unit that has been dead that long.

But as making creeps with items tables, all you can really do is make a trigger where if a certain unit-type dies, it spawns a random level item at its position.
-VGsatomi
#5
Suxxor, im screwed then =P.
#6
Would there be any kind of alternative trigger solution? Like a triggerish item table for each type of unit? Like:

Event:
Unit dies.
Condition:
Unit type of unit equal to Kobold.
Action:
[SOme type of item chance drops and stuff]
#7
asi i said before Dl and you'll see
there is :
Event
Unit Die
Action:
wait 300 seconds
create 1 unit-type triggering unit at position of triggering unit with default looking angle
add him an ability carrier (human)
(hint: i change that ability from 2 to 6 slots)
make random level ( -1 or the level of triggering unit or as you want but not a table:( ) item and give him to last created unit
_______________________
about that trigger:
Directory: "passive angry units"
trigger: "angry respawn"
_________________________

Emm i thought that triggering unit for now is the same with the dying one , and for what place of trigger did you tell that? Because some places are really needed "dying uniy"
#8
Instead of using Triggering Unit use Dying Unit... :wink: