Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Seeking refrence material (https://forums.graalonline.com/forums/showthread.php?t=58617)

prozac424242 04-18-2005 02:35 AM

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.

Inspiration 04-18-2005 03:40 AM

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

prozac424242 04-27-2005 06:01 PM

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.

Skyld 04-27-2005 06:33 PM

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.

Robin 04-27-2005 07:17 PM

string.loadlines("file");
string becomes an array of the lines from the file specified.

p2p_Sir_Link 04-27-2005 11:02 PM

Is that relevant in the slightest?

Evil_Trunks 04-27-2005 11:07 PM

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

Robin 04-27-2005 11:40 PM

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?

p2p_Sir_Link 04-28-2005 12:19 PM

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.

Robin 04-28-2005 12:23 PM

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

p2p_Sir_Link 04-28-2005 11:42 PM

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!

Robin 04-29-2005 12:20 AM

*sigh*

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

You are the only ***** here.

Kaimetsu 04-29-2005 12:50 AM

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

prozac424242 04-29-2005 01:10 AM

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.

Robin 04-29-2005 01:12 AM

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.

p2p_Sir_Link 04-29-2005 01:15 AM

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.

Robin 04-29-2005 01:18 AM

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? :)

Ajira 04-29-2005 01:22 AM

Quote:

Originally Posted by Robin
Dont you roll 20s? :)

24 inch tires I'm guessing. o_O

Robin 04-29-2005 01:25 AM

Im talking D&D :)

p2p_Sir_Link 04-29-2005 01:31 AM

Quote:

Originally Posted by Robin
Im talking D&D :)

What is D&D?

Robin 04-29-2005 01:34 AM

...

Kaimetsu 04-29-2005 02:41 AM

Quote:

Originally Posted by Robin
Yeah, Kai, I was joking

:rolleyes:

Robin 04-29-2005 03:32 AM

Quote:

Originally Posted by Kaimetsu
:rolleyes:

LOL, hey guess what: Daniel dies. TWICE. HAH.

Kaimetsu 04-29-2005 03:59 AM

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.

Robin 04-29-2005 05:00 AM

yeah but this time, he dies and buggers of for an entire season.


All times are GMT +2. The time now is 08:50 PM.

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