The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Zeriab on February 20, 2006, 09:51:53 AM

Title: Read this before asking about how to script RGSS
Post by: Zeriab on February 20, 2006, 09:51:53 AM
*Notice* Look in the RMXP help! *Notice*

Here's some links to pages you might want to read before start scripting RGSS.

Tutorials for learning RGSS:
Dubealex's RGSS Script Tutorials:
RGSS & Ruby Lesson - Chapter 1 (http://www.creationasylum.net/index.php?showtopic=88)
RGSS & Ruby Lesson - Chapter 2 (http://www.creationasylum.net/index.php?showtopic=4854)
RGSS & Ruby Lesson - Chapter 3 (http://www.creationasylum.net/index.php?showtopic=497)

Astro's RGSS Script Tutorials: (mirror) (http://www.symptcodesigns.com/tutorials.php?start_from=10&ucat=&archive=&subaction=&id=&) (currently broken)
Lesson 1: Comments, Classes, and Variable Syntax (http://www.rmxponline.com/one.htm)
Lesson 2: Variable scope, attributes, constants, return, and super (http://www.rmxponline.com/two.htm)
Lesson 3: Advanced Methods and If (http://www.rmxponline.com/three.htm)
Lesson 4: Case, Loops, and Iterators (http://www.rmxponline.com/four.htm)
Lesson 5: Numbers (http://www.rmxponline.com/five.htm)
Lesson 6: Strings (http://www.rmxponline.com/six.htm)


RPG's RGSS tutorials
Tutorial 1 : The Basics (http://s11.invisionfree.com/The_Venedian_Garden/index.php?showtopic=37)
Tutorial 2 : Variable (http://s11.invisionfree.com/The_Venedian_Garden/index.php?showtopic=37#entry270018)
Tutorial 3 : Control Flow - Part A (http://s11.invisionfree.com/The_Venedian_Garden/index.php?showtopic=37#entry270047)
Tutorial 3 : Control Flow - Part B (http://s11.invisionfree.com/The_Venedian_Garden/index.php?showtopic=37#entry270085)
Tutorial 3 : Control Flow - Part C (http://s11.invisionfree.com/The_Venedian_Garden/index.php?showtopic=37#entry270106)
Tutorial 4 : Containers & Methods - Arrays and Hashes (Part 1) (http://s11.invisionfree.com/The_Venedian_Garden/index.php?showtopic=37#entry270149)
Tutorial 4 : Containers & Methods - Blocks and Methods (Part 2) (http://s11.invisionfree.com/The_Venedian_Garden/index.php?showtopic=37#entry270183)

Simple Scripting Tutorials - Rune (http://rmrk.net/index.php/topic,18197.0.html)
Regular Expressions in RGSS (Regexp)- Zeriab (http://rmrk.net/index.php/topic,17329.0.html)

RGSS Syntax:
Near Fantastica RGSS Syntax List (http://www.creationasylum.net/index.php?showtopic=518)
RGSS References at Dubealex.com (http://www.creationasylum.net/index.php?showforum=82)

Other useful stuff:
Misc. Ruby Stuff by Aoshiwik (http://www.creationasylum.net/index.php?showtopic=82)

If you want to learn ruby (not connected to RGSS) go to Rubycentral.com (http://www.rubycentral.com/)
Go here for a list of the built-in Ruby classes and modules (http://www.rubycentral.com/ref/index.html)
RadRails.com (http://www.radrails.org) <-- An excellent Ruby SDK (Software Developer Kit). Based on Eclipse.

If you have anything to add, please say so.
Title: Read this before asking about how to script RGSS
Post by: Lord Dante on February 20, 2006, 07:07:18 PM
doesn't the help file in rmxp contain something about scripting?
Title: Read this before asking about how to script RGSS
Post by: Zeriab on February 20, 2006, 09:30:44 PM
You're quite right.
Added
Title: Read this before asking about how to script RGSS
Post by: Lord Cloud on February 21, 2006, 02:31:35 AM
you should also note that it is in the legal english version only which means we only get a months peace before we get stormed by idiot noobs again.
Title: Read this before asking about how to script RGSS
Post by: Lord Dante on February 21, 2006, 03:51:56 AM
i wouldnt talk if i were you...

anyways, they can (if they evolve out of noobishness) copy the text to word and then post it. Thatd be nice...
Title: Read this before asking about how to script RGSS
Post by: Lord Cloud on February 21, 2006, 04:51:05 AM
Quote from: Lord Dante
i wouldnt talk if i were you...

oh, im so offended[/sarcasm] keep in mind i wasnt referring to anyone specifically. im just saying there's a lot of noobs out there. im done my, er... rant.
Title: Read this before asking about how to script RGSS
Post by: Zeriab on February 21, 2006, 07:45:38 AM
Meh, you can download the help file from CrankEye.com, yes that's here.  :roll:
Title: Read this before asking about how to script RGSS
Post by: ahref on February 25, 2006, 04:12:38 PM
shouldnt this be stickied
Title: Read this before asking about how to script RGSS
Post by: haloOfTheSun on February 25, 2006, 10:40:50 PM
Quote from: ahref
shouldnt this be stickied


Fine.... if you insist.  :roll:
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on October 01, 2006, 09:28:05 PM
Requesting resticking. (I can't report my own posts :'()
Title: Re: Read this before asking about how to script RGSS
Post by: Arrow on October 01, 2006, 09:36:17 PM
I'll report you then!
Title: Re: Read this before asking about how to script RGSS
Post by: thingy on October 01, 2006, 10:47:43 PM
lol that sounds like a threat
Title: Re: Read this before asking about how to script RGSS
Post by: Arrow on October 01, 2006, 11:11:25 PM
Nay, t'was a friendly favor!
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on October 02, 2006, 08:21:47 PM
Yay. It got stickied  ;D
Thanks
Title: Re: Read this before asking about how to script RGSS
Post by: Winged on November 27, 2006, 07:27:57 AM
Nice  ;D

What would you all suggest for me to read if I were to script a CMS?

~Winged
Title: Re: Read this before asking about how to script RGSS
Post by: Blizzard on November 27, 2006, 11:41:47 AM
First read the code of the basic Scene_Menu. Then go over to more complex codes, learn how they work, what they do and how they do it. No real tutes are actually needed here.
Title: Re: Read this before asking about how to script RGSS
Post by: Winged on November 27, 2006, 12:00:38 PM
Thanks, I'll read them tomorrow when I'm awake...

Good night everyone  :)

~Winged
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on November 27, 2006, 02:56:51 PM
Dubealex's tutorials seems to involve window management, so you could also read them.
Title: Re: Read this before asking about how to script RGSS
Post by: Winged on January 08, 2007, 11:08:07 AM
Thanks Zeriab (This took a long time, I didn't check up when I woke up, sorry) I'll edit this post to see if I got any of this scripting

~Winged
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on January 08, 2007, 04:00:51 PM
No problems.
If you still have problems I suggest you make a topic in either Scripts (http://rmrk.net/index.php/board,25.0.html) or Troubleshooting (http://rmrk.net/index.php/board,21.0.html) depending on the problem you have. (Possible also Tutorials (http://rmrk.net/index.php/board,8.0.html))
Title: Re: Read this before asking about how to script RGSS
Post by: Snailer on January 18, 2007, 01:59:57 PM
I'm gonna give it a go at scripting  in rgss ruby ^^  Any tips i need to know :P ?
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on January 19, 2007, 10:55:21 PM
I don't really know any tips you need to know before reading the tutorials.
If you have problems I suggest you make a topic in either Scripts (http://rmrk.net/index.php/board,25.0.html) or Troubleshooting (http://rmrk.net/index.php/board,21.0.html) depending on the problem you have. (Possible also Tutorials (http://rmrk.net/index.php/board,8.0.html))
Title: Re: Read this before asking about how to script RGSS
Post by: .:Pyroken Serafoculus:. on February 22, 2007, 12:19:25 PM
I read through the tutorials and part of the default script, but there are a few things I don't understand. what are the functions of the attr_ codes, and what does self. mean?

I'm getting anoying, but I'd like to know what the @ in code means as well. Like in this method from Game_Variables:

  def initialize
    @pdata = []
  end
Title: Re: Read this before asking about how to script RGSS
Post by: Blizzard on February 22, 2007, 06:35:32 PM
1. An @ before the variable's name means it's a class variable. An example would be an actor's name. The Game_Actor class represents the actor and the class variable @name is a string with his name.

2. attr_reader, attr_writer and attr_accessor are just what they are saying.
- attr_reader lets you read a class variable from "outside"
- attr_writer lets you write (that means change) a variable from "oustide"
- attr_accessor does like the two above together: read and write

3. the self. is actually accessing the class from "within" like it would be from the "outside". If you try self.name within the Game_Actor class, but there is no defined attr_reader :name or attr_accessor :name, it will give you the "Undefined method 'name' for class 'Game_Actor'"

Hope that helps. :)

EDIT:

BTW, the attr_reader is often used instead of an attr_accessor like for example he actor's HP. Then something called "encapsulation" is done instead and instead of just "writing" the actor's HP the given value for the actor's new current HP is first processed little bit, so the HP won't exceed the max HP and won't go lower than 0. Check out def hp=(hp) in the Game_Actor class to see what I mean. :)
Title: Re: Read this before asking about how to script RGSS
Post by: .:Pyroken Serafoculus:. on February 25, 2007, 03:40:18 AM
That makes sense. Thanks!
Title: Re: Read this before asking about how to script RGSS
Post by: Atracious on March 08, 2007, 02:40:12 AM
Only RPG's RGSS tutorials worked for me, and they didn't help at all, I already knew that stuff! Is there a reason i can't read the others? Any way i'm gona just go through the default scripts and figure them out in the mean time. :)
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on March 08, 2007, 03:32:23 PM
Creation Asylum changed servers. This has been fixed.

The links to Astro's tutorials doesn't seem to work. (Not the 6 links nor the mirror)
I do not know of them being hosted elsewhere.
I am keeping the links should they come back up.
If you know a place where they are hosted please let me know.
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on June 10, 2007, 11:43:32 AM
Hey all.

It has been a long time since the last update and I know there must have been written some new tutorials.
I am requesting links to new tuts.
I'll hug everyone one of you who comes with a link.
Places where registration or similar is not required are prefered

Now go and search ^_^
Title: Re: Read this before asking about how to script RGSS
Post by: Rune on June 11, 2007, 07:37:17 AM
My topic's up in the tutorial database if you want to add a link to it here ;)
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on June 15, 2007, 04:45:47 AM
I have your link in now as well as a link to a tut I wrote ^_^
Title: Re: Read this before asking about how to script RGSS
Post by: Rune on June 15, 2007, 09:19:09 AM
Nice :) I'll check yours out :)

[EDIT]
Okay, by quick glance, I understood 0% of that :(
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on June 15, 2007, 03:57:34 PM
It is intended for advanced scripters. (SephirothSpawn asked me to make it ^_^)
You could come back to it later ;)
Title: Re: Read this before asking about how to script RGSS
Post by: Rune on June 15, 2007, 04:15:14 PM
Ohhh okay :D
Title: Re: Read this before asking about how to script RGSS
Post by: Kokowam on June 19, 2007, 04:17:30 PM
I understood 1%. YAY! I understood the alphabet thing and I think that's it... I got lost at "newline." XD That's pretty complex looking... I've seen you use it before, Zeriab. It was for the SLOLS thing and how to put it as an actual loading screen thing. Yeah.
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on June 20, 2007, 05:49:26 PM
I understood 1%. YAY! I understood the alphabet thing and I think that's it... I got lost at "newline." XD That's pretty complex looking... I've seen you use it before, Zeriab. It was for the SLOLS thing and how to put it as an actual loading screen thing. Yeah.

I didn't use any regular expressions in my SLOLS...
It seems even Tsu have troubles with Regular Expression. I expect the reason rather being his laziness than him being unable to understand my tut XD
Title: Re: Read this before asking about how to script RGSS
Post by: Kokowam on June 20, 2007, 06:02:49 PM
I didn't use any regular expressions in my SLOLS...
Dang, then I forgot what it was called... I think it was Loader or something.

Quote
It seems even Tsu have troubles with Regular Expression. I expect the reason rather being his laziness than him being unable to understand my tut XD
For it is the reason most people decide not to learn RGSS.
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on June 20, 2007, 06:17:07 PM
I believe you mean Thread.
You should take care when playing around with threads.
The subject of Regular Expressions are really easy compared to the subject of Threads.
Using lots of threads in your program is an easy way to get hard-to-debug errors that can be hard to replicate as well.
I might do a tut about then when the stop bothering me as much as the do now -_-

Anyway. Anymore tuts?
Title: Re: Read this before asking about how to script RGSS
Post by: ahref on September 03, 2007, 12:13:26 PM
this is more a sort of reference thingy that i found but it looks helpful

http://www.phylomortis.com/html/rgss.html
Title: Re: Read this before asking about how to script RGSS
Post by: Zeriab on September 03, 2007, 01:08:26 PM
Thanks a lot ahref. You deserve a hug

*uses super-hug on ahref*
Title: Re: Read this before asking about how to script RGSS
Post by: RobertM on September 16, 2008, 04:29:04 AM
I Need Help Dont Know What To Download To Make RGSS script Srry Really A Noob
 

Srry For Stuped  Questions
plz anwser
Title: Re: Read this before asking about how to script RGSS
Post by: modern algebra on September 16, 2008, 02:53:00 PM
Umm, you don't need to download anything. The Script Editor is in RMXP. F11 will bring it up. I don't think you're ready to start scripting though if you don't even know how to get in to the Script Editor.