How do I start?

fruitlapassion

Villager
Member
Joined
Aug 28, 2013
Messages
10
Reaction score
1
First Language
spanish/french
Primarily Uses
Hello, all of you! I'm fruit, and a I'm newbie to this site. I'm working (or at least trying to) in a game *-*

That's why, after clearing up my mind, I decided that I must learn scripting u.u  I am ready to multiple headaches learn! Now, the thing is...Where do I start? what exactly are "the basics"? I just see a lot of scripts, and I can't figure out which one is easier ;-,  they all just look ...incomprehensible.

Can you recommend an easy tutorial for a total idiot newbie like me? :3

Do you have some advices? A to do and not to do list?

Thanks for taking your time c:

I hope this isn't the wrong forum >.<
 

BeardBro

I think this line's mostly filler.
Veteran
Joined
Mar 20, 2013
Messages
210
Reaction score
84
First Language
English
Primarily Uses
RMMV
You might consider working through the tutorials at http://rubymonk.com/. The site uses interactive learning to teach Ruby; you can edit scripts and commands on the fly with an on-screen prompt that 'scores' your work as you go along.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
Do you have any previous knowledge of programming?


Just to prevent any understandings: what is called scripting by the RM-community is a fully capable programming language. What other game communities usually call scripting (limited engine based game-functionality) is called eventing in RPGM.


If you have no programming knowledge, it might be easier for you to start with learning eventing, as that will also teach you the basics of programming.
 

djDarkX

Retro & Remastered Music Guru
Veteran
Joined
Jan 17, 2013
Messages
2,700
Reaction score
1,901
First Language
Music
Primarily Uses
RMMV
Well, in order to start learning Ruby, you could check out Google but I'll throw you into a site I found: http://rubylearning.com/

I see you're using RMXP, so in that case, check out the documentation to learn more about how the RGSS works with RMXP and how scripts work for it.  Aside from that, you can check out the forums in the XP scripts section to look at other scripts and see how they work and gain some insight.  Hope that helps!
 

Aeri_Sicher

Rookie Programmer! >.
Veteran
Joined
Jun 3, 2013
Messages
74
Reaction score
10
First Language
English
Primarily Uses
Hey fruit! I'm a rookie scripter, but before I knew anything I was in the same spot as you =D

I started looking for something to help me understand the basics of scripting. After some time, I came across this free online book that teaches you the entire structure and and everything operates in Ruby (Ruby is the exact same program that RPG Maker uses!). It may look intimidating, but it really isn't hard. It's just a lot of reading and small exercises that help build you understanding of how things work in scripts.

http://ruby.learncodethehardway.org/book/

- the setup is kinda tough, but there should be some online guides on gem downloads.

(and if you do decide to try this out, but have no Idea on the setup, feel free to send a message and I'll help out with it)

Also, these practices are accompanied with another website that shows all his answers to the problems (though try solving the exercises on your own before looking at the other websites results.. the whole point of reading and doing the exercises is to learn "what makes the clock tick").

http://www.mkltesthead.com/2011/10/exercise-1-good-first-program-learn.html (He continues to follow the same exercises up until somewhere in ex 50)

- You can view all his exercises from Oct 2011 - Jan 2012.. after that the book exercises will be outdated and using this website won't be so useful anymore.

This book has sure has helped me a lot as a beginner with no experience and hopefully could help you too =]
 

fruitlapassion

Villager
Member
Joined
Aug 28, 2013
Messages
10
Reaction score
1
First Language
spanish/french
Primarily Uses
You might consider working through the tutorials at http://rubymonk.com/. The site uses interactive learning to teach Ruby; you can edit scripts and commands on the fly with an on-screen prompt that 'scores' your work as you go along.
Thank you for the tutorial! I love interactive ones...They make everything easier c:

Though, I'm in the first lesson, and I must say that 'master' is quite coldhearted ;-; (No pizza for me...)

I don't get it...Can I ask some questions?

1. (lesson 1) when you're specifying what object are you with the code 'self', just what exactly are the possibilities of objects you can be? What are exactly the 'objects'?

At first I put "character self" --> no good

Then "vase self" (Yes, I wrote that) --> no good

And then I put a number (1), At least it wasn't that bad, but "the master said": 'that's not the code I was looking for e-e

2. (lesson 2) Just like in lesson 1, what are the 'methods'? can you name an example?

Sorry for the lots of question ;-;

Thanks for the reply!

Do you have any previous knowledge of programming?

Just to prevent any understandings: what is called scripting by the RM-community is a fully capable programming language. What other game communities usually call scripting (limited engine based game-functionality) is called eventing in RPGM.

If you have no programming knowledge, it might be easier for you to start with learning eventing, as that will also teach you the basics of programming.
I don't have any knowledge of prgramming u.u

