Unit Re spawn for a dungeon

assassin1221

New Member
Reaction score
0
Hey,

I been trying to get this re spawn for a dungeon to work. I am trying to get it once there are no hero of the players in there it will check if any unit is missing and if they are they will be created. This dungeon is suppose to be able to be repeated, but yet no other unit will spawn in the dungeon until there are no players units in there. This is how I set it up (I tried multiple events and conditions to make this work right, this is the last one I tried so far. I did not finish this one yet. ) . I felt like I took a long and hard way to do it as well... In the future there going be more then dungeon so if you know a easier was to do this please share it with me! Thanks

Trigger:
  • Respawn Check
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Number of living Furbolg Champion units owned by Player 11 (Dark Green)) Less than or equal to 21
    • Actions
      • If ((Number of units in (Units in FD U1 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U1 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U2 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U2 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U3 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U3 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U4 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U4 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U5 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U5 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U6 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U6 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U7 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U7 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U8 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U8 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U9 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U9 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U10 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U10 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U11 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U11 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U12 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U12 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U13 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U13 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U14 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U14 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U15 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U15 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U16 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U16 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U17 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U17 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U18 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U18 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U19 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U19 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U20 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U20 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD U21 <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at (Center of FD U21 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Number of units in (Units in FD Boss <gen>)) Less than or equal to 0) then do (Unit - Create 1 Furbolg Ursa Warrior for Player 11 (Dark Green) at (Center of FD Boss <gen>) facing Default building facing degrees) else do (Do nothing)
 

inevit4ble

Well-Known Member
Reaction score
38
Use 2 triggers for Furbolg Champions
At the start of game set regions to variable (MyRegion is "region" with default value null, array, size 21)
Trigger:
  • Region Setting
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set MyRegion[0] = FD 01 <gen>
      • Set MyRegion[1] = FD 02 <gen>
      • Set MyRegion[2] = FD 03 <gen>
      • Set MyRegion[3] = FD 04 <gen>
      • Set MyRegion[4] = FD 05 <gen>
      • Set MyRegion[5] = FD 06 <gen>

etc
Then have this to respawn Furbolgs
Trigger:
  • Furborg Respawn
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
      • (Number of living Furbolg Champion units owned by Player 11 (Dark Green)) Less than 21
    • Actions
      • For each (Integer A) from 0 to 20, do (Actions)
        • Loop - Actions
          • Set MyUnitGroup = (Units in MyRegion[(Integer A)] owned by Player 11 (Dark Green))
          • Set MyPoint = (Center of MyRegion[(Integer A)])
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in MyUnitGroup) Less than 1
            • Then - Actions
              • Unit - Create 1 Furbolg Champion for Player 11 (Dark Green) at MyPoint facing Default building facing degrees
            • Else - Actions
          • Custom script: call RemoveLocation(udg_MyPoint)
          • Custom script: call DestroyGroup(udg_MyUnitGroup)

Put the boss on its own trigger and then you should be set.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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