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 02-07-2002, 01:19 PM
AlkarenHyralt AlkarenHyralt is offline
Former Forum Admin/GM
AlkarenHyralt's Avatar
Join Date: Jun 2001
Location: Drogenier, in the Realm of Heroes.
Posts: 6,954
AlkarenHyralt is an unknown quantity at this point
Send a message via AIM to AlkarenHyralt
Well, the fallen angel has decided to take an intrest in GScript!

Ah heh..he only has one question...

Umm...what's a good way to start learning GScript? I look at it, and understand some things, like if() statemnts and how functions work...but nothing else.
__________________
I am he that was once them.

Forgotten through the passage of Graal time.
Reply With Quote
  #2  
Old 02-07-2002, 01:52 PM
Faheria_LAT1 Faheria_LAT1 is offline
Seraphim Warrior
Faheria_LAT1's Avatar
Join Date: Oct 2001
Location: QUÉBEC!!!!!!1
Posts: 2,040
Faheria_LAT1 is on a distinguished road
Send a message via ICQ to Faheria_LAT1 Send a message via AIM to Faheria_LAT1
Many ways can be used to learn how to script:

-Look at other's script and modify them (such as thym's leaf npc on the classic, the quest where you go in a tree and have to save a fairy village )
-By trying stuff and reading Ace's guide on the doc section on the website
-Huh, already knowing other programming language (C++ and the others =P)
__________________


"I like movies where the guy shoots stuff, and then it blows up, and then this other guy shoots him, and then the first guy drives through a Coke sign, and it blows up, and the car flips over in slow motion, and then the guy gets out and pops his arm back in place, and then they fight 'cause they're out of bullets, and the guy says something like "This is Walmart, boy...and you just got price-checked!" - Broken Saints

"There is no greater sorrow than to recall in misery when we were happy" - Dante

"If you know yourself but not the enemy, for every victory gained you will also suffer a defeat" - Sun Tzu, The Art Of War

"Kingdoms ...rising without word. Collapsing without warning." - Broken Saints

