iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

Keep an eye out for the upcoming 3rd Quarter Contest!
4 Pages V   1 2 3 > »   
Reply to this topicStart new topic
> [-Scripting-] Start scripting: Learn what are the steps, The basic things you must know for scripting
bulletxt
post Jun 2 2009, 03:57 PM
Post #1


bullet inside me
Group Icon


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


--------------------
Working on the following games: Lodestone2d , World Truck Racing
Go to the top of the page
 
+Quote Post
   
GrandmaDeb
post Jun 2 2009, 04:12 PM
Post #2


Retired
Group Icon


Type: Undisclosed
Alignment: Unaligned




nicely done, bullet!@ smile.gif


--------------------
Go to the top of the page
 
+Quote Post
   
BigEd781
post Jun 2 2009, 04:15 PM
Post #3


No method: 'stupid_title' found for 'nil:NilClass`
Group Icon


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:
Go to the top of the page
 
+Quote Post
   
Retired-Pine
post Jun 2 2009, 06:25 PM
Post #4


Not a democracy
Group Icon


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-]


--------------------



Spoiler:


Awards
Spoiler:




Games I support [under construction]
Spoiler:

Go to the top of the page
 
+Quote Post
   
bobby2454
post Jun 3 2009, 09:08 PM
Post #5


ADMINZ? MODERATORS? LOL!
Group Icon


Type: Undisclosed
Alignment: Chaotic Evil




So this is all I need to learn???
This was very helpful, bulletxt!


--------------------
OI!

Go to the top of the page
 
+Quote Post
   
BigEd781
post Jun 3 2009, 09:33 PM
Post #6


No method: 'stupid_title' found for 'nil:NilClass`
Group Icon


Type: Coder
Alignment: Chaotic Good




QUOTE (bobby2454 @ Jun 3 2009, 02:08 PM) *
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:
Go to the top of the page
 
+Quote Post
   
bobby2454
post Jun 5 2009, 08:22 PM
Post #7


ADMINZ? MODERATORS? LOL!
Group Icon


Type: Undisclosed
Alignment: Chaotic Evil




QUOTE (BigEd781 @ Jun 3 2009, 09:33 PM) *
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. wink.gif


--------------------
OI!

Go to the top of the page
 
+Quote Post
   
NineTailedFox
post Jun 6 2009, 05:34 PM
Post #8


FOX uses REST! FOX is vast asleep...
Group Icon


Type: Coder




ohmy.gif


This... ohmy.gif

Is... ohmy.gif

GREAT laugh.gif

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 wink.gif . This will help tons of people out, including me biggrin.gif . Great work Bullet!

This post has been edited by NineTailedFox: Jun 6 2009, 05:35 PM


--------------------
Anyone need help with events? PM me, and I'll see what I can do.
Go to the top of the page
 
+Quote Post
   
BigEd781
post Jun 6 2009, 09:33 PM
Post #9


No method: 'stupid_title' found for 'nil:NilClass`
Group Icon


Type: Coder
Alignment: Chaotic Good




QUOTE (NineTailedFox @ Jun 6 2009, 10:34 AM) *
ohmy.gif


This... ohmy.gif

Is... ohmy.gif

GREAT laugh.gif

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 wink.gif . This will help tons of people out, including me biggrin.gif . Great work Bullet!


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:
Go to the top of the page
 
+Quote Post
   
Mr. Anonymous
post Jun 6 2009, 09:42 PM
Post #10



Group Icon


Type: Undisclosed
Alignment: Unaligned




Small suggestion: Make a sticky topic in the Learning Ruby & RGSS2 forum that links to this. cool.gif
Go to the top of the page
 
+Quote Post
   
connor burtonwoo...
post Aug 4 2009, 02:44 PM
Post #11


All of my grope.
Group Icon


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.
Go to the top of the page
 
+Quote Post
   
Guest_zeroplumber_*
post Aug 5 2009, 01:08 AM
Post #12





Guests




QUOTE (conbomb @ Aug 4 2009, 09:44 AM) *
i was looking for a tut
not what i have to learn


A tut is for you to learn sir.
Go to the top of the page
 
+Quote Post
   
Mr. Anonymous
post Aug 5 2009, 01:09 AM
Post #13



Group Icon


Type: Undisclosed
Alignment: Unaligned




QUOTE (conbomb @ Aug 4 2009, 08:44 AM) *
i was looking for a tut
not what i have to learn

"Everyone has a right to be stupid; some people just abuse the privilege."
Go to the top of the page
 
+Quote Post
   
BigEd781
post Aug 5 2009, 02:40 AM
Post #14


No method: 'stupid_title' found for 'nil:NilClass`
Group Icon


Type: Coder
Alignment: Chaotic Good




Pinned, thanks to conbomb's awesome comment bringing me back here. wink.gif


--------------------
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:
Go to the top of the page
 
+Quote Post
   
JJJ
post Aug 9 2009, 08:04 AM
Post #15


I'm not just a furball. I'm a FLUFFY furball!
Group Icon






Thanks so much bullet!

Maybe I'll find out how to fix my script! laugh.gif


--------------------
_____________________________________________________________________________
A word to the non-English...

Spoiler:
QUOTE
'I' before 'E' except after 'C' aside from the 1,000,000 exceptions!

Go to the top of the page
 
+Quote Post
   
mudducky
post Aug 16 2009, 11:28 PM
Post #16


Lurking...
Group Icon


Type: Undisclosed
Alignment: True Neutral




Seems a great help bulletxt. Thanks for posting this. smile.gif


--------------------
Want help with learning the RPG Maker VX events?



Support. Check out these projects! They are not placed in top ranking order or anything like that.






Go to the top of the page
 
+Quote Post
   
whatisjeff
post Aug 16 2009, 11:42 PM
Post #17



Group Icon


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?


--------------------
Lesson 1: In RMVX,press 'F1' key

Look at my wittle dragon ,isn't she cute?
Go to the top of the page
 
+Quote Post
   
Svoltzilla
post Aug 17 2009, 12:09 AM
Post #18


But soon enough you will care by the time I'm done.
Group Icon


Type: Musician
Alignment: True Neutral




QUOTE (whatisjeff @ Aug 16 2009, 04:42 PM) *
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
Go to the top of the page
 
+Quote Post
   
whatisjeff
post Aug 17 2009, 05:24 PM
Post #19



Group Icon


Type: Designer




Thanks Svolta, but where is this guide exactly? Is it on the Ruby application?


--------------------
Lesson 1: In RMVX,press 'F1' key

Look at my wittle dragon ,isn't she cute?
Go to the top of the page
 
+Quote Post
   
Svoltzilla
post Aug 17 2009, 05:27 PM
Post #20


But soon enough you will care by the time I'm done.
Group Icon


Type: Musician
Alignment: True Neutral




QUOTE (whatisjeff @ Aug 17 2009, 10:24 AM) *
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
Go to the top of the page
 
+Quote Post
   

4 Pages V   1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th July 2014 - 04:51 PM

RPGMakerVX.net is an Privacy Policy, Legal.