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?
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?