• 🏆 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!

Lvl switcher isn't working

Status
Not open for further replies.
Level 6
Joined
Jan 29, 2010
Messages
213
[UNSOLVED] Lvl switcher isn't working (PLS HELP:/ )

I got some problem with lvl switcher, at 1lvl it turns on fine, but when I kill all units from 1lvl, lvl2 isn't starting, even timer isn't appiering, what's wrong with them?, pls look at mine triggers:

  • Inistalization
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Set Level = 0.00
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
              • ((Picked player) slot status) Equal to Is playing
            • Then - Actions
              • Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across (Entire map)
              • Unit - Create 1 Workbot for (Picked player) at ((Picked player) start location) facing Default building facing degrees
              • Selection - Select (Last created unit) for (Owner of (Last created unit))
              • Camera - Pan camera for (Picked player) to ((Picked player) start location) over 1.00 seconds
            • Else - Actions
      • Countdown Timer - Create a timer window for Timer with title Level1 in...
      • Countdown Timer - Start Timer as a One-shot timer that will expire in 30.00 seconds
      • Wait 30.00 seconds
      • Countdown Timer - Destroy (Last created timer window)
      • Trigger - Turn on LVL switcher <gen>

  • LVL switcher
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • (Number of units in (Units owned by Player 11 (Dark Green))) Equal to 0
      • (Number of units in (Units owned by Player 12 (Brown))) Equal to 0
    • Actions
      • Set Level = (Level + 1.00)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Level Equal to 1.00
        • Then - Actions
          • Trigger - Turn on Lvl1 <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Level Equal to 2.00
        • Then - Actions
          • Countdown Timer - Create a timer window for Timer with title Level2 in...
          • Countdown Timer - Start Timer as a One-shot timer that will expire in 15.00 seconds
          • Wait 15.00 seconds
          • Countdown Timer - Destroy (Last created timer window)
          • Trigger - Turn on Lvl2 <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions

  • Lvl1
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) controller) Equal to User
          • (Player 1 (Red) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 Footman for Player 11 (Dark Green) at (Center of Blue spawn <gen>) facing Default building facing degrees
        • Else - Actions
      • Trigger - Turn on LVL switcher <gen>
      • Trigger - Turn off (This trigger)

  • Lvl2
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) controller) Equal to User
          • (Player 1 (Red) slot status) Equal to Is playing
        • Then - Actions
          • Unit - Create 1 Knight for Player 11 (Dark Green) at (Center of Blue spawn <gen>) facing Default building facing degrees
        • Else - Actions
      • Trigger - Turn on LVL switcher <gen>
      • Trigger - Turn off (This trigger)
Edited: I added tester for variable (level), when I push ESC button appiers text with level (real), like before 1lvl spawn shows "level 0.00", when 1lvl starts and creeps released it shows "level 1.00", and when I kill all units of 1lvl, the level still ="1.00", so the trigger "lvl switcher", isn't turning on, like he has to, or I have used bad conditions :(
 
Last edited:
Status
Not open for further replies.
Top