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 03-03-2002, 02:11 PM
stomper_TK stomper_TK is offline
Registered User
stomper_TK's Avatar
Join Date: Feb 2002
Location: My chair :-)
Posts: 846
stomper_TK is on a distinguished road
Send a message via AIM to stomper_TK
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..
__________________
Reply With Quote
  #2  
Old 03-03-2002, 02:16 PM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
I learned through trial and error (and my past experience with javascript)
Reply With Quote
  #3  
Old 03-03-2002, 04:46 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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"
Reply With Quote
  #4  
Old 03-03-2002, 05:11 PM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
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
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #5  
Old 03-03-2002, 05:18 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=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.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #6  
Old 03-03-2002, 07:38 PM
stomper_TK stomper_TK is offline
Registered User
stomper_TK's Avatar
Join Date: Feb 2002
Location: My chair :-)
Posts: 846
stomper_TK is on a distinguished road
Send a message via AIM to stomper_TK
What is a "string"?

I know NOTHING about scripting at all.

So I'm less then a newbie..
__________________
Reply With Quote
  #7  
Old 03-03-2002, 07:51 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=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.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #8  
Old 03-04-2002, 03:26 AM
stomper_TK stomper_TK is offline
Registered User
stomper_TK's Avatar
Join Date: Feb 2002
Location: My chair :-)
Posts: 846
stomper_TK is on a distinguished road
Send a message via AIM to stomper_TK
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
__________________
Reply With Quote
  #9  
Old 03-04-2002, 03:32 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
don't know if this is still attached, cause I've had it forever...
Attached Files
File Type: zip npcprogramming.zip (78.2 KB, 153 views)
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #10  
Old 03-04-2002, 04:05 AM
stomper_TK stomper_TK is offline
Registered User
stomper_TK's Avatar
Join Date: Feb 2002
Location: My chair :-)
Posts: 846
stomper_TK is on a distinguished road
Send a message via AIM to stomper_TK
I was doing fine right untill:

"5. Variables , loops and animations

5.1 Working with variables"

That's where it got confusing..
__________________
Reply With Quote
  #11  
Old 03-04-2002, 07:13 AM
Lomgren Lomgren is offline
Senior Member, Anti-Spam
Join Date: Mar 2001
Location: Missouri
Posts: 196
Lomgren will become famous soon enough
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...
__________________
Lomgren - devoted to classic, even though I may be gone for months on end
Reply With Quote
  #12  
Old 03-04-2002, 09:49 AM
happyme happyme is offline
Registered User
Join Date: Mar 2002
Location: Toronto, Ontario, Canada
Posts: 142
happyme is on a distinguished road
Send a message via AIM to happyme
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.
__________________
Reply With Quote
  #13  
Old 03-04-2002, 10:49 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
it came naturally to me really
__________________
[signature]insert here[/signature]
Reply With Quote
  #14  
Old 03-04-2002, 10:52 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to 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.
Reply With Quote
  #15  
Old 03-04-2002, 03:14 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
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
i am putting a graal site together and need some help on it, would either of you like to offer a hand?
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #16  
Old 03-04-2002, 03:42 PM
stomper_TK stomper_TK is offline
Registered User
stomper_TK's Avatar
Join Date: Feb 2002
Location: My chair :-)
Posts: 846
stomper_TK is on a distinguished road
Send a message via AIM to 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.
__________________
Reply With Quote
  #17  
Old 03-04-2002, 03:45 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
shadow dragons 4 life ....
Reply With Quote
  #18  
Old 03-04-2002, 10:43 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by nyghtGT
shadow dragons 4 life ....
o my
__________________
[signature]insert here[/signature]
Reply With Quote
  #19  
Old 03-04-2002, 11:48 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #20  
Old 03-05-2002, 12:16 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
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 { ... }
__________________
[signature]insert here[/signature]
Reply With Quote
  #21  
Old 03-05-2002, 01:46 AM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
I was born knowing GScript.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #22  
Old 03-05-2002, 05:22 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by Spanko
I was born knowing GScript.
LoL as if :P
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #23  
Old 03-05-2002, 05:57 AM
stomper_TK stomper_TK is offline
Registered User
stomper_TK's Avatar
Join Date: Feb 2002
Location: My chair :-)
Posts: 846
stomper_TK is on a distinguished road
Send a message via AIM to stomper_TK
I was born to have sex, but hell we all know that wont happen..
__________________
Reply With Quote
  #24  
Old 03-05-2002, 06:27 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
-=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
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #25  
Old 03-05-2002, 07:28 AM
stomper_TK stomper_TK is offline
Registered User
stomper_TK's Avatar
Join Date: Feb 2002
Location: My chair :-)
Posts: 846
stomper_TK is on a distinguished road
Send a message via AIM to stomper_TK
__________________
Reply With Quote
  #26  
Old 03-05-2002, 07:58 AM
WHIPENIE4 WHIPENIE4 is offline
I am X-Mann
Join Date: Aug 2001
Location: PA
Posts: 2,715
WHIPENIE4 is on a distinguished road
Send a message via ICQ to WHIPENIE4 Send a message via AIM to WHIPENIE4
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.
__________________
Mind over Matter. If your body dont mind, why does it matter?

- X-Mann (Blessing Graal since 1998) Haha

- Graal 2000 Project (Contact Me to get Apart of this expierience

Windows Vista. Graal. Not a Good Combination.
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 06:12 AM.


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