Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 10-30-2004, 07:54 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
I admit I'll try to learn GS2 but I don't know exactly what could make GS2 so much greater than GS1. I've barely heard anything about GS2 or seen any code examples.
Reply With Quote
  #17  
Old 10-30-2004, 09:08 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
same here
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #18  
Old 10-30-2004, 09:41 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 Slash-P2P
I admit I'll try to learn GS2 but I don't know exactly what could make GS2 so much greater than GS1
Have you ever programmed in such languages as C?
__________________
Reply With Quote
  #19  
Old 10-30-2004, 09:56 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by Kaimetsu
Have you ever programmed in such languages as C?
No. I've used a little bit of Visual Basic but thats it.
Reply With Quote
  #20  
Old 10-31-2004, 12:59 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
I know a little bit of basic, and i know the basic format of C, but that's it
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #21  
Old 10-31-2004, 11:59 AM
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 Slash-P2P
No
Then I cannot blame you for being unable to see the possibilities. But do not assume that they don't exist.
__________________
Reply With Quote
  #22  
Old 10-31-2004, 04:41 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by Kaimetsu
Then I cannot blame you for being unable to see the possibilities. But do not assume that they don't exist.
I said I don't know what can make it so much better. I'm not doubting these ways exist.
Reply With Quote
  #23  
Old 11-05-2004, 09:23 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally Posted by Kaimetsu
Because nobody should be mixing GS1 with GS2. I would prefer to see a system where the language used is specified in some kind of directive at the top (like '//#GS1' or so).
Oh, I see what you're getting at now. That'll definitely become something of a problem.

Quote:
Originally Posted by Stefan
As long as your server wants to support Graal v2, you will need to keep the client-side scripts in old scripting though.
Are you saying client-side won't support GS2?

Quote:
Originally Posted by Slash-P2P
I admit I'll try to learn GS2 but I don't know exactly what could make GS2 so much greater than GS1. I've barely heard anything about GS2 or seen any code examples.
From what I've seen you shouldn't have much trouble moving from GS1 to GS2.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #24  
Old 11-05-2004, 09:36 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 Dach
Are you saying client-side won't support GS2?
v3.1 and upwards will support GS2, but not v2. I'm assuming Stefan will allow use of the earlier versions for a while after the new generation is released.
__________________
Reply With Quote
  #25  
Old 11-07-2004, 10:48 AM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Does anyone have any real code examples or GS2?
All I've seen is something like:
player.chat="hello" or something
Reply With Quote
  #26  
Old 11-07-2004, 03:25 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
NPC Code:

function compileScript() {
script = "";
script.add("function onCreated() {");

for (con: this.containers)
addControlCreationScript(script.link(),con,0);

script.add("}");
script.savelines("weapon.txt",0);

ScriptEditor.openScriptWindow(script);
}


Here an example of writing into a file (savelines), the new for-each operator, calling functions with parameters (addControlCreationScript), and calling public functions of other scripts/objects (ScriptEditor.openScriptWindow).
You can do similar things with addstring script,... instead of script.add, passing parameters by setting this. variables, and doing callnpc, but with the new script it's more simple (e.g. the functions of other objects can return values).
Reply With Quote
  #27  
Old 11-07-2004, 04:10 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Stefan
NPC Code:

function compileScript() {
script = "";
script.add("function onCreated() {");

for (con: this.containers)
addControlCreationScript(script.link(),con,0);

script.add("}");
script.savelines("weapon.txt",0);

ScriptEditor.openScriptWindow(script);
}


Here an example of writing into a file (savelines), the new for-each operator, calling functions with parameters (addControlCreationScript), and calling public functions of other scripts/objects (ScriptEditor.openScriptWindow).
You can do similar things with addstring script,... instead of script.add, passing parameters by setting this. variables, and doing callnpc, but with the new script it's more simple (e.g. the functions of other objects can return values).
Holy, thats new graal script? :O
__________________
Reply With Quote
  #28  
Old 11-07-2004, 08:23 PM
Slash-P2P Slash-P2P is offline
Banned
Join Date: May 2004
Location: Burning Blade
Posts: 941
Slash-P2P is on a distinguished road
Quote:
Originally Posted by Stefan
NPC Code:

the most confusing thing i've ever seen


Here an example of writing into a file (savelines), the new for-each operator, calling functions with parameters (addControlCreationScript), and calling public functions of other scripts/objects (ScriptEditor.openScriptWindow).
You can do similar things with addstring script,... instead of script.add, passing parameters by setting this. variables, and doing callnpc, but with the new script it's more simple (e.g. the functions of other objects can return values).
That's supposed to be simple?
Reply With Quote
  #29  
Old 11-08-2004, 02:31 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Quote:
Originally Posted by SlashP2P
That's supposed to be simple?
I agree with slash wholeheartedly, that looks very advanced, or maybe you didn't explain it correctly, either way, it won't be easy to change over to Gscript2 :-/
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #30  
Old 11-08-2004, 09:41 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally Posted by falco10291029
I agree with slash wholeheartedly, that looks very advanced, or maybe you didn't explain it correctly, either way, it won't be easy to change over to Gscript2 :-/
That would be an example of are more complex operation.

It really wasn't that hard to follow anyway, granted you have some programming knowledge.

He created a weapon file, put "function OnCreated() {" in there, used that cool for-each thing to most likely put some code in there, then added a "}", then saved the file and called the script editor to open the window.
and I just made a crappy run-on sentence of me babbling
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
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 01:38 PM.


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