Account now used by Silver and Mmmmkay
yoshee15 account has run out :[[[
Reply With Quote
  #3  
Old 02-07-2002, 01:59 PM
AlkarenHyralt AlkarenHyralt is offline
Former Forum Admin/GM
AlkarenHyralt's Avatar
Join Date: Jun 2001
Location: Drogenier, in the Realm of Heroes.
Posts: 6,954
AlkarenHyralt is an unknown quantity at this point
Send a message via AIM to AlkarenHyralt
Quote:
Originally posted by Faheria_LAT1
Many ways can be used to learn how to script:

-Look at other's script and modify them (such as thym's leaf npc on the classic, the quest where you go in a tree and have to save a fairy village )
-By trying stuff and reading Ace's guide on the doc section on the website
-Huh, already knowing other programming language (C++ and the others =P)
Going from PHP to this is somewhat confusing...but it helps some though
__________________
I am he that was once them.

Forgotten through the passage of Graal time.
Reply With Quote
  #4  
Old 02-07-2002, 03:49 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
Quote:
Originally posted by AlkarenHyralt


Going from PHP to this is somewhat confusing...but it helps some though
one similarity with php and GScript is the use of varaibles to store data and access data is very similar, as it is with javascript and cgi. I suggest you go through the commands.rtf and try to understand what you can. Then come here and ask questions about syntax and other things you may nead. Also, if you must forum PM or we could talk on AIM. I am not the best scripter but I can definately help you elaborate on learning new commands and such ...
Reply With Quote
  #5  
Old 02-07-2002, 09:37 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by nyghtGT

one similarity with php and GScript is the use of varaibles to store data and access data is very similar, as it is with javascript and cgi. I suggest you go through the commands.rtf and try to understand what you can. Then come here and ask questions about syntax and other things you may nead. Also, if you must forum PM or we could talk on AIM. I am not the best scripter but I can definately help you elaborate on learning new commands and such ...
CGI = no language!!!
Cgi = c++,Perl,Phyton etc.

I think u mean Perl in that case

but yay you are right if u know a little bit about Perl or PHP it's better to start, you don't have to learn how to use variables or the syntax of gscript...
__________________
No Webhost at the moment
Reply With Quote
  #6  
Old 02-07-2002, 10:04 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Pear is considered the default CGI script. Pearl in my eyes is the EZest language to learn, since you can almost do anything anyway you want and its so simple to parse things and.... the lis tgoes on :O
__________________

subliminal message: 1+1=3
Reply With Quote
  #7  
Old 02-07-2002, 10:07 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Falcor
Pear is considered the default CGI script. Pearl in my eyes is the EZest language to learn, since you can almost do anything anyway you want and its so simple to parse things and.... the lis tgoes on :O
It's called Perl (no a in it)
but because it's the most used part of cgi u can't just call Perl CGI itsself because it's just a part of what u have to call cgi. This would give a wrong expression to people who don't know what cgi basicly is...
__________________
No Webhost at the moment
Reply With Quote
  #8  
Old 02-07-2002, 10:16 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Common Gateway Interface

Duh,

But when you hear CGI you think Perl
__________________

subliminal message: 1+1=3
Reply With Quote
  #9  
Old 02-07-2002, 10:22 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Falcor
Common Gateway Interface

Duh,

But when you hear CGI you think Perl
And THAT's the fault I want everyone to know about ^_^
__________________
No Webhost at the moment
Reply With Quote
  #10  
Old 02-08-2002, 12:54 AM
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
CGI and Perl actually are the same, CGI is considered a language by the Unix community at least and since they are the ones who made it, i'd go with them. PHP is actually the easiest by judgment, since it automatically decides if something is a string, int, etc. CGI is just a different version of perl. and is indeed a different language. The reason i say that PHP is easier is because i learned php in 10 mins while Perl took 45. .
AH if you know PHP you are well on your way to GScript, there are many differences but if you can learn PHP you can DEFINATLY learn GScript. There are array() = setarray, messages = echo, etc. So just do as Kaimetsu says and all will be good, cause kaimetsu is the intellegence of the forums, we are all his drones.
__________________

!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
  #11  
Old 02-08-2002, 03:28 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
Quote:
Originally posted by TDO2000


CGI = no language!!!
Cgi = c++,Perl,Phyton etc.

I think u mean Perl in that case

but yay you are right if u know a little bit about Perl or PHP it's better to start, you don't have to learn how to use variables or the syntax of gscript...
yea thats what i meant ...
i was really into javascript before i started doing more GScript stuff ...
Reply With Quote
  #12  
Old 02-08-2002, 06:37 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
if you know a programming language then its not hard..
syntax is diff. and ways that things work. but the basic idea of programming is not new so not so hard.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #13  
Old 02-08-2002, 09:19 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by Saga2001
CGI and Perl actually are the same, CGI is considered a language by the Unix community at least and since they are the ones who made it, i'd go with them. PHP is actually the easiest by judgment, since it automatically decides if something is a string, int, etc. CGI is just a different version of perl. and is indeed a different language. The reason i say that PHP is easier is because i learned php in 10 mins while Perl took 45. .
AH if you know PHP you are well on your way to GScript, there are many differences but if you can learn PHP you can DEFINATLY learn GScript. There are array() = setarray, messages = echo, etc. So just do as Kaimetsu says and all will be good, cause kaimetsu is the intellegence of the forums, we are all his drones.
lol in 45 minutes you only know some small basics... Perl (if u are doing big things not silly stuff like a guestbook) can be as complicated as any other language... and yeah you are right, compared to perl, PHP is very easy to learn (even veeeeery fast if u have Perl knowlage) bc many parts are based on Perl... but with better and easier acces to many things...
"CGI is just a different version of perl" <--- u haven't read my post dude, plz don't talk nonsens... cgi != Perl it's only one of these languages used for cgi it's not cgi itsself...
__________________
No Webhost at the moment
Reply With Quote
  #14  
Old 02-09-2002, 12:01 AM
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
Quote:
Originally posted by TDO2000


lol in 45 minutes you only know some small basics... Perl (if u are doing big things not silly stuff like a guestbook) can be as complicated as any other language... and yeah you are right, compared to perl, PHP is very easy to learn (even veeeeery fast if u have Perl knowlage) bc many parts are based on Perl... but with better and easier acces to many things...
"CGI is just a different version of perl" <--- u haven't read my post dude, plz don't talk nonsens... cgi != Perl it's only one of these languages used for cgi it's not cgi itsself...
cgi is perl. cgi is c++.cgi is c. cgi is parsed by whatever you choose after the sheebang on a linux platform meaning that cgi == perl if you run it as /usr/bin/perl (or whatever you choose as the process) cgi can also ==c++ if you do /usr/lib/glibc. also in 45 minutes i learned the entire language...believe me...i am a company co-owner & website designer. however php is very simple in about minutes you can be scripting logins, etc. so cgi is the an emulation of whatever you choose as the interface that can be provided as a feature to the web...also you can run .pl files as perl if you want. I'll admit i was wrong saying it was a language, but it is a basic emulation of perl meaning you can call them the same thing. either way php is simpler, faster, and more useful if you don't feel like setting the variable type of each variable...

[definition of cgi]
The Common Gateway Interface (CGI) is a standard for interfacing external applications with information servers, such as HTTP or Web servers. A plain HTML document that the Web daemon retrieves is static, which means it exists in a constant state: a text file that doesn't change. A CGI program, on the other hand, is executed in real-time, so that it can output dynamic information.
[/definition]
[definition 2 for clarification]
CGI stands for Common Gateway Interface, and is a mechanism through which a browser is allowed to communicate with programs running on a server. If you look at each word in turn it makes more sense -

Common - something that is available to many people, regardless of what software they are using.
Gateway - a portal through which two things communicate. In this case, the browser communicates to the server.
Interface - this implies that we are providing a "front end" for the application running on the server, which is exactly what it is. You enter information in the form, for example, and this is submitted to the program, just like a windows-style program.
[/definition]
__________________

!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
  #15  
Old 02-09-2002, 12:44 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
U don't need to set the variable-type for Perl too....
and bc Perl is a part of the big cgi-world it's not CGI itsself Mr Company Owner ^_^
__________________
No Webhost at the moment
Reply With Quote
  #16  
Old 02-11-2002, 12:49 PM
Domini Domini is offline
Wark!
Domini's Avatar
Join Date: Aug 2001
Location: Vancouver BC, Canada
Posts: 2,427
Domini is on a distinguished road
Send a message via AIM to Domini
Thumbs up

HTML
__________________
Reply With Quote
  #17  
Old 02-11-2002, 12:53 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
all i know is:
strequals, a few #things, for that,
strcontains, a few #things, for that.
setani whatever,;
replaceani Blahlolez,usuck;


I'd like to learn things like this.whatever=0, etc,
tokenize, sin, cos, more light effects things, variables or whatever.
and more.

I don't know anyone that is willing to teach or any good tutorials.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
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 10:39 PM.


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