![]() |
Quote:
|
I think he means something along the lines of pressing a key and it playing a gani, i.e.:
PHP Code:
E: My final suggestion, if you have a friend who's a good scripter...ask him to tutor you. It's easier to learn from someone rather than something ( I.E. the wiki ). The wiki's just there for informational purposes really, otherwises it's just..blegh. |
Quote:
http://forums.graalonline.com/forums...ad.php?t=67451 All im saying is, when you yourself were having trouble, you looked for help and expected it/would hide behind the whole "im new" thing. When people would flame you for how bad you were, did you not get upset? So why would you in turn do that exact same thing to a new scripter? Give them a chance to learn, its not fluid for some people, and eventually they may realise its not for them. Encourage not Discourage |
Quote:
|
Quote:
|
Quote:
You'll also notice James, that I had good reasoning behind the things I said. If I have an attitude it's because of personal reasons, and that isn't anything to discuss here and you're both ( and rapidwolve ) right that I shouldn't be taking it out on people. And, what I'm saying now is stemming from other encounters with Switch involving him acting like a brass-assed monkey. |
Quote:
|
Quote:
But in terms of success, I mean being able to understand and use gscript, somewhat effectively I guess. |
Quote:
|
I try to teach lots of people GS2 who choose to come to me and it usually works rather well. I PERSONNALY believe the best way to start teaching it is to explain the following:
- How a script is read (compiled together and all the functions are stored to be run when "called") - The 2 different things you can do in a gs2 script (call functions and set variables) - How functions work (Also: calling built-in functions [such as onCreated()] and redefining built-in functions [such as function show() {}]) - The 4 variable types: (Float, String, Object, Array) I believe the last of those things to be the MOST important to actually grasp the concepts of gs2 coding. I am a GUI man though, so my ideas may just be biased as I use objects a lot. If anyone wants to try to make a guide like such, feel free! I should get around to actually making one sometime (when I'm not so swamped D: ). |
Thought I'd do my best to explain objects simply, and a few things of what you can do with them.
This Lesson One, focuses mainly on using text files with objects. PHP Code:
|
The problem with that as being a starting tutorial Stan is, You don't exactly explain what a function or object IS.
|
I think the most important thing for me, and I think others as well, is to have a list of thingies that I can pull out of my sleeve while scripting... I learned the very basics (compared to dontblock;drawoverplayer shizzle from GS1) from Chandler (cool guy btw :) ) but I really should find someone to learn the more complex things like setting a UI or a staffblock that you can spawn with a mouseclick if you have a certain weapon ready.
But the most important thing is how the heck I can be able to UNDERSTAND what is happening in really important scripts. This helped me a lot with GS1. |
gscript 2 is just more confusing for nublets (hell it confuses me). experiment offline with gscript 1 to learn the basics then move on to gscript 2.
im sure im one of the few here who has this opinion though |
Quote:
http://skyld.vip.graal.net/ |
Quote:
|
I personally just think it depends the type of person. GS2 was a ton easier to understand for me then GS1 was.
GS2 is easier for people that are in the mindset of object oriented coding. Otherwise, it seems a ton harder then GS1. |
Quote:
Quote:
|
Quote:
Quote:
|
CREATED is when the weapon is first initialized or updated.
|
Well if you're joking, then, it means when God said let there be an NPC.
If you're not, then it means exactly what Rapidwolve said. The first time the NPC is 'loaded'(first time a/the[not sure] player enters the level), and is not to be confused with onPlayerenters, which executes each time a/the player enters the level, or like mentioned, the NPC/level is updated. |
Quote:
|
Quote:
GS2 is far easier to learn and it's what they'll need to know anyway. Why bother learning something that's already outdated? Not only that, all the stuff on the both the graal bible and Skyld's wiki have GS2 examples and few (if any?) GS1 examples. Quote:
|
Quote:
And you begin to wonder why it is, that I dislike you. @ Zero, well to be honest...lol..I did't give an explanation because I don't know the word for word definition of an object and I'm not too good at explaining singular things. :( |
onCreated = when the npc is created/added, or you update the script (this behaviour has been changed from GS1, to avoid needing to reset the npc all the time)
onInitialized = called on server restart |
Quote:
PHP Code:
|
I remember the old old gscript bible. It explained everything for newbie scripters.
|
I was reading the gscript thing skyld made (very helpful not to mention) but i dont get what you use parameters are for. Someone want to explain?
|
Parameters are information based inside the current event. So if I did something like this.
PHP Code:
|
It's really just passing information from one thing to another. Like passing a note in class. Like with a triggeraction, the destination script has no way of knowing what, say, your level is, unless you send it through the triggeraction. Say you have a gani for hammer, and you have different levels of hammers, level 1, level 2, gold hammer, and different images for each hammer. You can make ONE gani show different images for each level of the hammer, instead of a gani for each level. But, it must be told what level the hammer is, so you pass it through a parameter.
|
Quote:
|
Quote:
|
Well, he's passing a variable, and it's information as a parameter. That means when he goes to echo, he's echoing parameter 0(the first parameter), which is the variable temp.chatText. But, it is echoing the variables information, so it will echo just stuff.
|
Q: Parameters are (?)
|
Quote:
PS: Post #70 or #73 |
Quote:
|
Quote:
Quote:
|
Quote:
|
Well, your question wasn't very clear so I didn't understand you. Sorry if I insulted you.
|
Quote:
|
| All times are GMT +2. The time now is 07:35 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.