Hey guys! I wanted to let you all know that I am kicking off a Ruby Scripting Tutorial Youtube series. Come watch, learn, and comment! Subscribe to get auto notifications when new tutorials are done. www.youtube.com/user/gubid
Tutorial 1 - Hide Save Menu Option
Tutorial 2 - Understanding Variables
Tutorial 3 - Classes/Methods/Inheritance
Tutorial 4 - Class Change System (by equiping weapon)
I like these tutorials, and they are a great help to those who don't understand ruby yet! I think you are doing something great here GubiD
Also, there are a few things I'd like to point out. In the second video, there is a method that will print each variable separated by a comma onto a new line. The method 'p', so the code would look like this:
a,b,c = 'a','b','c' # The correct way: p a, b, c #=> a b c
# Your way: print a, b, c #=> abc
I would focus on the ruby aspects moreso than the rgss/2 as well; i understand that this site is dedicated to the rpg makers, but for the future scripters who read/see these kinds of tutorials, it'd be best if the user wasn't taught to limit themselves to the rgss/2 api(s), you know? Just thought I'd throw in my two cents.
EDIT: I'd also recommend doing a tutorial or two on the Kernel, and/or Object, to give the user the commands they can use anywhere in their programming in the rgss/2 api, so as to not overwrite them, etc.
I was never really a scripter, but after spending so much time with various scripts, I kinda found out how to do various things....for instance I have done the exact same thing shown in Tutorial 1 on my own through trial and error.....and it's good to see my logic is on at least....
I always had trouble understanding how the sub-classes < Classes worked, as well as when you could use certain variables at which time....and how to utilize it all to my advantage.....If you keep these tutorials coming I might just actually start scripting! (I would rather the tutorials heavily based off RGSS2 instead of Ruby, because I'll probably only use it for VX)
Gubid, you are the Fu%$ing man!!!!
BTW: After seeing the tutorials, I figured out a way to make YERD_SkillSlots compatible with GTBS.....All I had to do was change one little thing in Yanfly's script to see if the Scene was a Scene_Battle_TBS instead of Scene_Battle(Line 861)........I'm still a long ways off from even comprehending all of GTBS....but at least I can figure out a little at a time.....and that's good enough for me!!! (And I'll be sure to bug you about GTBS in the appropriate forum....)
This post has been edited by Nelderson: Apr 19 2011, 01:11 AM
well your if array = hash.key is your problem. A single = means, make this equal that. == is compare. Aside from that, the hash command is .keys. So your command would really need to be.. if array == hash.keys
No method: 'stupid_title' found for 'nil:NilClass`
Alignment: Chaotic Good
One thing that beginners often get hung up on is program structure. They see a bunch of classes and variables, but don't know much about scope and when/how instances of these classes are created and used. It all seems very free form to a beginner and it is difficult for them to reason through a problem because they don't really know where or when the code they are looking at gets executed.
Anyway, nice job here Gubid. I watched the first couple and they seem really good.
While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond
Hey. Before I start I want to say this is my first post. So I'm sorry for bad grammar bad spelling lack of punctuation (thank god for spell check).
I just wanted to say your videos have been a big help. I've done a bit of scripting in Pearl so understand it is easy but your tutorials have enabled me to go in to all the scripts I'm using and fix bugs. Best one so far is the "unless $@". ran in to that issue just after watching Tutorial 6 during some minor test.
So thank you very much for the videos GubiD. I look forward to the next ones.
And I Dance dance dance, da dance dance dance. Why? I'm a kitty cat.