staind25
TH.net Regular
- Reaction score
- 7
I've never used the Loop actions before but I finally found a use for them, but noticed they're only for Integers. Integer variables won't work for my situation because I need to tie a variable to a specific UNIT, specifically, a unit being attacked. This variable has multiple arrays: one array for each player.
Anyways, I'm in the process of setting the variable to a specific array. The goal is...if array 0 is NOT empty, check array 1. If array 1 is NOT empty, check array 2...and so on, until it finds an empty array. I figure this COULD work in a loop...but got stuck with the whole integer thing. Is there a way around this?
Additional info:
The alternative to the loop is a very long list of if/then/else statements which I'd rather avoid if I can. I'd essentially have to have if/then/else/if/then/else 12 times...it'd be ridiculous and probably really slow for the machine to calculate.
Thanks much!
Anyways, I'm in the process of setting the variable to a specific array. The goal is...if array 0 is NOT empty, check array 1. If array 1 is NOT empty, check array 2...and so on, until it finds an empty array. I figure this COULD work in a loop...but got stuck with the whole integer thing. Is there a way around this?
Additional info:
The alternative to the loop is a very long list of if/then/else statements which I'd rather avoid if I can. I'd essentially have to have if/then/else/if/then/else 12 times...it'd be ridiculous and probably really slow for the machine to calculate.
Thanks much!