![]() |
Scripting language bug
NPC Code: It seems that anything before a == is always assumed to be a variable or a function. Hand it a plain number and it just throws up false. But heck, if a new scripting engine is on the way then it hopefully won't matter. |
Holy moly. :p
|
Yea i noticed that last night too.... it made it a lot harder to make my script
|
[Squeaky!]
In the meanwhile you could just use if (true), just as long and it does exactly the same. Who knows maybe even if (1) works. [/Squeaky!] |
Quote:
NPC Code: So then it'd get changed into "if(1==1){" by the editor, y'see? |
Arg optimization error, when comparing two
const values then it tries to merge, but two code lines need to be exchanged. Fixed in next version (the parsing engine doesn't do the optimizing task so it was good to mention it :-) ) |
Quote:
Ok, that explains a lot. Though I fail to see it's actual use. [/Squeaky!] |
Quote:
NPC Code: Because -1 was the value used to represent 'use all colours'. So when the editor went through and replaced the slot variable things with numbers, it made it into: NPC Code: Which meant that the if condition always returned false. |
| All times are GMT +2. The time now is 08:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.