Level Error

idk_a_name

ABC GUM :D
Reaction score
43
This is one of my last problems I have with my map, but the biggest. Levels. everything seems to be in order, it just wont go to the next level. What I'm thinking is the problem is that two sides of the map are spawning different colored units at the same sides.

Code:
Browns Food
    Events
        Player - Player 12 (Brown)'s Food used becomes Less than or equal to 0.00
    Conditions
    Actions
        Trigger - Run Next Level <gen> (checking conditions)
Code:
DG Food
    Events
        Player - Player 11 (Dark Green)'s Food used becomes Less than or equal to 0.00
    Conditions
    Actions
        Trigger - Run Next Level <gen> (checking conditions)

Note I realize that this trigger has no event, because after my cinematic it runs this trigger.

Code:
Next Level
    Events
    Conditions
    Actions
        Set Level_Number = (Level_Number + 1)
        -------- Timer --------
        If (Level_Number Equal to 1) then do (Countdown Timer - Start Next_Level as a One-shot timer that will expire in 30.00 seconds) else do (Countdown Timer - Start Next_Level as a One-shot timer that will expire in 10.00 seconds)
        Countdown Timer - Create a timer window for (Last started timer) with title ((Level  + (String(Level_Number))) +  in...)
        -------- Set Next Level --------
        If (Level_Number Equal to 1) then do (Wait 20.00 seconds) else do (Do nothing)
        Game - Display to (All players) the text: |c0000cdf9Next leve...
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Level_Number Equal to 30
            Then - Actions
                Game - Display to (All players) the text: You have done well ...
                Game - Display to (All players) the text: Made By oscarmyerwe...
            Else - Actions
        Trigger - Run Set Levels <gen> (checking conditions)

Also I realize that all of the unit spawns aren't filled out. right now it doesn't matter because it wont get past level 1.
Code:
Set Levels
    Events
    Conditions
        Defeat Equal to False
    Actions
        -------- Level 1 --------
        If (Level_Number Equal to 1) then do (Set Monster_Type = Child) else do (Do nothing)
        If (Level_Number Equal to 1) then do (Set Monster_Amount = 30) else do (Do nothing)
        -------- Level 2 --------
        If (Level_Number Equal to 2) then do (Set Monster_Type = Woman) else do (Do nothing)
        If (Level_Number Equal to 2) then do (Set Monster_Amount = 30) else do (Do nothing)
        -------- Level 3 --------
        If (Level_Number Equal to 3) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 3) then do (Set Monster_Amount = 30) else do (Do nothing)
        -------- Level 4 --------
        If (Level_Number Equal to 4) then do (Set Monster_Type = Footman) else do (Do nothing)
        If (Level_Number Equal to 4) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 5 --------
        If (Level_Number Equal to 5) then do (Set Monster_Type = Captain) else do (Do nothing)
        If (Level_Number Equal to 5) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 6 --------
        If (Level_Number Equal to 6) then do (Set Monster_Type = Knight) else do (Do nothing)
        If (Level_Number Equal to 6) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 7 --------
        If (Level_Number Equal to 7) then do (Set Monster_Type = Priest) else do (Do nothing)
        If (Level_Number Equal to 7) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 8 --------
        If (Level_Number Equal to 8) then do (Set Monster_Type = Sorceress) else do (Do nothing)
        If (Level_Number Equal to 8) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 9 --------
        If (Level_Number Equal to 9) then do (Set Monster_Type = Spell Master) else do (Do nothing)
        If (Level_Number Equal to 9) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 10 (Boss 1) --------
        If (Level_Number Equal to 10) then do (Set Monster_Type = Lord Garithos) else do (Do nothing)
        If (Level_Number Equal to 10) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 11 --------
        If (Level_Number Equal to 11) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 11) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 12 --------
        If (Level_Number Equal to 12) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 12) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 13 --------
        If (Level_Number Equal to 13) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 13) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 14 --------
        If (Level_Number Equal to 14) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 14) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 15 --------
        If (Level_Number Equal to 15) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 15) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 16 --------
        If (Level_Number Equal to 16) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 16) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 17 --------
        If (Level_Number Equal to 17) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 17) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 18 --------
        If (Level_Number Equal to 18) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 18) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 19 --------
        If (Level_Number Equal to 19) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 19) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 20 (Boss 2) --------
        If (Level_Number Equal to 20) then do (Set Monster_Type = ) else do (Do nothing)
        If (Level_Number Equal to 20) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 21 --------
        If (Level_Number Equal to 21) then do (Set Monster_Type = Helish Healer) else do (Do nothing)
        If (Level_Number Equal to 21) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 22 --------
        If (Level_Number Equal to 22) then do (Set Monster_Type = Magic Vault) else do (Do nothing)
        If (Level_Number Equal to 22) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 23 --------
        If (Level_Number Equal to 23) then do (Set Monster_Type = Helish Sorcerer) else do (Do nothing)
        If (Level_Number Equal to 23) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 24 --------
        If (Level_Number Equal to 24) then do (Set Monster_Type = Miscellaneous) else do (Do nothing)
        If (Level_Number Equal to 24) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 25 --------
        If (Level_Number Equal to 25) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 25) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 26 --------
        If (Level_Number Equal to 26) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 26) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 27 --------
        If (Level_Number Equal to 27) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 27) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- 28 --------
        If (Level_Number Equal to 28) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 28) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- 29 --------
        If (Level_Number Equal to 29) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 29) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- 30 --------
        If (Level_Number Equal to 30) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 30) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- 31 --------
        If (Level_Number Equal to 31) then do (Set Monster_Type = Hakama (form 1)) else do (Do nothing)
        If (Level_Number Equal to 31) then do (Set Monster_Amount = 1) else do (Do nothing)

