Creep revive isn't working

Kayoss666

Member
Reaction score
7
Code:
[wc3]
WindmillDungeonCreeps
    Events
    Conditions
    Actions
        Wait 0.10 seconds
        Unit Group - Pick every unit in (Units in WindmillDungeon1stStage <gen>) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is A Hero) Equal to True
                    Then - Actions
                        Unit Group - Add (Picked unit) to DungeonHeroUnits
                    Else - Actions
        Player Group - Pick every player in (All players matching ((WindmillDungeon1stStage <gen> contains PlayerUnit[(Player number of (Matching player))]) Equal to True)) and do (Actions)
            Loop - Actions
                Player Group - Add (Picked player) to DungeonHeroes
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9633.00, 13816.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9431.00, 13900.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9031.00, 14200.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8985.00, 14000.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9101.00, 13900.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8297.00, 13950.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8322.00, 13672.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-8447.00, 13634.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-8623.00, 14701.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8558.00, 14705.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Bruiser for Neutral Hostile at ((Center of (Playable map area)) offset by (-8473.00, 14703.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8396.00, 14705.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-8329.00, 14701.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7900.00, 15050.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Bruiser for Neutral Hostile at ((Center of (Playable map area)) offset by (-7761.00, 15267.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7825.00, 15451.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7510.00, 13663.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-7489.00, 13964.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Brawler for Neutral Hostile at ((Center of (Playable map area)) offset by (-7391.00, 13762.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-7276.00, 13929.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7255.00, 13683.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Wait 0.10 seconds
        Set DCreep_Count = 0
[/wc3]
Code:
[wc3]
WindmillDungeonCreeps2
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Goblin Brawler
    Actions
        Unit Group - Pick every unit in DungeonCreeps and do (Actions)
            Loop - Actions
                Unit - Remove (Picked unit) from the game
                Unit Group - Remove (Picked unit) from DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-9345.00, 13186.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-9345.00, 12971.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-9345.00, 12745.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-8524.00, 13000.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-8524.00, 12800.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-7517.00, 12758.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-7517.00, 13003.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Nazrook Geargrind for Neutral Hostile at ((Center of (Playable map area)) offset by (-7406.00, 12907.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Wait 0.10 seconds
        Set DCreep_Count = 0
        Unit Group - Pick every unit in DungeonHeroUnits and do (Unit - Move (Picked unit) instantly to (Random point in WindmillDungeonBossEntry <gen>))
[/wc3]
Code:
[wc3]
DungeonCreepRevive
    Events
        Unit - A unit enters Dungeon1Entry <gen>
    Conditions
    Actions
        Wait 0.02 seconds
        Unit Group - Pick every unit in DungeonCreeps and do (Actions)
            Loop - Actions
                Set DCreep_Count = (DCreep_Count + 1)
                Set DCreep_Start_Position[DCreep_Count] = (Position of (Picked unit))
                Unit - Set the custom value of (Picked unit) to DCreep_Count
[/wc3]
Code:
[wc3]
ReviveDCreeps
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is in DungeonCreeps) Equal to True
    Actions
        Wait (Random real number between 25.00 and 30.00) seconds
        Unit - Create 1 (Unit-type of (Dying unit)) for Neutral Hostile at DCreep_Start_Position[(Custom value of (Dying unit))] facing (Random angle) degrees
        Unit - Set the custom value of (Last created unit) to (Custom value of (Dying unit))
        Unit Group - Add (Last created unit) to DungeonCreeps
[/wc3]

it some-what works if you take the wait down to 5 seconds and set dcreep count to 700.
 

Chewbalka

New Member
Reaction score
14
The 2nd and last trigger are using the same event are probably incompatible.
The last trigger depends on
((Dying unit) is in DungeonCreeps) Equal to True

But the second posted trigger removes all units from the unit group:
Unit Group - Remove (Picked unit) from DungeonCreeps

Actually looking at the second trigger it looks like if you kill any 'DungeonCreeps' they will all get removed from the unit group regarless of being alive or dead and new units will be spawned. If there is further tiers of mobs the dungeon will get packed very fast.

Anyway you may be able to fix this by combining the triggers and using a If then else to evaluate each one seperetly and in order.
 

Kayoss666

Member
Reaction score
7
Code:
[wc3]
WindmillDungeonCreeps
    Events
    Conditions
    Actions
        Wait 0.10 seconds
        Unit Group - Pick every unit in (Units in WindmillDungeon1stStage <gen>) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is A Hero) Equal to True
                    Then - Actions
                        Unit Group - Add (Picked unit) to DungeonHeroUnits
                    Else - Actions
        Player Group - Pick every player in (All players matching ((WindmillDungeon1stStage <gen> contains PlayerUnit[(Player number of (Matching player))]) Equal to True)) and do (Actions)
            Loop - Actions
                Player Group - Add (Picked player) to DungeonHeroes
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9633.00, 13816.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9431.00, 13900.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9031.00, 14200.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8985.00, 14000.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9101.00, 13900.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8297.00, 13950.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8322.00, 13672.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-8447.00, 13634.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-8623.00, 14701.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8558.00, 14705.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Bruiser for Neutral Hostile at ((Center of (Playable map area)) offset by (-8473.00, 14703.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8396.00, 14705.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-8329.00, 14701.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7900.00, 15050.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Bruiser for Neutral Hostile at ((Center of (Playable map area)) offset by (-7761.00, 15267.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7825.00, 15451.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7510.00, 13663.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-7489.00, 13964.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Brawler for Neutral Hostile at ((Center of (Playable map area)) offset by (-7391.00, 13762.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-7276.00, 13929.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7255.00, 13683.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Wait 0.10 seconds
        Set DCreep_Count = 0
[/wc3]
Code:
[wc3]
WindmillDungeonCreeps2
    Events
        Unit - A unit Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Goblin Brawler
    Actions
        Unit Group - Pick every unit in DungeonCreeps and do (Actions)
            Loop - Actions
                Unit - Remove (Picked unit) from the game
                Unit Group - Remove (Picked unit) from DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-9345.00, 13186.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-9345.00, 12971.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-9345.00, 12745.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-8524.00, 13000.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-8524.00, 12800.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-7517.00, 12758.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-7517.00, 13003.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Unit - Create 1 Nazrook Geargrind for Neutral Hostile at ((Center of (Playable map area)) offset by (-7406.00, 12907.00)) facing Default building facing degrees
        Unit Group - Add (Last created unit) to DungeonCreeps
        Wait 0.10 seconds
        Set DCreep_Count = 0
        Unit Group - Pick every unit in DungeonHeroUnits and do (Unit - Move (Picked unit) instantly to (Random point in WindmillDungeonBossEntry <gen>))
[/wc3]
Code:
[wc3]
DungeonCreepRevive
    Events
        Unit - A unit enters Dungeon1Entry <gen>
    Conditions
    Actions
        Wait 0.02 seconds
        Unit Group - Pick every unit in DungeonCreeps and do (Actions)
            Loop - Actions
                Set DCreep_Count = (DCreep_Count + 1)
                Set DCreep_Start_Position[DCreep_Count] = (Position of (Picked unit))
                Unit - Set the custom value of (Picked unit) to DCreep_Count
[/wc3]
Code:
[wc3]
ReviveDCreeps
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is in DungeonCreeps) Equal to True
    Actions
        Wait (Random real number between 25.00 and 30.00) seconds
        Unit - Create 1 (Unit-type of (Dying unit)) for Neutral Hostile at DCreep_Start_Position[(Custom value of (Dying unit))] facing (Random angle) degrees
        Unit - Set the custom value of (Last created unit) to (Custom value of (Dying unit))
        Unit Group - Add (Last created unit) to DungeonCreeps
[/wc3]

it some-what works if you take the wait down to 5 seconds and set dcreep count to 700.

okay based on the reply this might be confusing so i will explain more the first trigger is ran by a player standing at the entrance for the dungeon and typing -enter. this moves the player/s to the dungeon and runs the first trigger. the player being moved runs the 3rd trigger storing the dungeon creeps and their position the fourth trigger runs whenever any creep in the group dungeon creeps dies. which should bring bring them back after the wait period and reput the creature back into the group. *this is where i think the error is* the second trigger is ran when the mini boss dies. it removes the creeps in the dungeons first stage and places the newly created creeps into the group.
 

Chewbalka

New Member
Reaction score
14
First removing the code tags makes this much more readable.
Since i can't see an obviouse problem for some reason ill post all my concerns.

1. In the second trigger, switch the place of these two lines:
Unit - Remove (Picked unit) from the game
Unit Group - Remove (Picked unit) from DungeonCreeps

to
Unit Group - Remove (Picked unit) from DungeonCreeps
Unit - Remove (Picked unit) from the game

I doubt that is the problem but better safe then sorry.

2. refering to the 3rd trigger, the event is causing the trigger to be run for every player. But the Trigger based off its actions only need to be run once. This is causing accumulation of un-needed data.

It does not reset DCreep_count, therefore each unit in DungeonCreeps is counted as many times as there are player heros entering the region. (which im assuming is all)
Solutions:
Removing the event and using
Trigger:
  • Trigger - Run DungeonCreepRevive (checking conditions)

At the end of the trigger "WindmillDungeonCreeps" Or any other location it will be run only once and when necessary.

You could also add
Trigger:
  • Set DCreep_Count = 0

To the very beginning of the trigger so even though it runs multiple times it does the exact same thing each time.


You could also try this as a type of 'debugging', by using "Game - show text" in the triggers below. I usually add way more so i know exactly how its progressing as it does, id suggest adding more where ever you think there may be a problem.

Trigger:
  • WindmillDungeonCreeps
    • Events
    • Conditions
    • Actions
      • Wait 0.10 seconds
      • Unit Group - Pick every unit in (Units in WindmillDungeon1stStage &lt;gen&gt;) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A Hero) Equal to True
            • Then - Actions
              • Unit Group - Add (Picked unit) to DungeonHeroUnits
            • Else - Actions
      • Player Group - Pick every player in (All players matching ((WindmillDungeon1stStage &lt;gen&gt; contains PlayerUnit[(Player number of (Matching player))]) Equal to True)) and do (Actions)
        • Loop - Actions
          • Player Group - Add (Picked player) to DungeonHeroes
      • Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9633.00, 13816.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9431.00, 13900.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9031.00, 14200.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8985.00, 14000.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-9101.00, 13900.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8297.00, 13950.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8322.00, 13672.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-8447.00, 13634.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-8623.00, 14701.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8558.00, 14705.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Bruiser for Neutral Hostile at ((Center of (Playable map area)) offset by (-8473.00, 14703.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-8396.00, 14705.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-8329.00, 14701.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7900.00, 15050.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Bruiser for Neutral Hostile at ((Center of (Playable map area)) offset by (-7761.00, 15267.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7825.00, 15451.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7510.00, 13663.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-7489.00, 13964.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Brawler for Neutral Hostile at ((Center of (Playable map area)) offset by (-7391.00, 13762.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Warrior for Neutral Hostile at ((Center of (Playable map area)) offset by (-7276.00, 13929.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Archer for Neutral Hostile at ((Center of (Playable map area)) offset by (-7255.00, 13683.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Wait 0.10 seconds
      • Set DCreep_Count = 0
      • Trigger - Run DungeonCreepRevive (checking conditions)

Trigger:
  • WindmillDungeonCreeps2
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Goblin Brawler
    • Actions
      • Game - Display to (All players) the text: &quot;Boss killed&quot;
      • Unit Group - Pick every unit in DungeonCreeps and do (Actions)
        • Loop - Actions
          • Unit Group - Remove (Picked unit) from DungeonCreeps
          • Unit - Remove (Picked unit) from the game
      • Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-9345.00, 13186.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-9345.00, 12971.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-9345.00, 12745.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-8524.00, 13000.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-8524.00, 12800.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-7517.00, 12758.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Goblin Juggernaut for Neutral Hostile at ((Center of (Playable map area)) offset by (-7517.00, 13003.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Unit - Create 1 Nazrook Geargrind for Neutral Hostile at ((Center of (Playable map area)) offset by (-7406.00, 12907.00)) facing Default building facing degrees
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Wait 0.10 seconds
      • Set DCreep_Count = 0
      • Unit Group - Pick every unit in DungeonHeroUnits and do (Unit - Move (Picked unit) instantly to (Random point in WindmillDungeonBossEntry &lt;gen&gt;))

Trigger:
  • DungeonCreepRevive
    • Events
    • Conditions
    • Actions
      • Game - Display to (All players) the text: &quot;Player Enters Dungeon&quot; + string(DCreep_Count)
      • Wait 0.02 seconds
      • Unit Group - Pick every unit in DungeonCreeps and do (Actions)
        • Loop - Actions
          • Set DCreep_Count = (DCreep_Count + 1)
          • Set DCreep_Start_Position[DCreep_Count] = (Position of (Picked unit))
          • Unit - Set the custom value of (Picked unit) to DCreep_Count

Trigger:
  • ReviveDCreeps
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is in DungeonCreeps) Equal to True
    • Actions
      • Game - Display to (All players) the text: &quot;ReviveDCreeps Run&quot;
      • Wait (Random real number between 25.00 and 30.00) seconds
      • Unit - Create 1 (Unit-type of (Dying unit)) for Neutral Hostile at DCreep_Start_Position[(Custom value of (Dying unit))] facing (Random angle) degrees
      • Unit - Set the custom value of (Last created unit) to (Custom value of (Dying unit))
      • Unit Group - Add (Last created unit) to DungeonCreeps
      • Game - Display to (All players) the text: &quot;Unit Spawned&quot;
      • Cinematic - Ping minimap for (All players) at (Position of (Last created unit)) for 1.00 seconds
 

Baterasis

New Member
Reaction score
4
You might try adding a Custom Script and assign a variable to the respawning unit:

Actions
Custom script: local unit udg_tempUnit
Set tempUnit = (Dying unit)
Wait X game-time seconds
Set TempPoint = DCreep_Start_Position[(Custom value of tempUnit)]
Unit - Create 1 (Unit-type of tempUnit) for Neutral Hostile at TempPoint facing Default building facing degrees
Unit - Set the custom value of (Last created unit) to (Custom value of tempUnit)
Set DCreep_Start_Position[(Custom value of (Last created unit))] = (Position of (Last created unit))
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top