View Single Post
  #1  
Old 05-03-2002, 01:04 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Error in the scripting engine?

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.
__________________
Reply With Quote