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-21-2005, 10:57 AM
EmpireOwnsYou EmpireOwnsYou is offline
Banned
Join Date: Mar 2005
Posts: 12
EmpireOwnsYou is on a distinguished road
thiso with strings but not variables?

I tried accessing a variable is thiso inside of a get npc, and it would not work, but it worked fine with a string. Why is this? (I fixed my problem already with a differant solution, just wondering why?)
Reply With Quote
  #2  
Old 06-21-2005, 12:44 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
Quote:
Originally Posted by EmpireOwnsYou
I tried accessing a variable is thiso inside of a get npc, and it would not work, but it worked fine with a string. Why is this? (I fixed my problem already with a differant solution, just wondering why?)
In the old scripting engine there are thiso. string variables but not thiso. numeric variables. In the new scripting engine both work.
Reply With Quote
  #3  
Old 06-21-2005, 12:46 PM
EmpireOwnsYou EmpireOwnsYou is offline
Banned
Join Date: Mar 2005
Posts: 12
EmpireOwnsYou is on a distinguished road
Quote:
Originally Posted by Stefan
In the old scripting engine there are thiso. string variables but not thiso. numeric variables. In the new scripting engine both work.
I'll have to try learning the new scripting engine some time.
Is it very powerful? Like can do more with it than regular gscript?

Btw thanks for moderating the post...
Reply With Quote
  #4  
Old 06-21-2005, 03:29 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by EmpireOwnsYou
I'll have to try learning the new scripting engine some time.
Is it very powerful? Like can do more with it than regular gscript?

Btw thanks for moderating the post...


It's object oriented and it is strict. A lot stricter then the old scripting engine.


....Yes, you can do more with the new scripting engine.
Reply With Quote
  #5  
Old 06-21-2005, 04:16 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 Gambet
It's object oriented and it is strict. A lot stricter then the old scripting engine
In what way?
__________________
Reply With Quote
  #6  
Old 06-21-2005, 04:30 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Kaimetsu
In what way?

setshape ,32,32;

would not work in GS2, but would work in GS1, rather


setshape 1,32,32;


would work in both.
Reply With Quote
  #7  
Old 06-21-2005, 04:38 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by Kaimetsu
In what way?
you have to do things correctly
__________________

Reply With Quote
  #8  
Old 06-21-2005, 04:40 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 Gambet
setshape ,32,32;

would not work in GS2, but would work in GS1
That's not really a matter of strictness. It's an error, clearly and unequivocally.

I'd say that GS2's weak typing makes it pretty lenient.

Quote:
Originally Posted by Evil_Trunks
you have to do things correctly
But is that more true for GS2 than GS1?
__________________
Reply With Quote
  #9  
Old 06-21-2005, 04:42 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Kaimetsu
That's not really a matter of strictness. It's an error, clearly and unequivocally.

I'd say that GS2's weak typing makes it pretty lenient.



But is that more true for GS2 than GS1?
Quote:
Originally Posted by Evil_Trunks
you have to do things correctly



It is more strict. You have to do things correctly for the engine to comprehend what you're telling it to do/perform. You can get away with things in the old scripting engine that you can't get away with in the new scripting engine. You can't be lazy and expect to properly script while using the new scripting engine.
Reply With Quote
  #10  
Old 06-21-2005, 04:45 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 Gambet
It is more strict. You have to do things correctly for the engine to comprehend what you're telling it to do/perform
Yeah, but that's pretty much always been the case. Do you understand what I mean by weak typing?
__________________
Reply With Quote
  #11  
Old 06-21-2005, 04:48 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Kaimetsu
Yeah, but that's pretty much always been the case. Do you understand what I mean by weak typing?

Yes, GS2 is strict on the rules but it allows a few exceptions to the rules, so as long as they can be comprehended by the system.


Either way, GS2 is more strict.
Reply With Quote
  #12  
Old 06-21-2005, 04:58 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
Quote:
Originally Posted by Gambet
setshape ,32,32;

would not work in GS2, but would work in GS1, rather
Actually it is accepted in new scripting engine now
Reply With Quote
  #13  
Old 06-21-2005, 05:12 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 Gambet
Yes, GS2 is strict on the rules but it allows a few exceptions to the rules
That's not what weak typing means.

Quote:
Either way, GS2 is more strict.
I think that's the third time you've repeated yourself. You claim doesn't become any more persuasive just because you've reiterated it. So far you've given only one example to support your statement, and we've already seen that it is factually inaccurate!

You're entitled to an opinion, but it seems to me that you are misleading inexperienced scripters by falsely portraying GS2.
__________________
Reply With Quote
  #14  
Old 06-21-2005, 08:15 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
Quote:
Originally Posted by Stefan
Actually it is accepted in new scripting engine now

Bah! Leave it the strict way! I hate it when bad scripting goes around people. At least when it's strict, they have no choice but to make it properly! >.>
__________________
In a world of change... Who'll you believe?
Reply With Quote
  #15  
Old 06-21-2005, 08:22 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 Velox Cruentus
Bah! Leave it the strict way! I hate it when bad scripting goes around people. At least when it's strict, they have no choice but to make it properly! >.>
Backwards compatibility is a pretty big focus with GS2, man.

I'd personally like a system where the two languages are completely distinct, and the scripter announces that he wants to use GS2 by use of a special header. Like, one of those //#HEADER things.
__________________
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 10:18 PM.


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