Graal Forums  

Go Back   Graal Forums > General Forums > Graal Main Forum (English)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-06-2003, 09:05 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Scripting Tutorial v.1

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
Attached Files
File Type: txt scripting_tut_ps_v1.txt (25.2 KB, 517 views)
__________________
Who has time for life these days?
Reply With Quote
  #2  
Old 07-06-2003, 09:12 PM
protagonist protagonist is offline
Banned
protagonist's Avatar
Join Date: May 2003
Location: CAW
Posts: 5,586
protagonist is on a distinguished road
Send a message via AIM to protagonist Send a message via MSN to protagonist
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;
}
}
Reply With Quote
  #3  
Old 07-06-2003, 09:14 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
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
__________________
Who has time for life these days?
Reply With Quote
  #4  
Old 07-06-2003, 09:23 PM
xPuppetMasterx xPuppetMasterx is offline
reef
xPuppetMasterx's Avatar
Join Date: Jun 2003
Location: Back in the USA
Posts: 274
xPuppetMasterx is on a distinguished road
Send a message via AIM to xPuppetMasterx
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.
__________________
So free
Reply With Quote
  #5  
Old 07-06-2003, 10:11 PM
Deek2 Deek2 is offline
Registered User
Join Date: May 2002
Location: Springfield, Missouri
Posts: 1,578
Deek2 is on a distinguished road
This made me understand strings ALOT better.
Reply With Quote
  #6  
Old 07-06-2003, 10:16 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Will read another day. And did you decided to sit down after someone else made a tutorial today
__________________
--Spark911
Reply With Quote
  #7  
Old 07-06-2003, 10:18 PM
Soul-Blade Soul-Blade is offline
US Marine
Soul-Blade's Avatar
Join Date: Jul 2001
Location: Coeur d'Alene, ID
Posts: 945
Soul-Blade is an unknown quantity at this point
Send a message via AIM to Soul-Blade
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.
Reply With Quote
  #8  
Old 07-06-2003, 10:28 PM
Raveshaw0 Raveshaw0 is offline
Registered User
Join Date: Apr 2003
Location: germany
Posts: 17
Raveshaw0 is on a distinguished road
Send a message via ICQ to Raveshaw0 Send a message via AIM to Raveshaw0
not bad projectilein
but u forgot how to change ratings kills and deaths XD
__________________
*spaming*
Reply With Quote
  #9  
Old 07-06-2003, 10:32 PM
TripleE TripleE is offline
Down with GK Corruption
Join Date: Jun 2003
Posts: 1,005
TripleE is on a distinguished road
Wow. Somethigns I actually learned.Good Job.
Reply With Quote
  #10  
Old 07-06-2003, 10:39 PM
xPuppetMasterx xPuppetMasterx is offline
reef
xPuppetMasterx's Avatar
Join Date: Jun 2003
Location: Back in the USA
Posts: 274
xPuppetMasterx is on a distinguished road
Send a message via AIM to xPuppetMasterx
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.
__________________
So free
Reply With Quote
  #11  
Old 07-06-2003, 10:50 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
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!
__________________
--Spark911
Reply With Quote
  #12  
Old 07-07-2003, 02:00 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
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
__________________
Who has time for life these days?
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 05:11 AM.


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