Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [Scripting][Series]The Scripter’s Journey Series, 1.The Fundamentals of Programming!
The Law G14
post Jun 8 2012, 04:49 PM
Post #1


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




The Scripter’s Journey Series

1.The Fundamentals of Programming!



Table of Contents
I. You woke up late! Professor Law is waiting!
II. What does it mean to program?
III. Object-Oriented Programming.
IV. The Script Editor and some other stuff!
V. Conclusion

You woke up late! Professor Law is waiting!
The Story: The story begins with you, a young teen that lives in Noobet Town aspiring to become a Scripting Master. You’ve been constantly mocked and jeered at by your “friends” and always feel abased due to your lack of success…in well…anything. Fortunately you’re mother was able to set up an appointment with you at Professor Law’s (a famous scripter who’s studied scripts in all five regions of the Scripting Lands) lab in order to hopefully give you a jump start on your scripting “career” and get you to that goal of being a Scripting Master. The problem though is that the day of your appointment, you’ve woken up late! What will Professor Law think of you?!!

Hello to everyone, this is my first tutorial of The Scripter’s Journey Series (SJS) that I plan on completing to help everyone like the person in the play story up above become a competent scripter. I can’t promise you the title of Scripting Master (I’m definitely not one anyway lol) but I can certainly get you to the point where you can write your own scripts and programs without any assistance. Time is already ticking, don’t wake up late (or start late) in your quest to get better at scripting; the earlier the better! Now let us begin!


What does it mean to program?
Now before we continue on with the story of the little guy from Noobet Town, there are two very important sections we need to cover first which is “What does it mean to program?” and “Object-Oriented Programming”.

Now, programming, in my perspective, in the most simplest form is “the process of implanting an idea into a computer”. Making a script that prints “Hello World!” was first an idea in your head. In your mind you thought something along the lines of “Hey…that would be pretty cool if I allowed the player to be greeted with a ‘hello world!’ statement so that they feel good inside…” The beginning (creating the idea) and the end result (the final message) are not what scripting is, but the process to get this beginning (or idea) to the conclusion (the idea now being on your computer). Hopefully that was pretty clear so far.

Now, most of the time, these ideas are used to solve problems…in fact I’ll go ahead and make up a random statistic (I mean when aren’t they random!) that about 98.784321% of all scripts are used to solve problems. Battle Systems were scripted as a way to solve the problem of a player being able to…well…battle! Now, these are what I call conscious problems. What do I mean? That means people realize there is a problem (“I can’t battle the big bad monsters!!!”). Now the other type of problems are called the unconscious problems. Again, what do I mean? That means people DON’T realize (shocker) that there is a problem. Take for example, a side-view battle system. People’s problem of being able to battle has been solved, but no one thinks of the “problem” that they can’t see both the actors and enemies fighting each other visually and moving across the screen. Essentially, unconscious problems are those unique ideas that some scripters have the gift of thinking up and they ALWAYS spread like wildfire and become popular. But again, unconscious problem-like scripts are very hard to think up, but the rewards are great.

So to summarize, scripting is the process of implanting an idea from your head into the computer. Most of the time this idea is used to solve a problem which can be either an unconscious or conscious problem.


Object-Oriented Programming
Now back when dinosaurs roamed the globe, there was something called Procedural Programming…I don’t much about it more than the fact that it is a headache coding in it…and plus I don’t want to bore you guys. Nowadays, we have the awesome Object-Oriented Programming which I WILL explain.

In Object-Oriented Programming, everything is…well…an object! To put it simply an object is an entity or a data structure (also known as a class) that has certain properties (variables) and methods (functions). In Object-Oriented Programming you create these objects and allow them to interact…thus creating a program!


The Script Editor and some other stuff!
The Story: After tumbling out of your house and running back after your mom tells you that you forgot to put on underwear (really?) you finally reach Professor Law’s house to see your arch rival, Professor Law’s grandson, leaving with his own newly presented Script. You glare at him as he walks out nonchalantly and proceed to enter the lab where Professor Law presents you with the unfortunate news…all the Beginner Scripts have been given away! However, he does tell you that one script is left, but it is a volatile script…it’s called Pikachu! After getting zapped by Pikachu’s “thunderbolt” method, Professor Law places Pikachu in your newly presented Script Editor, which will be used later on to write and capture other Scripts. With that, he presents you with your very own poked—Help File to also aid you on your journeys. Professor Oak explains you to how to use the Script Editor and the Help File and you are off with your very first SCRIPT!

The script editor will be the home to your scripts, much like a pokeball is the home of a Pokémon. I’ll now proceed to help you get comfortable with this place as…well..this is where you’ll script! You can enter the toolbar by pressing F11 or clicking the script icon near the end of the toolbar at the top of your screen (XP or VX). A nice little window should appear that has several names on the left and a huge space on the right. Use the scroll bar and scroll up and down and even click some of those names listed on the left and stare in awe. Yes, these are all default scripts made by Enterbrain, but we won’t be playing around with these guys—yet. So scroll all the way down until you see a scripted labeled “Main”, right-click, and press insert. Above “Main” and below all the other default scripts will be the space where you will insert your own scripts.

