Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-11-2002, 09:31 AM
DarkHero2002 DarkHero2002 is offline
Registered User
DarkHero2002's Avatar
Join Date: Dec 2001
Posts: 625
DarkHero2002 is on a distinguished road
Send a message via ICQ to DarkHero2002 Send a message via AIM to DarkHero2002
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?
__________________

DarkHero
AIM:XxCloud2002xX
ICQ:165561109
E-Mail:[email protected]
Manager Of Colonial Graal

PLEASE DO NOT CLICK HERE!
Reply With Quote
  #2  
Old 06-11-2002, 09:43 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
true == 1

false == 0


1 == true

0 == false



If you don't understand that you are beyond my help.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #3  
Old 06-11-2002, 09:47 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
I don't think there's such a thing as level.strings
Reply With Quote
  #4  
Old 06-11-2002, 10:48 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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.''
Reply With Quote
  #5  
Old 06-11-2002, 10:52 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #6  
Old 06-11-2002, 11:30 AM
azuretek23 azuretek23 is offline
Registered User
azuretek23's Avatar
Join Date: May 2002
Location: Phoenix, AZ
Posts: 516
azuretek23 is on a distinguished road
Send a message via ICQ to azuretek23 Send a message via AIM to azuretek23
yay I was quoted in a sig! lol
__________________
:: Give a man a fish, you feed him for a day. Teach a man to fish, and you lose your monopoly on fisheries ::
Reply With Quote
  #7  
Old 06-11-2002, 07:50 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
i think there are level strings...

i havent tested though so dont quote me on that (and im at school so def dontquote me)
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 04:01 AM.


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