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 04-18-2005, 02:35 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Seeking refrence material

I have been away from gscript for a while, and notice more c like functionality such as case-switch statements.
Where can I find a complete list of all the old and new gscript commands with examples? Kind of like a gscipt dictionary is what I seek, to refamiliarize myself with the language.
I checked my graal folder after re-downloading the client, and the npcprogramming.doc has not been updated in some years.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 04-18-2005, 03:40 AM
Inspiration Inspiration is offline
7 Words
Inspiration's Avatar
Join Date: Oct 2004
Location: New York
Posts: 826
Inspiration is on a distinguished road
Send a message via AIM to Inspiration
Quote:
Originally Posted by prozac424242
I have been away from gscript for a while, and notice more c like functionality such as case-switch statements.
Where can I find a complete list of all the old and new gscript commands with examples? Kind of like a gscipt dictionary is what I seek, to refamiliarize myself with the language.
I checked my graal folder after re-downloading the client, and the npcprogramming.doc has not been updated in some years.
http://ilfirin.org/graal/GScript
__________________
How to start your own project:

1. Annoy everybody on an existing project by submitting or proposing changes that they don't want
2. Formally declare all existing projects to be complete crap
3. Talk at great length about the deficiencies of other projects
4. Get drunk
5. ???
6. Profit
Reply With Quote
  #3  
Old 04-27-2005, 06:01 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Thank you, that page is somewhat helpful.

I can infer what most of the new commands are,
and its going to mean a lot more typing for us scripters.
Short commands such as #a being replaced with player.account
... I understand how it makes it more intuitive for other programmers who are new to graal, but for oldbies like me it just looks like more work and more time to make scripts now.

Also the sample script of the door image that plays the chest.wav did not work on the server that I am an nat on, and i am told that server is gscript2 enabled (sanstrata). Graal3 does not load any playerworld for me, I am using the graal online app compiled Jan 28 2005.

More short, simple examples like that door - sound script, with the commands being used in a meaningful context, would be very helpful. For example, an npc that makes a window open. Not asking for much, but just something comparable to a dictionary where each word is used in proper context. Every language should have something like that. The wiki boad has a start on it, just needs some more common sense understanding aides.
Here is an example of a program language tutorial (other than better navigation, the underlying purpose is good)
http://www-cgi.cs.cmu.edu/cgi-bin/perl-man

And Stefan, remember in the next version of the level editor, to have the default 'new npc' with if (created) {} if (playertouchsme) {} to have the appropriate gscript2 equivelant, as well as a more detailed and descriptive list of the gscript2 commands in the commands.rtf file. I think this will help us long time gscripters out in adapting to the new version, thanks.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #4  
Old 04-27-2005, 06:33 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by prozac424242
And Stefan, remember in the next version of the level editor, to have the default 'new npc' with if (created) {} if (playertouchsme) {} to have the appropriate gscript2 equivelant
I am not sure that is necessary. If you wish to use gscript2, just delete it and write it in gscript2.
Quote:
Originally Posted by prozac424242
as well as a more detailed and descriptive list of the gscript2 commands in the commands.rtf file. I think this will help us long time gscripters out in adapting to the new version,
Obviously, the commands in gscript2 that were derived from gscript are going to work much the same. However, a document for the new commands would be good.
Reply With Quote
  #5  
Old 04-27-2005, 07:17 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
string.loadlines("file");
string becomes an array of the lines from the file specified.
Reply With Quote
  #6  
Old 04-27-2005, 11:02 PM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
Is that relevant in the slightest?
Reply With Quote
  #7  
Old 04-27-2005, 11:07 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 prozac424242
And Stefan, remember in the next version of the level editor, to have the default 'new npc' with if (created) {} if (playertouchsme) {} to have the appropriate gscript2 equivelant
or let's just not put anything there, because it's pointless
__________________

Reply With Quote
  #8  
Old 04-27-2005, 11:40 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by p2p_Sir_Link
Is that relevant in the slightest?
It's relevant to the subject. It's a definition of one of the new commands. However, is your complete spam of pointing it out relevant AT ALL?
Reply With Quote
  #9  
Old 04-28-2005, 12:19 PM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
So when someone asks for a complete reference material, you define a single command? You're now a great scripter, you compare to those who've already made complete gs2 reference guides.
Reply With Quote
  #10  
Old 04-28-2005, 12:23 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by p2p_Sir_Link
So when someone asks for a complete reference material, you define a single command? You're now a great scripter, you compare to those who've already made complete gs2 reference guides.
I haven't seen any complete gs2 reference guides, have you?

