Random Level Trigger

zseriusz

New Member
Reaction score
0
Okay, what i'm trying to do is a trigger that when you reach a point, it starts another level randomly, but of course, never repeating the anothers, so I made a thing like this.

Reach Point:
Trigger:
  • Level 1 End
    • Acontecimientos
      • Unidad - A unit enters Level 1 End <gen>
    • Condiciones
      • (Owner of (Entering unit)) No igual a Jugador 12 (marrón)
    • Acciones
      • Unidad - Kill CÃ_rculo de poder (medio) 0000 <gen>
      • Detonador - Turn on Levels NExt <gen>
      • Detonador - Turn off Level 1 <gen>
      • Detonador - Turn off Level1cheese <gen>
      • Detonador - Turn off Puerta1 <gen>
      • Detonador - Turn off Flashers1 <gen>
      • Detonador - Turn off Flashers2 <gen>
      • Detonador - Turn off Flashers3 <gen>
      • Detonador - Turn off Flashers4 <gen>
      • Grupo de unidad - Pick every unit in unitgroup and do (Unidad - Move (Triggering unit) instantly to (Center of Respawn))
      • Grupo de unidad - Pick every unit in (Units in Level 1 visibility <gen>) and do (Actions)
        • Bucle: Acciones
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si: Condiciones
              • (Owner of (Picked unit)) Igual a Jugador 12 (marrón)
            • Entonces: Acciones
              • Unidad - Remove (Picked unit) from the game
            • Otros: Acciones
              • Unidad - Hide Revivir_Circulo[1]
              • Unidad - Hide Revivir_Circulo[2]
              • Unidad - Hide Revivir_Circulo[3]
              • Unidad - Hide Revivir_Circulo[4]
              • Unidad - Hide Revivir_Circulo[5]
              • Unidad - Hide Revivir_Circulo[6]
              • Unidad - Hide Revivir_Circulo[7]
              • Unidad - Hide Revivir_Circulo[8]
              • Unidad - Hide Revivir_Circulo[9]
              • Unidad - Hide Revivir_Circulo[10]
              • Unidad - Hide Revivir_Circulo[11]
      • Detonador - Turn off (This trigger)


Then the trigger turned on is<

Trigger:
  • Levels NExt
    • Acontecimientos
    • Condiciones
    • Acciones
      • Set RandomLevels = (Random integer number between 1 and 2)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • RandomLevels Igual a 1
          • (Vida of CÃ_rculo de poder (medio) 0000 &lt;gen&gt;) Mayor que o igual a 10.00
        • Entonces: Acciones
          • Set Respawn = Level 1 &lt;gen&gt;
          • Detonador - Turn on Level 1 &lt;gen&gt;
          • Detonador - Turn on Level1cheese &lt;gen&gt;
          • Detonador - Turn on Puerta1 &lt;gen&gt;
          • Detonador - Turn on Level 1 End &lt;gen&gt;
          • Grupo de jugadores - Pick every player in (All players matching ((((Matching player) slot status) Igual a Está jugando) and ((((Matching player) controller) Igual a Usuario) and (((Matching player) controller) No igual a Rescatable)))) and do (Actions)
            • Bucle: Acciones
              • Cámara - Set the camera bounds for (Picked player) to Level 1 visibility &lt;gen&gt;
          • Grupo de unidad - Pick every unit in unitgroup and do (Unidad - Move (Picked unit) instantly to (Center of Respawn))
        • Otros: Acciones
          • Detonador - Turn on Randomize Levels &lt;gen&gt;
          • Detonador - Turn off (This trigger)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • RandomLevels Igual a 2
          • (Vida of CÃ_rculo de poder (medio) 0001 &lt;gen&gt;) Mayor que o igual a 10.00
        • Entonces: Acciones
          • Set Respawn = Level 2 &lt;gen&gt;
          • Detonador - Turn on Trucks &lt;gen&gt;
          • Grupo de jugadores - Pick every player in (All players matching ((((Matching player) slot status) Igual a Está jugando) and ((((Matching player) controller) Igual a Usuario) and (((Matching player) controller) No igual a Rescatable)))) and do (Actions)
            • Bucle: Acciones
              • Cámara - Set the camera bounds for (Picked player) to Level 2 Visibility &lt;gen&gt;
          • Grupo de unidad - Pick every unit in unitgroup and do (Unidad - Move (Picked unit) instantly to (Center of Respawn))
        • Otros: Acciones
          • Detonador - Turn on Randomize Levels &lt;gen&gt;
          • Detonador - Turn off (This trigger)
      • Detonador - Turn on Randomize Levels &lt;gen&gt;
      • Detonador - Turn off (This trigger)


And the one to fix the repeat problem

Trigger:
  • Randomize Levels
    • Acontecimientos
    • Condiciones
    • Acciones
      • Detonador - Turn on Levels NExt &lt;gen&gt;
      • Detonador - Turn off (This trigger)


However nothing works, and can't find a solution :(
 

Whoareyou.

New Member
Reaction score
24
Events
Unit enters region New Level
Conditions
Unit is a Hero equal to true
Actions
Instantly Move triggering unit to region Level2
Turn on Trigger Revive


Events
Unit enters region Level2
Conditions
Unit is a Hero equal to true
Actions
Revive [Select Heroes]
Instantly Move [Select Heroes]

I did both instantly move and revive because revive would only work for dead I think.
 
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