creep revival help

Ruku-Chan

New Member
Reaction score
2
ok i set up a creep revival system but it wont work when i test the map

heres the trigger

Creep Revival System Initialization
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
Loop - Actions
Set Integer = Integer
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())







part 2


Revive Creeps 1 by 1
Events
Unit - A unit Dies
Conditions
((Owner of (Triggering unit)) Equal to Neutral Hostile) and (((Triggering unit) is Summoned) Not equal to True)
Actions
Wait ((Real((Level of (Triggering unit)))) x 1.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))
 

Tom Jones

N/A
Reaction score
437
Why do you make it so difficult?

Trigger:
  • Test
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Triggering player) Equal to Neutral Hostile
      • ((Triggering unit) is Summoned) Equal to False
    • Actions
      • Wait (1.00 x (Real((Level of (Triggering unit))))) seconds
      • Set Point = (Position of (Triggering unit))
      • Unit - Create 1 (Unit-type of (Triggering unit)) for (Triggering player) at Point facing (Random angle) degrees
      • Custom script: call RemoveLocation(udg_Point)
 

Tom Jones

N/A
Reaction score
437
i didnt make it

i got it from someone eles
Alrighty. Well the above trigger does the same, so unless you absolutely insist on using the one you got from someone else, I would recommend changing to the above trigger or make something similar.
 

Zwiebelchen

You can change this now in User CP.
Reaction score
60
Besides, I think the problem is adressing triggering unit after a wait. I'm not sure wether triggering unit is Multi-instancable. I think you should use dying unit instead.
 

DBZ-123

TH.net Regular
Reaction score
19
> ok what i already have is two trggers so if i use that one i can get ride of both of them?

yes
 
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