I'm getting a syntax error when trying to use for loops, ie:
This should work should it not? Do they work differently in nwscript for some reason, or are they not supported at all. If so, what other ways could I iterate a command through multiple objects?
I don't want to assign it to each object individually because it is messy code, and if there's one thing I hate in this world it's messy code.
Code:
for(int i = 0; i < 5; i++) {
//do stuff
}
I don't want to assign it to each object individually because it is messy code, and if there's one thing I hate in this world it's messy code.