Now, to the right you should have a blank page, were not going to write any code down, but just know for now that this place is for…well…writing code! First we need to know some short cut commands that may come in handy. CTRL+F allows you to find specific lines of code in the script you’re currently in, CTRL+SHIFT+F allows you to find specific lines of code in ALL scripts, CTRL+I allows you to indent, CTRL+G allows you to jump to a specific line number (like line number 35577353233234234556), and CTRL+H allows you to replace a line of code with another line of code.

Now on to the Help File, I’ll go into the Help File in more detail on a later tutorial, but for now just know that the Help File will be your greatest friend. When you don’t understand a line of code, the Help File will come to the rescue…much like…well…a pokedex!


Conclusion
Well, I know you’re probably half a sleep by now, but I promise you code will come soon. You all have to trust me though, jumping right into all the flashy stuff and all the big codes WILL NOT get you to become a good scripter, let alone a decent one. We just need to get these few boring tutorials out of the way to secure your foundation in the field and from their we will be flying. Next time on SJS we have an in-depth tutorial on variables and moreover, just so everyone knows, the "story" element was just to spice up this tutorial (to prevent sleeping) and provide a better introduction to this series, so I won't be using the story for the rest of the tutorials lol (besides the fact that pokemon and scripting aren't TOO related)...but regardless come prepared next time with a sideways cap, some tacky jeans, and a cool-looking jacket and be prepared to BATTL—script.

Side Note: If you’d like to know the order of how these tutorials will progress, check out this topic I created: http://www.rpgrevolution.com/forums/index....showtopic=54953

~Law


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!

If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Jonnie19
post Jul 7 2012, 03:47 PM
Post #2


Are you trying to rise from your lullaby?
Group Icon

Group: Global Mod
Posts: 1,311
Type: Developer
RM Skill: Intermediate
Rev Points: 45




How people haven't mentioned this yet is really sad, this is an amazing tutorial and I'm really enjoying reading these tutorials, although I can't help feeling that you like Pokmon...dunno what gave it away wink.gif


__________________________

Finished Projects:
Slenderman's Army:


Go to the top of the page
 
+Quote Post
   
The Law G14
post Jul 14 2012, 03:45 PM
Post #3


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




Hey thanks Jonnie! I really appreciate the positive comments smile.gif And lol haha nope not really much of a pokemon fan anymore just felt that would give this first tutorial some extra flavor and excitement so that no one would fall asleep lol Thanks again!


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!

If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
MagitekElite
post Aug 4 2012, 03:38 PM
Post #4


Mystic Creations Leader
Group Icon

Group: Revolutionary
Posts: 1,138
Type: Writer
RM Skill: Skilled




Hopefully I will not get in trouble for posting in these tutorials...

Thank you for creating tutorials for this, The Law G14! I have been trying to learn for a long time!

If you are worried the lack of replies means no one is reading this, then you shouldn't worry about it. A lot of people read it, its just 1) people aren't sure if they can post and what they should post 2) because they aren't having problems understanding 3) don't have an account. I know four people in all that reads this subforum. xD

Anyways....! I am beginning a course in learning Ruby through as many means as possible. I even rented a book for basic Ruby by Cooper! However, I was wondering if you have any other suggestions for an editor besides the game editor? The reason I ask is because I've been looking for a way to write my codes and perhaps with a right click or shortcut (something) see its outcome instead of writing the code in the RM editor, test playing and so on.

Also, in all, I would love to see any updates. blush.gif

Thanks,

This post has been edited by MagitekElite: Aug 4 2012, 03:39 PM


__________________________

The Project Zelda Engine!

Support, Projects & More!

Vacant Sky -- truly the best game made with the RM game makers ever!
LoMatsul's RPGVX Spriting Tutorial! Great for "newbies".
Lits' Sprite Emporium!
Text Editor & Guard Watching Script by Night_Runner
Thunderstorm Engine!
Final Fantasy 6 Tileset Ripping
Black Moon (Prophecy)
Mystic Studio!
Legacy's Ruby/RGSS Tutorial
Save-Point (a RPG VX/XP Community!)
RPG Creation (Game Creation (all makers))
RM/RPG World Community


Final Fantasy VI: Esper Realm (since 2003)
Black Moon (Prophecy) [since 2004]
Secret Project (still under thought and construction) [New!]
----------

Want a awesome program to make sprites with? Try out GraphicGale! The best editor/graphic program for RPG Game Maker XP/VX use!
___________________________________________________________________________
VX char creator for females. | XP male/Female char creator.
VX char creator for males. | Ragnarok Online char creator | RMVXP Forums
| RPG VX Resources -- extremely good!
| RPG-Maker.fr find sprites of all things! | RPGCreation -- a great, new forum! | | ChaosProject








Go to the top of the page
 
+Quote Post
   
The Law G14
post Aug 5 2012, 08:39 PM
Post #5


Scripter FTW
Group Icon

Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5




Whoa! Thanks a million for the very positive comment, I really appreciate it smile.gif


QUOTE
Hopefully I will not get in trouble for posting in these tutorials...


