• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Random Levels

Status
Not open for further replies.
Level 2
Joined
Dec 31, 2007
Messages
9
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, like the series of Area of ice escape, exactly the same. So i made this idea.

Reaching Level 1 final point.

  • Level 1 End
    • Acontecimientos
      • Unit - A unit enters Level 1 End <gen>
    • Conditions
      • (Owner of (Entering unit)) No equal to Jugador 12 (marrón)
    • Actions
      • Unit - Kill (CÃ*rculo de poder (medio) 0000)
      • Trigger - Turn on Levels NExt <gen>
      • Trigger - Turn off Level 1 <gen>
      • Trigger - Turn off Level1cheese <gen>
      • Trigger - Turn off Puerta1 <gen>
      • Trigger - Turn off Flashers1 <gen>
      • Trigger - Turn off Flashers2 <gen>
      • Trigger - Turn off Flashers3 <gen>
      • Trigger - Turn off Flashers4 <gen>
      • For each (Integer A) from 1 to 11, do (Actions)
        • Bucle: Actions
          • Unit - Move Hero[(Integer A)] instantly to (Center of Respawn)
      • Unit group - Pick every unit in (Units in Level 1 visibility <gen>) and do (Actions)
        • Bucle: Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If: Conditions
              • (Owner of (Picked unit)) Equal to Jugador 12 (marrón)
            • Then: Actions
              • Unit - Remove (Picked unit) from the game
            • Else: Actions
              • For each (Integer A) from 1 to 11, do (Actions)
                • Bucle: Actions
                  • Unit - Hide Revivir_Circulo[(Integer A)]
      • Trigger - Turn off (This trigger)
And here are the triggers that make the system random, and not repeteable.

  • Levels Next
    • Acontecimientos
    • Conditions
    • Actions
      • Set RandomLevels = (Random integer number between 1 and 2)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If: Conditions
          • RandomLevels Igual a 1
          • (Lifepoints of CÃ*rculo de poder (medio) 0000 <gen>) Higher or equal to 10.00
        • Then: Actions
          • Set Respawn = Level 1 <gen>
          • Trigger - Turn on Level 1 <gen>
          • Trigger - Turn on Level1cheese <gen>
          • Trigger - Turn on Puerta1 <gen>
          • Trigger - Turn on Level 1 End <gen>
          • Player Group - Pick every player in (All players matching ((((Matching player) slot status) Igual a Is playing) and ((((Matching player) controller) Igual a User) and (((Matching player) controller) No igual a Rescatable)))) and do (Actions)
            • Bucle: Actions
              • Camera - Set the camera bounds for (Picked player) to Level 1 visibility <gen>
          • Unit group - Pick every unit in unitgroup and do (Unidad - Move (Picked unit) instantly to (Center of Respawn))
            • Else: Actions
          • Trigger - Turn on Randomize Levels <gen>
          • Trigger - Turn off (This trigger)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If: Conditions
          • RandomLevels Igual a 2
          • (Vida of CÃ*rculo de poder (medio) 0001 <gen>) Mayor que o igual a 10.00
        • Then: Actions
          • Set Respawn = Level 2 <gen>
          • Trigger - Turn on Trucks <gen>
          • Player group - 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: Actions
              • Camera - Set the camera bounds for (Picked player) to Level 2 Visibility <gen>
          • Unit group - Pick every unit in unitgroup and do (Unidad - Move (Picked unit) instantly to (Center of Respawn))
        • Else: Actions
          • Trigger - Turn on Randomize Levels <gen>
          • Trigger - Turn off (This trigger)
      • Trigger - Turn on Randomize Levels <gen>
      • Trigger - Turn off (This trigger)
----

  • Randomize Levels
    • Acontecimientos
    • Condiciones
    • Acciones
      • Trigger - Turn on Levels NExt <gen>
      • Trigger - Turn off (This trigger)
However nothing works, and my WE is in spanish but I'm traducing the triggers.
 
Status
Not open for further replies.
Top