Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 05-03-2002, 03:42 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
You think that's fun? The bank card used == for assignments. A full day of people getting locked up every time they tried to make a deposit or withdrawal, that was unique. =_=

I've never been big on displaying booleans directly. Does indirectly work, if(this==this) message True; else message False; ?
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #3  
Old 05-03-2002, 05:33 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Ok fixed in v2.14 rev4, it compared the arrays ({0,1,2}=={2,1,0}) instead of the array fields
Reply With Quote
  #4  
Old 05-03-2002, 05:47 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Stefan
Ok fixed in v2.14 rev4, it compared the arrays ({0,1,2}=={2,1,0}) instead of the array fields
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.