Haha definitely not, I'll be adding homework sections later on, but since these tutorials are very foundational I thought it wasn't necessary.


QUOTE
Thank you for creating tutorials for this, The Law G14! I have been trying to learn for a long time!


No, thank you lol! I'm just happy to see my efforts are helping someone, makes me feel...good! lol tongue.gif


QUOTE
If you are worried the lack of replies means no one is reading this, then you shouldn't worry about it. A lot of people read it, its just 1) people aren't sure if they can post and what they should post 2) because they aren't having problems understanding 3) don't have an account. I know four people in all that reads this subforum. xD


Thanks! I didn't know about that last statement there. I'll add in further tutorial conclusions to always post regardless of what your concern is and like I said, later tutorials when it gets more complex, I'll add "homework" or "challenge" problems.


QUOTE
Anyways....! I am beginning a course in learning Ruby through as many means as possible. I even rented a book for basic Ruby by Cooper! However, I was wondering if you have any other suggestions for an editor besides the game editor? The reason I ask is because I've been looking for a way to write my codes and perhaps with a right click or shortcut (something) see its outcome instead of writing the code in the RM editor, test playing and so on.


It's good to see how motivated you are, trust me, all your efforts will not be in vain! For an editor, if you're looking to get serious, i'd suggest Netbeans. If you're just looking for simple stuff, download SciTE text editor and IRB (Interactive Ruby Console). Hope that helps!


QUOTE
Also, in all, I would love to see any updates.


If you mean by more tutorials, they are on their way! lol In fact I just finished drafting the outline for the upcoming tutorial on Classes so they're coming biggrin.gif


__________________________

To put in sig, copy this link:
CODE
[url="http://www.rpgrevolution.com/forums/index.php?showtopic=51540"][img]http://img40.imageshack.us/img40/6504/conceptthelawbanner.png[/img][/url]


Sig Stuff


"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!

If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One

My Project Thread: Gai's Hunters


Go to the top of the page
 
+Quote Post
   
Jonnie19
post Aug 6 2012, 12:02 AM
Post #6


Are you trying to rise from your lullaby?
Group Icon

Group: Global Mod
Posts: 1,311
Type: Developer
RM Skill: Intermediate
Rev Points: 45




QUOTE (MagitekElite @ Aug 4 2012, 11:38 PM) *
Hopefully I will not get in trouble for posting in these tutorials...

Your post added something to the topic, and also it's three months in Script Tutorials. We've given a longer time due to the fact that sometimes people don't see these tutorials unless they searched. Remember if you are not sure, whether or not you should post, check out the Pinned Rules thread, or feel free to PM the Mod of the area. So for example in the tutorial section, send me a PM, and I'd gladly clear things up for you smile.gif


__________________________

Finished Projects:
Slenderman's Army:


Go to the top of the page
 
+Quote Post
   
MagitekElite
post Aug 6 2012, 03:08 PM
Post #7


Mystic Creations Leader
Group Icon

Group: Revolutionary
Posts: 1,138
Type: Writer
RM Skill: Skilled




@The Law G14:

You are very welcome, The Law! smile.gif

And yes, that certainly helps. It seems Netbeans doesn't officially support Ruby, but I'll mess with it later. IRB won't allow me to do anything other than print code, but SciTE text editor looks really simply and nice. I'll play around with it.

And yes, that's what I meant. More tutorials. Sorry about that! blush.gif I look forward to it! smile.gif

@Jonnie19:

Thanks for the help, Jonnie! I will definitely do that! smile.gif

EDIT2:

I see the new tutorial/thread! Thanks for making another round for us, Law! When I get home tomorrow after my appointment, I'm gonna start through your threads again! I'm so excited!

Thanks again! :33

This post has been edited by MagitekElite: Aug 7 2012, 05:49 PM


__________________________

The Project Zelda Engine!

Support, Projects & More!

Vacant Sky -- truly the best game made with the RM game makers ever!
LoMatsul's RPGVX Spriting Tutorial! Great for "newbies".
Lits' Sprite Emporium!
Text Editor & Guard Watching Script by Night_Runner
Thunderstorm Engine!
Final Fantasy 6 Tileset Ripping
Black Moon (Prophecy)
Mystic Studio!
Legacy's Ruby/RGSS Tutorial
Save-Point (a RPG VX/XP Community!)
RPG Creation (Game Creation (all makers))
RM/RPG World Community


Final Fantasy VI: Esper Realm (since 2003)
Black Moon (Prophecy) [since 2004]
Secret Project (still under thought and construction) [New!]
----------

Want a awesome program to make sprites with? Try out GraphicGale! The best editor/graphic program for RPG Game Maker XP/VX use!
___________________________________________________________________________
VX char creator for females. | XP male/Female char creator.
VX char creator for males. | Ragnarok Online char creator | RMVXP Forums
| RPG VX Resources -- extremely good!
| RPG-Maker.fr find sprites of all things! | RPGCreation -- a great, new forum! | | ChaosProject








Go to the top of the page
 
+Quote Post
   

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: 23rd May 2013 - 03:10 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker