![]() |
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 |
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; } } |
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 |
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. |
This made me understand strings ALOT better. :)
|
Will read another day. And did you decided to sit down after someone else made a tutorial today ;)
|
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. |
not bad projectilein
but u forgot how to change ratings kills and deaths XD |
Wow. Somethigns I actually learned.Good Job.
|
Quote:
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. |
Quote:
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! |
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.