Main Menu
  • Welcome to The RPG Maker Resource Kit.

Read this before asking about how to script RGSS

Started by Zeriab, February 20, 2006, 09:51:53 AM

0 Members and 3 Guests are viewing this topic.

Zeriab


Lord Dante

doesn't the help file in rmxp contain something about scripting?

Zeriab


Lord Cloud

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.

Lord Dante

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

Lord Cloud

Quote from: Lord Dantei 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.

Zeriab

Meh, you can download the help file from CrankEye.com, yes that's here.  :roll:

ahref


haloOfTheSun

Quote from: ahrefshouldnt this be stickied

Fine.... if you insist.  :roll:
:tinysmile:

Zeriab

Requesting resticking. (I can't report my own posts :'()

Arrow


thingy

Zypher, Veltonvelton, and Dalton are secretly having a homosexual affair in hidden messages just like this one
research shows Fu is also involved, but not in a gross and creepy way

Arrow


Zeriab


Winged

Nice  ;D

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

~Winged



Blizzard

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.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Winged

Thanks, I'll read them tomorrow when I'm awake...

Good night everyone  :)

~Winged



Zeriab

Dubealex's tutorials seems to involve window management, so you could also read them.

Winged

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



Zeriab

No problems.
If you still have problems I suggest you make a topic in either Scripts or Troubleshooting depending on the problem you have. (Possible also Tutorials)

Snailer

I'm gonna give it a go at scripting  in rgss ruby ^^  Any tips i need to know :P ?

Zeriab

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 or Troubleshooting depending on the problem you have. (Possible also Tutorials)

.:Pyroken Serafoculus:.

#22
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
...

Blizzard

#23
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. :)
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

.:Pyroken Serafoculus:.

...

Atracious

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. :)
"Facts are useless. You could use facts to prove anything that's even remotely true." Homer Jay Simpson

"I do not know what weapons WWIII will be fought with but i know WWIV will be fought with sticks and stones" Albert Einstein

"It's better to have loved and lost than never to have loved at all." from In Memoriam, by Alfred, Lord Tennyson.

"all your base are belonging to us!" awful fantasy 3

"the grapes damb it, it's alway's the grapes!"

Funny anagrams:
Desperation=A rope ends it
Mother in law=Woman hitler
Lottery machine=Money lost in 'em
Election results=Lies lets recount
Dormitory=Dirty room
Snooze alarms=Alas! No more Z's
Eleven plus two=Twelve plus one
Cosmetic surgery="Yes, I correct mugs."
The IRS=Theirs!
Public relations=Crap, built on lies
Astronomer=Moon starer
Dementia="Detain me."
Internet chat rooms=The moron interacts
The eyes!=They see!

Currently making:
http://rmrk.net/index.php/topic,13132.0.html

Zeriab

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.

Zeriab

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 ^_^

Rune

My topic's up in the tutorial database if you want to add a link to it here ;)
Sincerely,
Your conscience.

Zeriab

I have your link in now as well as a link to a tut I wrote ^_^

Rune

#30
Nice :) I'll check yours out :)

[EDIT]
Okay, by quick glance, I understood 0% of that :(
Sincerely,
Your conscience.

Zeriab

It is intended for advanced scripters. (SephirothSpawn asked me to make it ^_^)
You could come back to it later ;)

Rune

Sincerely,
Your conscience.

Kokowam

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.

Zeriab

Quote from: mastermoo420 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.

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

Kokowam

Quote from: Zeriab on June 20, 2007, 05:49:26 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.

Zeriab

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?

ahref


Zeriab

Thanks a lot ahref. You deserve a hug

*uses super-hug on ahref*

RobertM

I Need Help Dont Know What To Download To Make RGSS script Srry Really A Noob


Srry For Stuped  Questions
plz anwser

modern algebra

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.