NPC Code:
if(playerenters){
array1={0,1,2};
array2={2,1,0};
num1=2;
num2=0;
debug1=array1[num1]; debug2=array2[num2];
if(array1[num1]==array2[num2]) message #v(debug1)==#v(debug2);
else message #v(debug1)!=#v(debug2);
}
According to this script, 2!=2. It seems to only be a problem with two arrays, where the indices are specified by two different variables.