I need something like For Each Integer, except I'd like to only have it select certain numbers. For example, I just want it to run for integers 1, 8, 9, 10, 15, 17, and 32. I don't want to copy and paste the same triggers and just change the numbers because that gets messy, confusing, difficult to slightly alter, etc.
I'm not sure what to look for, so if anyone knows anything about this it would be extremely helpful. Thanks!
Use a for each integer in conjunction with a global integer array, which holds your desired numbers, or find a formula, which correctly results in your desired numbers.
Since I cannot think of a formula for your numbers, I recommend the array (Pseudocode):
I need something like For Each Integer, except I'd like to only have it select certain numbers. For example, I just want it to run for integers 1, 8, 9, 10, 15, 17, and 32. I don't want to copy and paste the same triggers and just change the numbers because that gets messy, confusing, difficult to slightly alter, etc.
I'm not sure what to look for, so if anyone knows anything about this it would be extremely helpful. Thanks!
Use a for each integer in conjunction with a global integer array, which holds your desired numbers, or find a formula, which correctly results in your desired numbers.
Since I cannot think of a formula for your numbers, I recommend the array (Pseudocode):
The array gets set at map initialization; you don't need to set it every time you want to use it.
I hope, you get what I mean from the pseudo-galaxy code ;)
That works great, thank you!