![]() |
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?
|
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!
|
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!
|
Unfortunately the VIP hosting is down at the moment, and so is my GScript Wiki. I'll see if I can get it fixed.
|
Quote:
|
No, I mean, C++ Takes a LONG time, so I hear. We mean ABSOLUTELY NO SCRIPTING KNOWLEGE!
|
Quote:
|
Quote:
|
Quote:
Don't expect us to know ANYTHING! Instead, expect us to know NOTHING. No commands, nada, zip. |
I found one that -SORTA- works... just gets you a bit started...
http://wiki.graal.net/index.php/Crea...e#Introduction |
PHP Code:
http://wiki.graal.net |
Quote:
Quote:
|
I started writing http://wiki.graal.net/index.php/Crea...pt_for_Dummies ages ago, however I did not ever finish it.
|
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. |
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) 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:
The player chats "Stuff"? And I'm guessing that you have to touch some invisible NPC in a level OR it has to be fired as a weapon..? :P Yea I still don't get much of the http://wiki.graal.net, just most of it from the top to 3/4 down xD |
Sadly I find the wiki lacking one thing(I've yet to see skyld's though), and that is actually what goes in commands. All it tells you is if it's a floating, integer, or string. That doesn't really help much...
Anyways, for Switch: PHP Code:
{...} // As explained above, parenthesis are closed around any amount of commands executed when an event is called. All commands must be executed with an event/function and closed inside parenthesis. player.chat = "Stuff."; // player.* is associated with anything for the player. This can be player.hearts, for their hearts, player.ap, for their ap, player.x, for their x coordinate, and so on. So, taking that, and taking the knowledge that = is assign, means that you are assigning something to the player's chat, which means you'll force them to say something. "Stuff." is a string. A string is alphanumerical. That means anything not a variable, floating value, integer, has to be enclosed in quotes, or else it won't be assigned. If you want to get basic, text has to be in quotes. And lastly, the semi-colon has to be after every command. Anytime you do 'something' end it with a semi-colon before you move onto the next thing. |
Quote:
|
Well, in all honesty. I completely agree with you. And I do because a while back, I had to take a test in a program right before the school year started to determine what is the easiest way for me to learn.
I am a dependent learner, in which I mean that it's hard for me to learn something unless someone explains it or I have been taught it by someone else. Now, unless I'm not mistaken...Isn't Switch an honors student, or so he's bragged before? And in his signature did it not say, "Became an ok scripter blah blah"? I'm almost sure he isn't mentally deficient, or lacking mentally in any areas. So I don't think it would be that hard for him to read that section of the wiki and understand events. I did...and I average below a 3.0 for the time being. Pooper, I will retract my comment about him/her because I know nothing about him/her. |
Quote:
It's not all about memorizing everything. |
Quote:
The signature I took out. Plus, it was only that I could fix some small things x.x In the wiki, it doesn't explain everything or answer my questions, which is basically the main reason I have troubles with tutorials x.x |
Ya, I find myself looking up commands and stuff a lot when I script :(
You should just focus on remembering the clockworks of scripting, as then you'll turn a 1000 piece puzzle into those puzzles for toddlers that the pieces fit into predefined shapes for the kid, and all you have to do is fill in the blanks, even if you have to look for what to fill them in with first. |
Quote:
Other stuff... Oh? Post your questions here and I'll answer them best I can. :) |
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
|
Quote:
Stefan does! :) |
Quote:
|
I see him post 'I think' sometimes when answering scripting questions :P
|
Quote:
But he's always right. :frown: |
Quote:
|
Maybe, but he's not always sure if he is. :)
|
Quote:
|
Quote:
Maybe you shouldnt be so quick to talk down to people when you "came up" the same way they are trying. Quote:
|
Quote:
Well put |
ok well lets say im going to script simple gun what would i use?
|
shoot(), would be the simplest of ways, and can be done with one command and a couple of ganis. Sorry I can't provide the details, I don't remember. I'll look it up after House is done. :)
EDIT: PHP Code:
function onWeaponfired() {..} // Everything inside this function is called when the weapon is fired. shoot(stuff)... // Shoots a projectile that is visible as whatever gani is defined. As for the specs, straight from newfeatures, as no need to repeat them in different words: x,y and z - specify the starting position angle - shoot angle (when looking from the top): east is 0, north 3.14/2, west is 3.14, south 3.14*3/2) zangle - the angle in vertical direction, 0 means the projectile is shoot horizontal, 3.14/2 means straight to the sun power - the shoot power which is used to shoot the projectile; if it's 0 then the projectile is shoot like an old arrow (doesn't fall down, moves 20 tiles each second) gani - the animation that is used for the projectile; the animation can be multidirectional, the engine automatically selects the best direction for the flying direction; the animation can have 1 step (not animated) or 7 steps, then the engine is automatically choosing the good animation step for the projectile flying angle - when its raising then step 1 is taken, when flying horizontal it is step 4, when it is short before the impact then the engine displays step 7 If anything confuses you, I'll try to answer. There's a lot more to it than this, but I figured you should start off with just getting a bullet going. |
not that simple lol you would use keydown gani scripts. Is that it?
|
Quote:
|
| All times are GMT +2. The time now is 04:00 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.