Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Well, the fallen angel has decided to take an intrest in GScript! (https://forums.graalonline.com/forums/showthread.php?t=23255)

AlkarenHyralt 02-07-2002 01:19 PM

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. :( :( :(

Faheria_LAT1 02-07-2002 01:52 PM

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

AlkarenHyralt 02-07-2002 01:59 PM

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

nyghtGT 02-07-2002 03:49 PM

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 ...

TDO2000 02-07-2002 09:37 PM

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...

Falcor 02-07-2002 10:04 PM

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

TDO2000 02-07-2002 10:07 PM

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...

Falcor 02-07-2002 10:16 PM

Common Gateway Interface

Duh,

But when you hear CGI you think Perl

TDO2000 02-07-2002 10:22 PM

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 ^_^

Saga2001 02-08-2002 12:54 AM

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. ;)

nyghtGT 02-08-2002 03:28 AM

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 ...

LiquidIce00 02-08-2002 06:37 AM

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.

TDO2000 02-08-2002 09:19 PM

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...

Saga2001 02-09-2002 12:01 AM

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]

TDO2000 02-09-2002 12:44 AM

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 ^_^

Domini 02-11-2002 12:49 PM

HTML ;)

Torankusu 02-11-2002 12:53 PM

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.


All times are GMT +2. The time now is 10:53 PM.

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