this is what im trying to do.
the expression does the first "Array.At" and then stops, ignoring all 5 other "Array.At".
any ideas?
Develop games in your browser. Powerful, performant & highly capable.
Are the values in a_items strings?
Colludium nope. small int values.
if I convert each Array.At into a separate variable first, and then add all these variables it works.
so it seems like some kind of multiple Array.At/expression limitation.
I've also experienced something like this before - and ended up using the same work-around that you've already found. I think it is a limitation of the c2 engine, although I've never seen any documentation to confirm that view...
Tried encasing the Array.At() in int() functions ? Maybe that'll force the calculation on numbers.