Hey i found this nice thread a few days back and have been trying to translate it into the new sc2 editor since its an old wc3 editor layout and have been running into a lot of dead ends was wondering if anybody could translate this over correctly or maybe set me up with a new way that works the same..
Trigger:
Creep Revival System Initialization Copy
o Events
+ Map initialization
o Conditions
o Actions
+ Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
Loop - Actions
Set Interger = (Interger + 1)
Unit - Set the custom value of (Picked unit) to Interger
Custom script: set udg_Creep_X[udg_Integer] = GetUnitX(GetEnumUnit())
Custom script: set udg_Creep_Y[udg_Integer] = GetUnitY(GetEnumUnit())
Trigger:
Revive Creeps 1 by 1
o Events
+ Unit - A unit Dies
o Conditions
+ ((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
o Actions
+ Wait ((Real((Level of (Triggering unit)))) x 5.00) game-time seconds
+ Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Hostile at ((Center of (Entire map)) offset by (Creep_X[(Custom value of (Triggering unit))], Creep_Y[(Custom value of (Triggering unit))])) facing (Random angle) degrees
+ Unit - Set the custom value of (Last created unit) to (Custom value of (Triggering unit))
Reviving units is incredibly difficult using just triggers especially if there are stats you want carried over. If you wanted respawning rather than reviving on the other hand, that is pretty simple.
Hey i found this nice thread a few days back and have been trying to translate it into the new sc2 editor since its an old wc3 editor layout and have been running into a lot of dead ends was wondering if anybody could translate this over correctly or maybe set me up with a new way that works the same..
Trigger:
Trigger:
@Belymar: Go
Reviving units is incredibly difficult using just triggers especially if there are stats you want carried over. If you wanted respawning rather than reviving on the other hand, that is pretty simple.
Simple respawning when a unit dies:
Unless of course I'm not fully understanding what your trigger does.
@Abion47: Go
OneTwoSC actually made a mob respawn tutorial in tutorial section explaining how to do it exactly thanks for your added input though :P