I know a bit about eventing, just the very, very basics (enough to make a mission) but there are quite a lot of things you can do only by scripts, right? (as changing the menu and customizing..) .-.

Thanks for the reply!

Well, in order to start learning Ruby, you could check out Google but I'll throw you into a site I found: http://rubylearning.com/

I see you're using RMXP, so in that case, check out the documentation to learn more about how the RGSS works with RMXP and how scripts work for it.  Aside from that, you can check out the forums in the XP scripts section to look at other scripts and see how they work and gain some insight.  Hope that helps!
Thanks for the advises! The truth is that I saw a lot of tutorials when checking on google, that's why I wanted to ask you people for the best option :D

Thanks for the reply!

Hey fruit! I'm a rookie scripter, but before I knew anything I was in the same spot as you =D

I started looking for something to help me understand the basics of scripting. After some time, I came across this free online book that teaches you the entire structure and and everything operates in Ruby (Ruby is the exact same program that RPG Maker uses!). It may look intimidating, but it really isn't hard. It's just a lot of reading and small exercises that help build you understanding of how things work in scripts.

http://ruby.learncodethehardway.org/book/

- the setup is kinda tough, but there should be some online guides on gem downloads.

(and if you do decide to try this out, but have no Idea on the setup, feel free to send a message and I'll help out with it)

Also, these practices are accompanied with another website that shows all his answers to the problems (though try solving the exercises on your own before looking at the other websites results.. the whole point of reading and doing the exercises is to learn "what makes the clock tick").

http://www.mkltesthead.com/2011/10/exercise-1-good-first-program-learn.html (He continues to follow the same exercises up until somewhere in ex 50)

- You can view all his exercises from Oct 2011 - Jan 2012.. after that the book exercises will be outdated and using this website won't be so useful anymore.

This book has sure has helped me a lot as a beginner with no experience and hopefully could help you too =]
Hi there! Thank you a lot for the tips! (even though the name 'learn ruby the hard way' does seems quite intimidating xD)

If you could help in my apprenticeship, I would be really grateful! *-*

Thanks for the reply!
 

BeardBro

I think this line's mostly filler.
Veteran
Joined
Mar 20, 2013
Messages
210
Reaction score
84
First Language
English
Primarily Uses
RMMV
Thank you for the tutorial! I love interactive ones...They make everything easier c:

Though, I'm in the first lesson, and I must say that 'master' is quite coldhearted ;-; (No pizza for me...)

I don't get it...Can I ask some questions?

1. (lesson 1) when you're specifying what object are you with the code 'self', just what exactly are the possibilities of objects you can be? What are exactly the 'objects'?

At first I put "character self" --> no good

Then "vase self" (Yes, I wrote that) --> no good

And then I put a number (1), At least it wasn't that bad, but "the master said": 'that's not the code I was looking for e-e

2. (lesson 2) Just like in lesson 1, what are the 'methods'? can you name an example?

Sorry for the lots of question ;-;
When working through that particular website, it's essential to understand that the descriptions and guides are very, very literal. So, for the first lesson, the correct code is simply 'self' (i you're lost, some of the lessons automatically put the code in the box for you, so all you have to do is hit the 'run' button to see what happens). You'll further understand what 'self' means as you progress through the lessons, but basically, you're saying this: "there's one object in this entire script, and I'm that object", hence 'main' appears. 'Self' doesn't define the object as a physical, recognizable object; all you're doing is clarifying that there is an object in the script. You'll learn how to define what those objects are later on.  It's also important to understand that individual numbers are objects in of themselves.

At its core, Ruby consists of objects and methods. To answer your question about lesson 2, the correct code is '2.even?' (this particular lesson automatically puts the code in the box for you). If you're still confused, let's look at it this way: let's say that you're standing in a completely empty room. You spout the word '2', and lo and behold, a giant number '2' appears (the code for this would simply be '2').

As you look at the number 2, you realize that you want to know more about it. You walk over to the number 2 and ask "are you an even number?" to which '2' replies "yes, that's true." The code for this conversation would look like this: '2.even?' - The '2' represents the object, the period indicates that you're having a conversation with the '2', and whatever you want to say to the '2' follows the period. In this case, the method 'even?' follows the period, meaning that we're asking the '2' if it's an even number or not.

'2.even?' = "Hey, number 2, are you an even number?"

Learning Ruby will take a lot of time and patience. You'll want to throw your computer across the room at times, but that's just part of the learning process. I suggest that you read everything you can about Ruby (basic programming, even); make sure you understand what's happening when you work through the lessons on RubyMonk. If you get to a lesson that you don't understand, that's completely normal, so keep working at it! If you apply yourself, you'll be surprised at how how much you've learned at the end of every week. It just takes a hell of a lot of patience.

I hope this helps!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top