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 05-15-2007, 10:45 PM
pooper200000 pooper200000 is offline
The Blackswan
Join Date: May 2006
Location: Asylum
Posts: 5,060
pooper200000 will become famous soon enough
Send a message via AIM to pooper200000
Basic NO PREVIOUS KNOWLEDGE TUTORIALS

Are there any basic tutorials for learning GS2? When I say basic I mean have absolutely NO previous knowledge of GS2 at all. I have found no tutorials on the wiki/this forum/ sklyds(Well his site doesn't work) that explain the basics. Does anyone know any tutorial that may help with the very very basics?
__________________
Always Watching!
Reply With Quote
  #2  
Old 05-15-2007, 10:46 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Yeah Supernanny and I were talking on Zone about this and we seriously need to know THE VERY BASICS of GS2. That's how much we know: NADA TING!
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #3  
Old 05-15-2007, 11:39 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
The basics of GS2 can be learned on either of the wikis! They require no previous knowledge! If you know GS1, that will help. If you don't, maybe you want to learn the basics in GS1, then come back to the tutorial. I strongly suggest you take a class on Java or C++, it will clear this up for you a lot!
__________________
Reply With Quote
  #4  
Old 05-15-2007, 11:45 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Unfortunately the VIP hosting is down at the moment, and so is my GScript Wiki. I'll see if I can get it fixed.
__________________
Skyld
Reply With Quote
  #5  
Old 05-15-2007, 11:51 PM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Quote:
Originally Posted by Skyld View Post
Unfortunately the VIP hosting is down at the moment, and so is my GScript Wiki. I'll see if I can get it fixed.
Yeah I know, I am a regular user of your wiki. Was getting ready to contribute more functions but it was down.
Reply With Quote
  #6  
Old 05-16-2007, 12:15 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
No, I mean, C++ Takes a LONG time, so I hear. We mean ABSOLUTELY NO SCRIPTING KNOWLEGE!
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #7  
Old 05-16-2007, 12:17 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Rapidwolve View Post
Yeah I know, I am a regular user of your wiki. Was getting ready to contribute more functions but it was down.
I've let Stefan know about it being down, he'll see if unixmad can look at it tomorrow.
__________________
Skyld
Reply With Quote
  #8  
Old 05-16-2007, 01:22 AM
pooper200000 pooper200000 is offline
The Blackswan
Join Date: May 2006
Location: Asylum
Posts: 5,060
pooper200000 will become famous soon enough
Send a message via AIM to pooper200000
Quote:
Originally Posted by cbkbud View Post
The basics of GS2 can be learned on either of the wikis! They require no previous knowledge! If you know GS1, that will help. If you don't, maybe you want to learn the basics in GS1, then come back to the tutorial. I strongly suggest you take a class on Java or C++, it will clear this up for you a lot!
I've asked you which ones you thought were good because Ive tryed 3 and none of them have helped me I still don't understand it a bit. Could someone post some of the most basic Explanatory ones because I am having a great deal of difficulty finding them if they are there. O and on the classes note what type of classes?
__________________
Always Watching!
Reply With Quote
  #9  
Old 05-16-2007, 01:26 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by pooper200000 View Post
I've asked you which ones you thought were good because Ive tryed 3 and none of them have helped me I still don't understand it a bit. Could someone post some of the most basic Explanatory ones because I am having a great deal of difficulty finding them if they are there. O and on the classes note what type of classes?
Basically he means:
Don't expect us to know ANYTHING! Instead, expect us to know NOTHING. No commands, nada, zip.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #10  
Old 05-16-2007, 01:46 AM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
I found one that -SORTA- works... just gets you a bit started...
http://wiki.graal.net/index.php/Crea...e#Introduction
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #11  
Old 05-16-2007, 01:47 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
PHP Code:
function onCreated()
{
  
player.chat "Stuff.";

If you can't even figure that out, you haven't even attempted to learn anything on your own.

http://wiki.graal.net
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #12  
Old 05-16-2007, 01:52 AM
pooper200000 pooper200000 is offline
The Blackswan
Join Date: May 2006
Location: Asylum
Posts: 5,060
pooper200000 will become famous soon enough
Send a message via AIM to pooper200000
Quote:
Originally Posted by Switch View Post
I found one that -SORTA- works... just gets you a bit started...
http://wiki.graal.net/index.php/Crea...e#Introduction
thats the one!
Quote:
Originally Posted by killerogue View Post
PHP Code:
function onCreated()
{
  
player.chat "Stuff.";

If you can't even figure that out, you haven't even attempted to learn anything on your own.

http://wiki.graal.net
I guess Im stupid. I spent 3 hours trying to figure it out and am still lost...
__________________
Always Watching!
Reply With Quote
  #13  
Old 05-16-2007, 01:55 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
I started writing http://wiki.graal.net/index.php/Crea...pt_for_Dummies ages ago, however I did not ever finish it.
__________________
Skyld
Reply With Quote
  #14  
Old 05-16-2007, 02:00 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Just because people don't grasp it as easy as others doesn't mean they haven't tried. Some people can't learn by dissecting a script and understanding it like others. Sometimes they have to be explained things on a simple level. Sometimes they have no knowledge of how scripting/coding works. How are they supposed to know to make sure to enclose each function/if in parenthesis unless they've been taught that. How about knowing to enclose strings in quotes, or even what a string is. Or that each command has to be ended with a semi-colon?
These things just aren't 'grasped' by seeing things for everyone, sometimes they have to be explained, and to be honest, the wiki seems a little bit hard to browse, especially if you don't know what you're really looking for.
Reply With Quote
  #15  
Old 05-16-2007, 02:04 AM
PrinceOfKenshin PrinceOfKenshin is offline
That guy with a beard
PrinceOfKenshin's Avatar
Join Date: May 2004
Location: Ontario, Canada
Posts: 819
PrinceOfKenshin has a spectacular aura aboutPrinceOfKenshin has a spectacular aura about
I guess the problem is...as it the same with me that we don't need the basic info on it but just how to apply certain things.

Forexample:
NPC Code:
abs(float)
arctan(float) - arcus tangens
char(ascii) - gets the character for an ascii code (char(65) returns 'A')
cos(angle) - cosinus of a radiant angle
exp(float)
float(string) - for explicitely converting a string
to number (normally done automatically though
when accessing a string with numeric operators)
format(format,parameters,...) - formats a "%s %d" string,
inserts the parameters, and returns a string
getangle(delta x,delta y)
getdir(delta x,delta y) - returns 0 for up, 1 for left,
2 for down, 3 for right
int(a) - gets the integer part of a floating point number
log(base,a)
max(a,b)
min(a,b)
printf(format,parameters,...) - same as
echo(format(format,parameters,...))
random(rangestart,rangeend)
sin(angle) - sinus of a radiant angle
sleep(time) - suspends the current script for some time
vecx(direction 0..3)
vecy(direction 0..3)
waitfor(objectname,event[,timeout]) - suspends the current script




all that yea sure it tells me what it is but how do i apply that to make it work in a script. Some things in there i understand like the obvious ones. The only other language i know is Visual Basics so im not use to programming an object oriented langauge.

Like what am i going to use arctan(float) for? stuff like that is confussing to people.
__________________


Quote:
Game Master (Server): Greetings PrinceOfKenshin, there are new posts on the forums that demand your urgent attention! God speed, the fate of the world is in your hands. If you fail, middle earth will forever be in the darkness and your children will be enslaved by McKain.
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 03:18 AM.


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