Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal Main Forum (English) (https://forums.graalonline.com/forums/forumdisplay.php?f=4)
-   -   Scripting Tutorial v.1 (https://forums.graalonline.com/forums/showthread.php?t=45989)

Projectshifter 07-06-2003 09:05 PM

Scripting Tutorial v.1
 
1 Attachment(s)
Yes, I finally decided to sit down and write up a little scripting tutorial. I need to add more about things like classes and the Control-NPC, but oh well. I spent 4 hours last night writing it, from 11pm to 3am (hey, South Park the movie was on!) and I brought my computer downstairs. It's not an official document, just more of something that I made because I had 20+ people (literally) last night bugging me about teaching them things. The next revision will have classes (deals with the NPC Server) and arrays.
So I hope you guys enjoy it and it's easy to follow. Thanks.
---Shifter

protagonist 07-06-2003 09:12 PM

It would have been wise to put timeout in the beginning basics since it is an if. It's also wise to determine the difference between event checks(playerchats, timeout) and conditionals (strequals and such) so people don't do

if(strequals(#a, protagonist)) {
if(timeout) {
message poo;
}
}

Projectshifter 07-06-2003 09:14 PM

Argit, I knew I forgot something.
And no, timeouts don't need to be anywhere but where they are x-x
I forgot to explain the difference between an event and a non-event.
---Shifter

xPuppetMasterx 07-06-2003 09:23 PM

I'm glad to see you came through for us. :)
Hopefully we can try that again some other time when your not as busy. It seems people were very excited, so I don't think there would be any problems as to how many people would show up.

Deek2 07-06-2003 10:11 PM

This made me understand strings ALOT better. :)

Spark910 07-06-2003 10:16 PM

Will read another day. And did you decided to sit down after someone else made a tutorial today ;)

Soul-Blade 07-06-2003 10:18 PM

Surprisingly the document wasn't as idiotic as I would have expected, but then again it wasn't all the advanced. Maybe less talk about other languages and more about gscript?

As for classes and arrays, whats there to explain? "Ok you have a class, it works like a function, then you have a array, it is a multivalued variable" and boom done.

Overall, I did not bother reading the whole thing but it seems decent, nice work.

Raveshaw0 07-06-2003 10:28 PM

not bad projectilein
but u forgot how to change ratings kills and deaths XD

TripleE 07-06-2003 10:32 PM

Wow. Somethigns I actually learned.Good Job.

xPuppetMasterx 07-06-2003 10:39 PM

Quote:

Originally posted by Spark910
Will read another day. And did you decided to sit down after someone else made a tutorial today ;)
Actually, he came on maloria yesterday to help us out, so I asked if he could do a scripting class. Unfortunately he had to leave, but he said he would make a tutorial, and here it is..

This was very helpfull in my mind, hopefully I can get in contact with him again to ask a few questions about some things I didn't fully understand.

Spark910 07-06-2003 10:50 PM

Quote:

Originally posted by xPuppetMasterx


Actually, he came on maloria yesterday to help us out, so I asked if he could do a scripting class. Unfortunately he had to leave, but he said he would make a tutorial, and here it is..

This was very helpfull in my mind, hopefully I can get in contact with him again to ask a few questions about some things I didn't fully understand.

Yeah I know really ;)
He said something about it ages ago, and made that flash thing. But its better as a document!

Hmm... Make it .rtf you can format and add colour!

Projectshifter 07-07-2003 02:00 AM

Wow, reading this makes me happy to know that my work is appreciated =)
I figured I had better do one eventualyl, so I did. Ja ja, classes aren't that hard, but there could be asection on putnpc2 and classes combined, that's a very major thing. If anyone thinks that they have some scripts that they want to test online, I'm sure I could arrange a place for that to happen =)
ESPECIALLY coming from Soul_Blade, compliments are very nice, thanks guys.
Deek, see, strings aren't that hard, they're my favorite thing XP.
I just thought that I knew South Park the movie had like a half a dozen MILLION commercials that were each 100 minutes long, I went and brought my computer down before they replaced Kenny's heart with a baked potato, opened up word and began to type.
It WAS in a .doc format (Word), but the forums only allow .txt as far as uploading of doc's go.
---Shifter


All times are GMT +2. The time now is 07:35 PM.

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