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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top