Announcement
Announcement
| 2nd Quarter Contest Announcement posted! See the Community Announcements section. |
![]() ![]() |
Jun 2 2009, 03:57 PM
Post
#1
|
|
![]() bullet inside me ![]() Type: Coder Alignment: Unaligned |
Start scripting: Learn what are the steps
Version: 0.1 Author: BulletXt (bulletxt@gmail.com) A lot of people ask where do they have to start if they want to script. The general reply they get is to learn Ruby. This answer may sound correct, but programming is not a language, it is a process. The process of writing source code often requires expertise in many different subjects, including knowledge of the application domain, specialized algorithms and formal logic. Knowing math is a must, the more you know it the more you will find solutions to your problems. The language you use when creating a software is just a detail, the most important thing is that you must have the basic knowledge of what programming means and the basic "instruments" you must have in your mind. I will attempt to explain what are the basic steps before even trying to get into the RGSS2 world. Step 1: The basic - learn how to create basic variables, like a string or an integer, and learn how to work with them - create an if branch, including the usage of "case" - create and understand what is a While cycle - create and understand what is an Array and how to handle it - create and understand what is a Hash Hable and how to handle it (advanced) Step 2: Classes, Methods, Properties - learn what is a Class - learn what is a Method - learn how to create an Object of a given Class - learn how to call a Class's method - learn how to handle variables inside or outside a class Step 3: Get into VX default scripts and its 3 Big Areas - learn the existance of the 3 big areas: Game, Window, Scene - learn what Game_Map, Game_Actor, Game_Party and Game_Troop scripts do and handle - learn Window_Command and the classes it inherences - learn any Window script you want, for example Window_Skill - learn what are the Scenes scripts, in the specific learn Scene_Map and Scene_Menu Step 4: Your first scripts - create a script that makes a Window (for example the gold window) appear/disappear on map if player presses a key button - create a script that makes a bitmap appear/disappear on map if player presses a key button - create a script that adds a voice inside Menu commands, and if selected opens a new Window Step 5: Learn the other scripts - learn all the other scripts, a little at a time, depending on your needs, for example Scene_Battle to edit battles These are the basics steps you must learn if you aren't a software developer. Keep in mind the most important things to learn are the steps specified in Step 1. Do not proceed to any further step if you haven't learned in depth those. A good tutorial for Step 1 and 2 can be found at: here This is a great reference for how your code should be structured to maximize readability (Thanks BigEd781) This post has been edited by Mithran: Oct 21 2010, 02:31 AM -------------------- Developing the following scripts: SwapXT, Audio Engine XT , Do $something if inside an Area , Warning Before Random Battle Starts , Arabic Reading Right to Left, Enable Battle in Vehicle, Fast Boot For Developers, Pause Game, Disable Main Input Keys, Remove Attack Command, Reduce Battle Encounter with Accessory, Disable AutoShadow Plus, Paper Mario Walk, Minigame: Win the Lottery!, Thomas Edison VX, Continue Map's BGM after battle, AutoSave VX and more... |
|
|
|
Jun 2 2009, 04:15 PM
Post
#3
|
|
![]() No method: 'stupid_title' found for 'nil:NilClass` ![]() Type: Coder Alignment: Chaotic Good |
Very nice. This will be a great primer for those who want to learn to script but have no clue where to start. I remember when I started out programming, it all seemed somewhat overwhelming.
-------------------- My blog - It's awesome, I assure you
QUOTE 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 ---![]() My awards for being so awesome Spoiler: |
|
|
|
Jun 2 2009, 06:25 PM
Post
#4
|
|
![]() Not a democracy ![]() Type: Spriter Alignment: Lawful Evil |
This is good, I'm particulary getting into VX scripting this summer, so this will be helpful and I'm hoping this doesn't just stay like this and it gets more content. Also, remember to tag it [-Scripting-]
-------------------- |
|
|
|
Jun 3 2009, 09:08 PM
Post
#5
|
|
![]() ADMINZ? MODERATORS? LOL! ![]() Type: Undisclosed Alignment: Chaotic Evil |
So this is all I need to learn???
This was very helpful, bulletxt! -------------------- OI!
|
|
|
|
Jun 3 2009, 09:33 PM
Post
#6
|
|
![]() No method: 'stupid_title' found for 'nil:NilClass` ![]() Type: Coder Alignment: Chaotic Good |
So this is all I need to learn??? This was very helpful, bulletxt! Well, no, this is a good outline of what you should learn first. It doesn't have to be followed to the letter, but it is a good guide. -------------------- My blog - It's awesome, I assure you
QUOTE 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 ---![]() My awards for being so awesome Spoiler: |
|
|
|
Jun 5 2009, 08:22 PM
Post
#7
|
|
![]() ADMINZ? MODERATORS? LOL! ![]() Type: Undisclosed Alignment: Chaotic Evil |
Well, no, this is a good outline of what you should learn first. It doesn't have to be followed to the letter, but it is a good guide. Good point. -------------------- OI!
|
|
|
|
Jun 6 2009, 05:34 PM
Post
#8
|
|
![]() FOX uses REST! FOX is vast asleep... ![]() Type: Coder |
This... Is... GREAT I've been reading the poignant guide of ruby (or something like that, i forgot the name), but each time I started on a new chapter, I had forgotten about the commands that were explained in the chapters before that one. So in the end, I didn't know what to do at all This post has been edited by NineTailedFox: Jun 6 2009, 05:35 PM -------------------- |
|
|
|
Jun 6 2009, 09:33 PM
Post
#9
|
|
![]() No method: 'stupid_title' found for 'nil:NilClass` ![]() Type: Coder Alignment: Chaotic Good |
This... Is... GREAT I've been reading the poignant guide of ruby (or something like that, i forgot the name), but each time I started on a new chapter, I had forgotten about the commands that were explained in the chapters before that one. So in the end, I didn't know what to do at all Yeah, you can only retain so much information by reading. You really need to just write a lot of code to get this stuff down. -------------------- My blog - It's awesome, I assure you
QUOTE 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 ---![]() My awards for being so awesome Spoiler: |
|
|
|
Jun 6 2009, 09:42 PM
Post
#10
|
|
![]() Type: Undisclosed Alignment: Unaligned |
Small suggestion: Make a sticky topic in the Learning Ruby & RGSS2 forum that links to this.
|
|
|
|
Aug 4 2009, 02:44 PM
Post
#11
|
|
![]() All of my grope. ![]() Type: Artist Alignment: Chaotic Evil |
i was looking for a tut
not what i have to learn -------------------- Hey, look at me. I'm a useless signature.
|
|
|
|
| Guest_zeroplumber_* |
Aug 5 2009, 01:08 AM
Post
#12
|
|
Guests |
|
|
|
|
Aug 5 2009, 01:09 AM
Post
#13
|
|
![]() Type: Undisclosed Alignment: Unaligned |
|
|
|
|
Aug 5 2009, 02:40 AM
Post
#14
|
|
![]() No method: 'stupid_title' found for 'nil:NilClass` ![]() Type: Coder Alignment: Chaotic Good |
Pinned, thanks to conbomb's awesome comment bringing me back here.
-------------------- My blog - It's awesome, I assure you
QUOTE 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 ---![]() My awards for being so awesome Spoiler: |
|
|
|
Aug 9 2009, 08:04 AM
Post
#15
|
|
![]() I'm not just a furball. I'm a FLUFFY furball! ![]() |
Thanks so much bullet!
Maybe I'll find out how to fix my script! -------------------- _____________________________________________________________________________
A word to the non-English... Spoiler: |
|
|
|
Aug 16 2009, 11:28 PM
Post
#16
|
|
![]() Lurking... ![]() Type: Undisclosed Alignment: True Neutral |
Seems a great help bulletxt. Thanks for posting this.
-------------------- |
|
|
|
Aug 16 2009, 11:42 PM
Post
#17
|
|
![]() ![]() Type: Designer |
Thanks for posting this, but it seems like I'm having a lot of trouble with it already. While following the instructions on the link you gave us, the commands I enter that it tells you to enter always end up in some kind of error. Except for the beginning example of: print "Hello Ruby!"
Can I get some help on this? -------------------- |
|
|
|
Aug 17 2009, 12:09 AM
Post
#18
|
|
![]() But soon enough you will care by the time I'm done. ![]() Type: Musician Alignment: True Neutral |
Thanks for posting this, but it seems like I'm having a lot of trouble with it already. While following the instructions on the link you gave us, the commands I enter that it tells you to enter always end up in some kind of error. Except for the beginning example of: print "Hello Ruby!" Can I get some help on this? I've had the same issue trying to follow some of the commands in that guide. Try making use of the Ruby guide that's included with the download, "The Pragmatic Programmer's Guide" or something like that. It's been working for me so far. -------------------- Click here to find some great resources and VX help. Click here to listen to my music. ![]() ![]() Other great games: Gettin' Dizzy! by MrAnonymous Ravenwood Horror by Min Chan |
|
|
|
Aug 17 2009, 05:24 PM
Post
#19
|
|
![]() ![]() Type: Designer |
Thanks Svolta, but where is this guide exactly? Is it on the Ruby application?
-------------------- |
|
|
|
Aug 17 2009, 05:27 PM
Post
#20
|
|
![]() But soon enough you will care by the time I'm done. ![]() Type: Musician Alignment: True Neutral |
Thanks Svolta, but where is this guide exactly? Is it on the Ruby application? Um. It's in my Start menu under Ruby->Ruby Documentation->RubyBook Help. Here's an online version as well though: http://www.rubycentral.com/book/ -------------------- Click here to find some great resources and VX help. Click here to listen to my music. ![]() ![]() Other great games: Gettin' Dizzy! by MrAnonymous Ravenwood Horror by Min Chan |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 19th May 2013 - 12:52 PM |
|
|