HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Creep Respawning Tutorial(Kane)

02-25-2004, 12:49 AM#1
Secret_jer
I originally planned on sending a Pm to the author of this tutorial, however it turns out he has disabled dprivate messages so I am unable to contact him. So I have decided post my problem on the boards in hope of him or anyone else who may be able to help me responding.

My Pm:

I require some help with your creep respawning tutorial. My triggers are laid out like you explained in your article, but they arn't working. The triggers are as follows:

Creep Initialization
Events:
Map initialization
Actions:
Unit - Set the custom value of Rat 0013 <gen> to 1
Unit - Set the custom value of Rat 0014 <gen> to 2
Unit - Set the custom value of Rat 0015 <gen> to 3
Unit - Set the custom value of Rat 0017 <gen> to 4
Unit - Set the custom value of Rat 0018 <gen> to 5
Wait 0.00 seconds
Trigger - Run Apply Regions <gen> (ignoring conditions)

Apply Regions
Actions:
Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Region - Center Nue_Hos_Reg[(Custom value of (Picked unit))] on (Center of Nue_Hos_Reg[(Custom value of (Picked unit))]))
Unit Group - Pick every unit in (Units owned by Neutral Hostile) and do (Set Nue_Hos_Spe[(Custom value of (Picked unit))] = (Picked unit))

Respawn
Events:
Unit - A unit owned by Neutral Hostile Dies
Actions:
Wait 20.00 seconds
If ((Number of units in (Units within 1000.00 of (Position of (Dying unit)))) Less than or equal to 0) then do (Unit - Create 1 (Unit-type of (Dying unit)) for Neutral Hostile at (Center of Nue_Hos_Reg[(Custom value of (Dying unit))]) facing Default building facing degrees) else do (Trigger - Run (This trigger) (checking conditions))

And my variables are as follows:
Variable Name: Variable Type: Initial Value:
Nue_Hos_Reg Region Array(5) -None-
Nue_Hos_Spe Unit Array(5) -None-

Any help with making this trigger work for me would be greatly appreciated. Thankyou! ^_^
02-25-2004, 01:09 AM#2
LegolasArcher
A wait resets event responces. After a wait, all the "dying/triggering/etc units" are = null. Not 100%, but pretty sure
02-25-2004, 09:35 AM#3
Cubasis
LegolasArcher

Most Trigger Responses are thread-specific, that means, that they will allways work even if you do a "wait" in that specific trigger. However, f.ex. "Target of casted ability" is said to reset after waits...i am not sure if blizzard fixed this, but that's unrelated.

However. i'm not sure what's causing your trigger not to work.

Cubasis