Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Anybody out there? (https://forums.graalonline.com/forums/showthread.php?t=134258434)

chuninexam 03-19-2010 02:27 AM

Anybody out there?
 
Hey guys... wow!! These forums are dead! The whole game population is. I played this game 9 years ago before G2k1 came out (I loved G2K1) and there was usually around a thousand atleast people playing!!

In my opinion there is no server on graal right now that compares to G2K1... it's sad that it's gone.

I recently started playing again because a friend and I were thinking about old MMOs and remembered this game and the level/npc editing in this game is amazing. Fun Stuff...

So we're planning on making our own playerworld. I've been messing around with the level editor a bit but there's alot of really BASIC stuff I forget how to do. Not that I was ever good at npc editing.. in any case I need to learn how to script well and I need help.

If any of you out there with some knowledge are so kind to offer me advice, links, resources for learning I'd appreciate it.

Also if anyone is willing to chat with me to allow me to ask you some stupid questions...

add my msn ... [email protected]

... or hook me up with your chat addresses and I'll add you :)

fowlplay4 03-19-2010 02:36 AM

Links that may help:

http://wiki.graal.us/ - Skyld's GS2 Documentation
http://wiki.graal.net/index.php/Creation/Dev/GScript - gBible Documentation contains a couple tutorials
http://public.zodiacdev.com/index.php?title=Fowlplay4 - Tutorial I started work on, that still needs work. Includes introduction to NC so this should interest you.
http://www.gs2.graalstudios.com/ - Twinny's scripting guide.

You can learn a lot about different functions and so on by searching previous threads, as well as working with some of the examples in the Code Gallery.

If you can't find the help you need by searching feel free to make a thread but don't abuse the privilege to the point where you're just posting and waiting for someone to finally post an entire system copy-paste solution.

chuninexam 03-19-2010 03:23 AM

Right off the bat I'm thrown off by GS2. I don't remember GS2 in the old game.

Imperialistic 03-19-2010 04:09 AM

In the "old game" it was GS1.
GS2 is just an improvised and improved version of it.

Those tutorials could teach a monkey, you just have to be devoted to it. I'm sure you could always Forum PM a scripter if you need help with your scripts.

Skyld 03-19-2010 04:19 AM

Quote:

Originally Posted by chuninexam (Post 1563492)
Right off the bat I'm thrown off by GS2. I don't remember GS2 in the old game.

Old GScript had the quality of being relatively simple to get started with, but it blurred way too many features of scripting and was not at all extensible. GScript2 is more like a typical general purpose scripting language, which might make it look more daunting, but it is very flexible and powerful in comparison.

chuninexam 03-19-2010 04:35 AM

Quote:

Originally Posted by Skyld (Post 1563501)
Old GScript had the quality of being relatively simple to get started with, but it blurred way too many features of scripting and was not at all extensible. GScript2 is more like a typical general purpose scripting language, which might make it look more daunting, but it is very flexible and powerful in comparison.

But how do I go about learning GS2 script?

"First let's cover what you need. To be able to follow this tutorial along, you will need access to RC with relevant scripting rights. Just ask your manager or whoever. While you can follow the tutorial without access, you won't get to practise anything." - From one of those tutorials..

GS2 only works online? I can only practice it when I have the ability to test it live on a server? That's something I don't get.

Should I learn GS1 first? Do I even bother learning it at all? Do they fit together?

Lol.. I hate asking unbearably stupid questions. But I'm not very good at learning so I have no choice.

fowlplay4 03-19-2010 05:09 AM

GS2 is compiled by the NPC-Server and transferred to the client unlike GS1 which was able to just run on the client.

There's not much point in learning GS1 since you'll be advised to use GS2 instead.

chuninexam 03-19-2010 05:32 AM

Quote:

Originally Posted by fowlplay4 (Post 1563511)
GS2 is compiled by the NPC-Server and transferred to the client unlike GS1 which was able to just run on the client.

There's not much point in learning GS1 since you'll be advised to use GS2 instead.

Hmm.. I see. Well is there alot I can learn and practice without having access to the NPC server?

Is there no scripts that work both in offline and online conditions anymore?

Or should I rent a playerworld right away to have the access to the tools I need?

http://www.graalonline.com/playerwor...?page=Creation

Thanks ^^

papajchris 03-19-2010 05:38 AM

pm tig i think to get access to testbed, a server that is ran by scripters. its just a place to meet other scripters and to test your scripts.

maximus_asinus 03-19-2010 05:39 AM

Forum PM Tigairius, I believe he is in charge of the Testbed server. The Testbed server is used for aspiring scripters. Basically you're given all the rights you need on a live server to test whatever you wish.

fowlplay4 03-19-2010 06:03 AM

Quote:

Originally Posted by chuninexam (Post 1563514)
Is there no scripts that work both in offline and online conditions anymore?

Common GS1 scripts typically work but those should/most likely will be replaced with proper class scripts and placed in levels with minimal code like so:

PHP Code:

function onCreated() {
  
this.join("door");


Then in the door class script:

PHP Code:

//#CLIENTSIDE
function onPlayerTouchsMe() {
  
// Hide the door
  
hide();
  
// Pause the script for 3 seconds
  
waitfor(this"Wait"3);
  
// Un-hide the door
  
show();



chuninexam 03-19-2010 07:33 AM

Quote:

Originally Posted by fowlplay4 (Post 1563517)
Common GS1 scripts typically work but those should/most likely will be replaced with proper class scripts and placed in levels with minimal code like so:

I see... well thanks everyone for the help. :cool:


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

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