Hi, I'm trying to do something that seems straightforward, but isn't working properly. Here is what is going on:
"For each X element:
If Array: Value at Array(x,y,z) = LocalVariable (it does)
Trigger Once:
-->And If Object.Var > or equal to (Array.at(x,y,z) + GlobalVariable) -->then ACTION: subtract (Array.at(x,y,z) + GlobalVariable) from Object.Var"
(The Local and Global Variables have already been set, of course)
For some reason, it's ignoring the "+GlobalVariable" part of the condition and action. It should be checking if the value in the array PLUS the GlobalVariable is greater than the Object.Var, and if so, subtracting all that from the Object.Var. Other than that, this event works well.
Any ideas as to what I'm doing wrong? Can you not add variables to array values in conditions and actions? Is the Trigger Once messing it up? I need it to keep this event from continually subtracting the array value (+Global) from the Object.Var. Also, I don't think it matters, but the 'z' coordinate in the array is a variable, too.
Thanks in advance...