Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Curious (https://forums.graalonline.com/forums/showthread.php?t=24980)

stomper_TK 03-03-2002 02:11 PM

Curious
 
How did all of you scripters for graal learn to script so well?

I'm curious because I would like to give it a try myself but I need to figure out what to look up and such..

Faheria_GP2 03-03-2002 02:16 PM

I learned through trial and error (and my past experience with javascript)

nyghtGT 03-03-2002 04:46 PM

Re: Curious
 
Quote:

Originally posted by stomper_TK
How did all of you scripters for graal learn to script so well?

I'm curious because I would like to give it a try myself but I need to figure out what to look up and such..

"you should be a good noticer"

la_builder 03-03-2002 05:11 PM

im 2 starting to learn scripting it goes verry slow bud you will see your progress

1 step:look good at commands.rtf try to understand what a command does.
2 step:try to make really simple npc' s with the commands that you learned from commands.rtf
3 step:get a little bit complex npc from a scripter or something and look carefull at the coding get a pen and paper and begin to define the hole script.
4 step:now begin with a bit more complex npc' s with strings triggeraction and stuff ( i started making weapons)
5 step: make a idea for a practice server and make it full off complex npc' s thats just one off the best ways to learn scripting
6 step:If you are making a test server and you still dont understand a command or dunno how to script a part of a script,
than the best thing that you can do is post a thread here and ask the scripters that have more exp than you.
Just one thing dont give up when something doesnt work or something;)

joseyisleet 03-03-2002 05:18 PM

-=Josey=-
I guess I could say I learned to script "good" in Graal with my past experience with Visual Basics, C++, C#, UnrealED, HTML, and some Delphi. It's not all that hard to learn. Once you've gotten the syntax down for everything it just flows along easily. I'd suggest using something simple like Visual Basics for a little while and make some internet programs like TCP/IP connections to connect to a webserver and communicate with it. Then get into harder things then come back to Graal scripting. Or you could mix that with the trial and error way. Either way you'll get good but slowly.

stomper_TK 03-03-2002 07:38 PM

What is a "string"?

I know NOTHING about scripting at all.

So I'm less then a newbie..

joseyisleet 03-03-2002 07:51 PM

-=Josey=-
A string is a stored variable that can be "called upon" at a latter time to be used for various things. Like in Graal, your account name is a string. To do something with it you would use something like:
NPC Code:

if (playerenters){
message Hello #a;
}


or
NPC Code:

if (playerenters&&strequals(#a,joseyisleet)){
message Hey Josey!;
playerrupees+=500;
}


It's all fairly simply to learn and use.

stomper_TK 03-04-2002 03:26 AM

Ohh okay I see!

Also I thought there used to be a graal NPC scripting tutorial?

Maybe someone should make one for "Dummies." Like give examples and such.. just an idea

Lomgren 03-04-2002 03:32 AM

1 Attachment(s)
don't know if this is still attached, cause I've had it forever...

stomper_TK 03-04-2002 04:05 AM

I was doing fine right untill:

"5. Variables , loops and animations

5.1 Working with variables"

That's where it got confusing..

Lomgren 03-04-2002 07:13 AM

Quote:

Originally posted by stomper_TK
I was doing fine right untill:

"5. Variables , loops and animations

5.1 Working with variables"

That's where it got confusing..

oooh... that's not good, have you taken algebra yet?
variables make up a large part of scripting, make that a huge part, well that is if you want to make good scripts...

happyme 03-04-2002 09:49 AM

php/graal
 
php and graal scripting are basicly similar. thus i know how to script well cause of that ;D I also looked at other peoples scripts and studie from them.

screen_name 03-04-2002 10:49 AM

it came naturally to me really

nyghtGT 03-04-2002 10:52 AM

Royce: Majoring in CGI which is practically perl helps a hell of alot with understanding functions. Thats how I learned how to G-Script.

neomaximus2k 03-04-2002 03:14 PM

Quote:

Originally posted by Faheria_GP2
I learned through trial and error (and my past experience with javascript)
Quote:

Originally posted by nyghtGT
Royce: Majoring in CGI which is practically perl helps a hell of alot with understanding functions. Thats how I learned how to G-Script.
Just the two people i have been after :D
i am putting a graal site together and need some help on it, would either of you like to offer a hand?

stomper_TK 03-04-2002 03:42 PM

Well they gave me this weird example for the Chapter 5 thingy.

I just have allways sucked ass at math also.. But I've someow exceeded Algebra.

NPC Code:

myvar = 1;
if (myvar==1) { ... }



I just did not get that stuff.

nyghtGT 03-04-2002 03:45 PM

shadow dragons 4 life ....

screen_name 03-04-2002 10:43 PM

Quote:

Originally posted by nyghtGT
shadow dragons 4 life ....
o my

Saga2001 03-04-2002 11:48 PM

Re: Curious
 
Quote:

Originally posted by stomper_TK
How did all of you scripters for graal learn to script so well?

I'm curious because I would like to give it a try myself but I need to figure out what to look up and such..

Personally? I learned because I wrote C++, Java 2, getting into Oracle, and it was a damn cool game, so I jumped on it. I would suggest, if you really want to learn, go and look for attached scripts on the forums from the past, and study, than also you can read NPC Scripting.doc and and memorize commands.rtf. Another good plan of action would be to get a few scripter friends you could ask about scripting, the best way to script though is to make your own style, thats why I don't like the style button on the scripting box, if you style it, it eliminated the remnants of you in the script, and becomes general and sad :'(. But anything you want bad enough can come true...so go for it if you want it.

Quote:

Originally posted by nyghtGT
shadow dragons 4 life ....
True, it would be a good place to learn, also GraalPortal is going to be another good place, Http://graalportal.hybridzero.net/ watch for developments, its a good upcoming site where people can both learn and teach and if they really want they can gyp other peoples scripts for their own use. Very OpenSourcy. But SacredSilver used to work for ShadowDragons, and he was one of the best scripters I ever knew...

screen_name 03-05-2002 12:16 AM

Quote:

Originally posted by stomper_TK
Well they gave me this weird example for the Chapter 5 thingy.

I just have allways sucked ass at math also.. But I've someow exceeded Algebra.

NPC Code:

myvar = 1;
if (myvar==1) { ... }



I just did not get that stuff.

variables store numbers

the code sets the variable 'myvar' to 1

then if the variable 'myvar' is equal to 1, then it will execute the commands in the { ... }

Spanko 03-05-2002 01:46 AM

I was born knowing GScript.

neomaximus2k 03-05-2002 05:22 AM

Quote:

Originally posted by Spanko
I was born knowing GScript.
LoL as if :P

stomper_TK 03-05-2002 05:57 AM

I was born to have sex, but hell we all know that wont happen.. :(

joseyisleet 03-05-2002 06:27 AM

-=Josey=-
Quote:

Originally posted by stomper_TK
I was born to have sex, but hell we all know that wont happen.. :(

Poor Stomper. Hey you'll find the right girl someday. ;D

stomper_TK 03-05-2002 07:28 AM

:(

WHIPENIE4 03-05-2002 07:58 AM

I can actually help somebody with scripting ... for once..... by giving you this link
http://forums.graal2001.com/forums/s...threadid=24659

I had the same question pretty much.


All times are GMT +2. The time now is 07:13 PM.

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