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
-
*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.
-
doesn't the help file in rmxp contain something about scripting?
-
You're quite right.
Added
-
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.
-
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...
-
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.
-
Meh, you can download the help file from CrankEye.com, yes that's here. :roll:
-
shouldnt this be stickied
-
shouldnt this be stickied
Fine.... if you insist. :roll:
-
Requesting resticking. (I can't report my own posts :'()
-
I'll report you then!
-
lol that sounds like a threat
-
Nay, t'was a friendly favor!
-
Yay. It got stickied ;D
Thanks
-
Nice ;D
What would you all suggest for me to read if I were to script a CMS?
~Winged
-
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.
-
Thanks, I'll read them tomorrow when I'm awake...
Good night everyone :)
~Winged
-
Dubealex's tutorials seems to involve window management, so you could also read them.
-
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
-
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))
-
I'm gonna give it a go at scripting in rgss ruby ^^ Any tips i need to know :P ?
-
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))
-
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
-
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. :)
-
That makes sense. Thanks!
-
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. :)
-
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.
-
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 ^_^
-
My topic's up in the tutorial database if you want to add a link to it here ;)
-
I have your link in now as well as a link to a tut I wrote ^_^
-
Nice :) I'll check yours out :)
[EDIT]
Okay, by quick glance, I understood 0% of that :(
-
It is intended for advanced scripters. (SephirothSpawn asked me to make it ^_^)
You could come back to it later ;)
-
Ohhh okay :D
-
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 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
-
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.
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.
-
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?
-
this is more a sort of reference thingy that i found but it looks helpful
http://www.phylomortis.com/html/rgss.html
-
Thanks a lot ahref. You deserve a hug
*uses super-hug on ahref*
-
I Need Help Dont Know What To Download To Make RGSS script Srry Really A Noob
Srry For Stuped Questions
plz anwser
-
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.