You compare to that troll kaimetsu who has nothing better to do than think up pointless ways to try and berrate people. Why not be more proactive in your trolling? Like these guys
Reply With Quote
  #11  
Old 04-28-2005, 11:42 PM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
You're an idiot. You're new to the forums, you contribute differently then the thread title even suggests. It says "seeking refrence material", not "seeking gs2 command". Then you say that people who actually read a topic and actually have something posotive to add on are trolling because they point out your lack of intelligence and want of raised postcount. Then, you attempt to insult Kaimetsu and myself by saying that we have nothing better to do than try to berrate people. If I were to seriously berrate you, you wouldn't want to come on the forums anymore. LOL GO HOME n00basaur!!!11one1!
Reply With Quote
  #12  
Old 04-29-2005, 12:20 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
*sigh*

I'm not new to the forums.
I'm not new to graal.
Prozac is my friend.

You are the only ***** here.
Reply With Quote
  #13  
Old 04-29-2005, 12:50 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 Robin
You compare to that troll kaimetsu who has nothing better to do than think up pointless ways to try and berrate people
Just think for a moment. Think.

"LOL KAI SUCKS BC HE CRITICISES PEOPLE"

Do you not detect even the slightest hint of hypocrisy? In making a post to insult me by saying I insult people too much? Or in the fact that you've barged into two separate threads now - one of which I hadn't even touched yet - in order to call me a troll? Do you really not know what the word means?

Think
__________________
Reply With Quote
  #14  
Old 04-29-2005, 01:10 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Robin, thanks for your help.

One thing that has not changed on the graal forums in five freakin years is that there have always been an abundance of people with very short tempers, or nothing better do to, ready to pull you into an argument. Be better than them, think positive and stick to the subject. Outdo the trolls. Note how I am not listing any names here, this is a general comment about the past half decade of the graal forums.

If anyone has more helpful refrences, ie. comparison of a simple weapon (bow) of gscript2 vs. gscript1 that would be helpful.

Does anyone else remember older versions of graal that came with that starting room with half a dozen free scripts, to look at and learn by example.
Seeing existing examples like Ace's scripting guide was how I learned gscript in the first place.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #15  
Old 04-29-2005, 01:12 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by Kaimetsu
Just think for a moment. Think.

"LOL KAI SUCKS BC HE CRITICISES PEOPLE"

Do you not detect even the slightest hint of hypocrisy? In making a post to insult me by saying I insult people too much? Or in the fact that you've barged into two separate threads now - one of which I hadn't even touched yet - in order to call me a troll? Do you really not know what the word means?

Think
Yeah, Kai, I was joking.

And you're just still mad at me for those Stargate SG1 Spoilers.
Reply With Quote
  #16  
Old 04-29-2005, 01:15 AM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
I'm one badass troll, except I'm a ganster troll. I roll on my 24s in my escalade, blasting my uzi out the window, grunting at everyone.
Reply With Quote
  #17  
Old 04-29-2005, 01:18 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by p2p_Sir_Link
I'm one badass troll, except I'm a ganster troll. I roll on my 24s in my escalade, blasting my uzi out the window, grunting at everyone.
Dont you roll 20s?
Reply With Quote
  #18  
Old 04-29-2005, 01:22 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
Quote:
Originally Posted by Robin
Dont you roll 20s?
24 inch tires I'm guessing. o_O
__________________
Liek omigosh.

Reply With Quote
  #19  
Old 04-29-2005, 01:25 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Im talking D&D
Reply With Quote
  #20  
Old 04-29-2005, 01:31 AM
p2p_Sir_Link p2p_Sir_Link is offline
Banned
p2p_Sir_Link's Avatar
Join Date: Nov 2004
Posts: 425
p2p_Sir_Link is an unknown quantity at this point
Quote:
Originally Posted by Robin
Im talking D&D
What is D&D?
Reply With Quote
  #21  
Old 04-29-2005, 01:34 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
...
Reply With Quote
  #22  
Old 04-29-2005, 02:41 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 Robin
Yeah, Kai, I was joking
__________________
Reply With Quote
  #23  
Old 04-29-2005, 03:32 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by Kaimetsu
LOL, hey guess what: Daniel dies. TWICE. HAH.
Reply With Quote
  #24  
Old 04-29-2005, 03: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 Robin
LOL, hey guess what: Daniel dies. TWICE. HAH.
Dude, it's sci-fi. Everybody dies. Like, three times per episode.
__________________
Reply With Quote
  #25  
Old 04-29-2005, 05:00 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
yeah but this time, he dies and buggers of for an entire season.
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 08:28 PM.


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