This is the most important piece of my map, so anything leading to fixing this I will +rep :D
 

Exide

I am amazingly focused right now!
Reaction score
448
I am guessing you're making a TD?

Having two triggers to turn on the next level probably messes things up.
Try making one trigger with two conditions. Either an 'and' or 'or' function, depending on what suits your map better.
Also try to set the Level_Number to +1, in the Food trigger.

You could also change the run triggers into 'ignoring conditions', for those triggers that doesn't have any -such as 'Next Level'.

What exactly happens when either DG or Brown food used reaches 0?
You could also show us your 'Set Levels' trigger, if you like.
 

idk_a_name

ABC GUM :D
Reaction score
43
I am guessing you're making a TD?.

In a way yes, more of a select hero and defend from waves of enemies from going into your base.



What exactly happens when either DG or Brown food used reaches 0?
You could also show us your 'Set Levels' trigger, if you like

When DG or Browns food reaches 0 meaning that the team has destroyed all of the spawned units. It will start the next level. I can't have them sharing a same spawn, because say the right side kills all their units first (aka browns units) and it sets off another round for them and the left side when they may not have finished the previous round.

And the Set Level trigger I already showed its this one
Code:
Set Levels
    Events
    Conditions
        Defeat Equal to False
    Actions
        -------- Level 1 --------
        If (Level_Number Equal to 1) then do (Set Monster_Type = Child) else do (Do nothing)
        If (Level_Number Equal to 1) then do (Set Monster_Amount = 30) else do (Do nothing)
        -------- Level 2 --------
        If (Level_Number Equal to 2) then do (Set Monster_Type = Woman) else do (Do nothing)
        If (Level_Number Equal to 2) then do (Set Monster_Amount = 30) else do (Do nothing)
        -------- Level 3 --------
        If (Level_Number Equal to 3) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 3) then do (Set Monster_Amount = 30) else do (Do nothing)
        -------- Level 4 --------
        If (Level_Number Equal to 4) then do (Set Monster_Type = Footman) else do (Do nothing)
        If (Level_Number Equal to 4) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 5 --------
        If (Level_Number Equal to 5) then do (Set Monster_Type = Captain) else do (Do nothing)
        If (Level_Number Equal to 5) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 6 --------
        If (Level_Number Equal to 6) then do (Set Monster_Type = Knight) else do (Do nothing)
        If (Level_Number Equal to 6) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 7 --------
        If (Level_Number Equal to 7) then do (Set Monster_Type = Priest) else do (Do nothing)
        If (Level_Number Equal to 7) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 8 --------
        If (Level_Number Equal to 8) then do (Set Monster_Type = Sorceress) else do (Do nothing)
        If (Level_Number Equal to 8) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 9 --------
        If (Level_Number Equal to 9) then do (Set Monster_Type = Spell Master) else do (Do nothing)
        If (Level_Number Equal to 9) then do (Set Monster_Amount = 100) else do (Do nothing)
        -------- Level 10 (Boss 1) --------
        If (Level_Number Equal to 10) then do (Set Monster_Type = Lord Garithos) else do (Do nothing)
        If (Level_Number Equal to 10) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 11 --------
        If (Level_Number Equal to 11) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 11) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 12 --------
        If (Level_Number Equal to 12) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 12) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 13 --------
        If (Level_Number Equal to 13) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 13) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 14 --------
        If (Level_Number Equal to 14) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 14) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 15 --------
        If (Level_Number Equal to 15) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 15) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 16 --------
        If (Level_Number Equal to 16) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 16) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 17 --------
        If (Level_Number Equal to 17) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 17) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 18 --------
        If (Level_Number Equal to 18) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 18) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 19 --------
        If (Level_Number Equal to 19) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 19) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 20 (Boss 2) --------
        If (Level_Number Equal to 20) then do (Set Monster_Type = ) else do (Do nothing)
        If (Level_Number Equal to 20) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 21 --------
        If (Level_Number Equal to 21) then do (Set Monster_Type = Helish Healer) else do (Do nothing)
        If (Level_Number Equal to 21) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 22 --------
        If (Level_Number Equal to 22) then do (Set Monster_Type = Magic Vault) else do (Do nothing)
        If (Level_Number Equal to 22) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 23 --------
        If (Level_Number Equal to 23) then do (Set Monster_Type = Helish Sorcerer) else do (Do nothing)
        If (Level_Number Equal to 23) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 24 --------
        If (Level_Number Equal to 24) then do (Set Monster_Type = Miscellaneous) else do (Do nothing)
        If (Level_Number Equal to 24) then do (Set Monster_Amount = 7) else do (Do nothing)
        -------- Level 25 --------
        If (Level_Number Equal to 25) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 25) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 26 --------
        If (Level_Number Equal to 26) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 26) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- Level 27 --------
        If (Level_Number Equal to 27) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 27) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- 28 --------
        If (Level_Number Equal to 28) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 28) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- 29 --------
        If (Level_Number Equal to 29) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 29) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- 30 --------
        If (Level_Number Equal to 30) then do (Set Monster_Type = Man) else do (Do nothing)
        If (Level_Number Equal to 30) then do (Set Monster_Amount = 1) else do (Do nothing)
        -------- 31 --------
        If (Level_Number Equal to 31) then do (Set Monster_Type = Hakama (form 1)) else do (Do nothing)
        If (Level_Number Equal to 31) then do (Set Monster_Amount = 1) else do (Do nothing)
Which sets what level spawns what monsters
 

Exide

I am amazingly focused right now!
Reaction score
448
>And the Set Level trigger I already showed its this one
Oh, right. Sorry about that. I meant the spawn trigger. -Maybe it doesn't matter for your problem, though..

When I made a TD once, I used a kill counter to determine levels.

>What exactly happens when either DG or Brown food used reaches 0?
I meant in-game.
Why is it not working? What happens? Nothing spawns or anything?

This condition in Set Levels looks weird: 'Defeat Equal to False'. I'm guessing you know what you're doing, though.

Do you see any of the game messages that some of your trigger shows? If not, you know where to look for errors.
When I have problems with my triggers, I usually add a 'Succes!' and a 'Failure!' message to my trigger, to see if it works. (Usually when handling If/Then/Else's.)
Also, try a trigger that forces next level. Something like:

Player 1 types 'test'
Set Level_Number to (Level_Number + 1)
Pick all Computer units and slay them, slay them to hell
Run trigger A, B and 3.

And see what happens. :p
 
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

      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