I'm in the process of making a bound and have a bunch of triggers called level 1, level 2, level 3, level 4, up to 20 (so far). The general format of each level trigger is:
However, this method involves me setting each trigger of the array individually. I need to set array[0] = level 1, array[1] = level 2, all the way up to my intended 100 levels. This method is very sloppy and I would like to know if there's another way to do so.
The problem with that solution is that it still needs to finish running through the current loop before going into the next level. I want it to abruptly end the level and switch over to the next.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm in the process of making a bound and have a bunch of triggers called level 1, level 2, level 3, level 4, up to 20 (so far). The general format of each level trigger is:
When a unit reaches the end, level increases by one. This works, but the current level has to finish looping till it can run the next level.
My trigger that runs when a unit dies is:
I want to change it so that it becomes:
My temporary fix so far is to make an array of triggers and use the global variable level in order to select the trigger, like so:
However, this method involves me setting each trigger of the array individually. I need to set array[0] = level 1, array[1] = level 2, all the way up to my intended 100 levels. This method is very sloppy and I would like to know if there's another way to do so.
Bump.
@Chrinux: Go
You could simply nest all of the if statements, so that instead of
you have
Thus you would only need 1 trigger, rather than a full set of different ones.
@Demolion: Go
The problem with that solution is that it still needs to finish running through the current loop before going into the next level. I want it to abruptly end the level and switch over to the next.