Creep revival system

NeosDany

Member
Reaction score
1
My trigger revival system based on the guide doesnt work, what I need to do? Solutions quickly please, I have this trouble for about months !

TRIGGER1
[/noparse]Set TempGroup = (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to Player 12 (Brown)) and (((Matching unit) is An Ancient) Equal to False)))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Set Integer = (Integer + 1)
Unit - Set the custom value of (Picked unit) to Integer
Custom script: set udg_Creep_X[udg_Integer] = GetUnitX(GetEnumUnit())
Custom script: set udg_Creep_Y[udg_Integer] = GetUnitY(GetEnumUnit())
Custom script: call DestroyGroup (udg_TempGroup)[/noparse]

TRIGGER2
[/noparse]Event : A unit dies
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Equal to Player 12 (Brown)) and ((((Triggering unit) is An Ancient) Equal to False) and (((Triggering unit) is Summoned) Equal to False))
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Efecto ( Creeps ) for (Triggering unit)) Equal to 1
Then - Actions
Wait 60.00 seconds
Unit - Remove (Triggering unit) from the game
Set TempPoint = (Center of (Entire map))
Set TempPoint2 = (TempPoint offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))]))
Unit - Create 1 Efecto ( Aparicion de mob ) for (Owner of (Triggering unit)) at TempPoint2 facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at TempPoint2 facing Default building facing degrees
Hero - Set (Last created unit) Hero-level to (Hero level of (Triggering unit)), Hide level-up graphics
Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
Custom script: call RemoveLocation (udg_TempPoint)
Custom script: call RemoveLocation (udg_TempPoint2)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Efecto ( Mobs ) for (Triggering unit)) Equal to 1
Then - Actions
Wait 30.00 seconds
Unit - Remove (Triggering unit) from the game
Set TempPoint = (Center of (Entire map))
Set TempPoint2 = (TempPoint offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))]))
Unit - Create 1 Efecto ( Aparicion de mob ) for (Owner of (Triggering unit)) at TempPoint2 facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at TempPoint2 facing Default building facing degrees
Hero - Set (Last created unit) Hero-level to (Hero level of (Triggering unit)), Hide level-up graphics
Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
Custom script: call RemoveLocation (udg_TempPoint)
Custom script: call RemoveLocation (udg_TempPoint2)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Efecto ( Lider ) for (Triggering unit)) Equal to 1
Then - Actions
Wait 120.00 seconds
Unit - Remove (Triggering unit) from the game
Set TempPoint = (Center of (Entire map))
Set TempPoint2 = (TempPoint offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))]))
Unit - Create 1 Efecto ( Aparicion de mob ) for (Owner of (Triggering unit)) at TempPoint2 facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at TempPoint2 facing Default building facing degrees
Hero - Set (Last created unit) Hero-level to (Hero level of (Triggering unit)), Hide level-up graphics
Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
Custom script: call RemoveLocation (udg_TempPoint)
Custom script: call RemoveLocation (udg_TempPoint2)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Efecto ( Jefe ) for (Triggering unit)) Equal to 1
Then - Actions
Wait 240.00 seconds
Unit - Remove (Triggering unit) from the game
Set TempPoint = (Center of (Entire map))
Set TempPoint2 = (TempPoint offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))]))
Unit - Create 1 Efecto ( Aparicion de mob ) for (Owner of (Triggering unit)) at TempPoint2 facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at TempPoint2 facing Default building facing degrees
Hero - Set (Last created unit) Hero-level to (Hero level of (Triggering unit)), Hide level-up graphics
Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
Custom script: call RemoveLocation (udg_TempPoint)
Custom script: call RemoveLocation (udg_TempPoint2)
Else - Actions
Else - Actions[/noparse]

Could it be because my units are heros?
 

Necrolytie

Member
Reaction score
0
Whenever you remove a unit from the game, any value about the removed unit will be "clear" soo, try to remove it after all values about it has stored or used.
 

NeosDany

Member
Reaction score
1
Even with remove triggering unit at the end, when the unit is re-created and his values are set to the last created unit, the trigger still doesn't work well, this actually revives the creeps, but only up to 7 creeps (my creeps are heroes owned by player 12). So if I kill 8 creeps before the first respawn, only 7 creeps will respawn and the 1st one who died will not respawn.
 

NeosDany

Member
Reaction score
1
Does anyone know a creep revival system that works if the creeps are owned by player 12 and they are heros ?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top