Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   level.var and string questions (https://forums.graalonline.com/forums/showthread.php?t=31387)

DarkHero2002 06-11-2002 09:31 AM

level.var and string questions
 
Would someone explain this to me:
level.test = true;
In another NPC, it doesn't read as true but it reads as 1.

level.test = false;
In the other NPC it reads as 0, also anything other than true reads as 0, why is that?

I did some tests though and 1998 read as 1998 and same with all other numbers, so does this mean level.vars read/write numbers only?
Could someone also help me understand level.strings too, please?

adam 06-11-2002 09:43 AM

true == 1

false == 0


1 == true

0 == false



If you don't understand that you are beyond my help.

Python523 06-11-2002 09:47 AM

I don't think there's such a thing as level.strings

nyghtGT 06-11-2002 10:48 AM

Quote:

Originally posted by Python523
I don't think there's such a thing as level.strings
There are level wide variables though with the pre-fix, "level.''

Python523 06-11-2002 10:52 AM

Quote:

Originally posted by nyghtGT

There are level wide variables though with the pre-fix, "level.''

I know about vars, I just don't think there are level strings

azuretek23 06-11-2002 11:30 AM

yay I was quoted in a sig! lol

Warcaptain 06-11-2002 07:50 PM

i think there are level strings...

i havent tested though so dont quote me on that (and im at school so def dontquote me)


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

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