Notice: fwrite(): Write of 461 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 59 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 1714 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 44 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96

Notice: fwrite(): Write of 8192 bytes failed with errno=28 No space left on device in /home/rmrk/domains/rmrk.net/public_html/Sources/Cache/APIs/FileBased.php on line 96
Print Page - Scripting Tutorial #1: An Introduction to Ruby and RGSS

The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Tutorials => Topic started by: Falcon on March 10, 2007, 12:10:51 AM

Title: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Falcon on March 10, 2007, 12:10:51 AM
You all can go fuck yourselves, I'm not going to put up with this crap of stealing people's work.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: keyblade_bearer on March 10, 2007, 12:26:27 AM
Snineyful, there are a few terms you left out, (false, true, alias) but that's why you'll cover then next, right?

Also, I think making us do ssomething after a lessen would help too. Like moving your menu around. etc.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Falcon on March 10, 2007, 12:27:54 AM
Obviously someone skipped the authors notes.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: keyblade_bearer on March 10, 2007, 12:29:48 AM
Lol, how'd you know?

I see, ok then. Understood.

I never said it was great did I, lol. So, yeah, I like it.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: AiR on March 10, 2007, 01:46:05 AM
It looks wonderful and is very easy for laymen, such as myself, to understand.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: :) on March 10, 2007, 02:25:41 AM
VERY nice start Dark! I understood everything.  ;)
Rep +
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: modern algebra on March 10, 2007, 02:53:37 AM
The format is very nice. It is very easy to understand and teaches some of the basic ideas in a very approachable manner. Good job!
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Zeriab on March 10, 2007, 03:47:15 PM
Good work Darklord!
I like the style of your tutorial.

There is something wrong with your operators for conditional statements:
Quote== Equal
!= Not Equal
<= Less than
>= Greater than

It should be:
Quote== Equal
!= Not Equal
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to

Good job again
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Falcon on March 10, 2007, 04:07:54 PM
Thanks a lot for the correction Zeriab :)
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Zeriab on March 10, 2007, 06:07:24 PM
Np mate.
I will let ya know if I discover anything else. Also just ask if you need any help.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Winged on March 11, 2007, 12:03:01 AM
This is great, but what the hell is "def" used for? I'm being such a retard, am I not?

Great job, its really simple and easy to understand compared with some other tuts out there.

~Winged
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Falcon on March 11, 2007, 01:53:25 AM
def tells that a method is beeing defined.

Example:

def display

Defines a method called display, to call that method, simply use "display" (no quotes).
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Blizzard on March 11, 2007, 03:04:40 PM
Rep++, good work. ;) I get the itches to work on my scripting tute again. ;8
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Falcon on March 13, 2007, 11:38:16 AM
Just wanted to say I've started the next tutorial (Window Creation/Editing) and it should be finished by Sunday, if not earlier.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Snailer on March 13, 2007, 04:22:32 PM
OMG FUCK U PWN IMA READ THIS THANKS
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Arwym on March 19, 2007, 08:49:18 PM
For those familiar with PHP programming, "def" is the same as "function". You define a function (method) you yourself have created.
If this is like PHP, you shouldn't need the "def" after you have defined the method. To use the method again, just type method(), assuming that "method" is the name you defined for it.
For example,

def stats(a, b)
Script here
end


I want to use stats() again in another part of the script. So I will just type:

stats(a, b) within the script, right? Please correct me if I am wrong. This is the first time I read RGSS.

If I am wrong, then I assume that "def" has a broader use. If so, please let me know. ^^;



:D I guess this is easier to understand when you're familiar with other languages... <3 I am happy. Thanks for the tut! ^^
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Tsunokiette on March 19, 2007, 09:06:54 PM
Quote from: Zeriab on March 10, 2007, 03:47:15 PM
Good work Darklord!
I like the style of your tutorial.

There is something wrong with your operators for conditional statements:
Quote== Equal
!= Not Equal
<= Less than
>= Greater than

It should be:
Quote== Equal
!= Not Equal
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to

Good job again

Also, I'd like to note that if you place a "!" in front of anything, it returns the opposite of the value.

"!" in RUBY means "not".
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Falcon on March 20, 2007, 01:54:58 AM
Quote from: Arwym on March 19, 2007, 08:49:18 PM
def stats(a, b)
Script here
end


I want to use stats() again in another part of the script. So I will just type:

stats(a, b) within the script, right? Please correct me if I am wrong. This is the first time I read RGSS.

Correct, although a and b would be variables which would be plugged in to the method.

Also, note that the method would only use "stats(avalue, bvalue)" in the class, in another class you would need to use something like $classname.stats(avalue, bvalue)
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Arwym on March 21, 2007, 01:40:29 PM
I see! Now I get it much better. ^^

Thank you very much! It is really appreciated.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Zeriab on March 22, 2007, 08:19:04 PM
To compliment what Tsu said, some functionality with booleans:
p true && true, true && false, false && true, false && false
p true & true, true & false, false & true, false & false
p true || true, true || false, false || true, false || false
p true | true, true | false, false | true, false | false
p true ^ true, true ^ false, false ^ true, false ^ false
p !true, !false


Then there is the whole deal with including the Comparable module.
I can understand if you don't want to put too much of this into the first tutorial.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Falcon on May 09, 2007, 10:39:54 PM
Reposted.
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Jalkson on May 09, 2007, 10:43:05 PM
<3
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Kokowam on May 09, 2007, 10:59:58 PM
Wow, didn't notice that I didn't post here. GOOD TUT! This is a good tutorial. Are you going to be making more?
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Winged on May 10, 2007, 07:56:49 AM
Quote from: Falcon on March 11, 2007, 01:53:25 AM
def tells that a method is beeing defined.

Example:

def display

Defines a method called display, to call that method, simply use "display" (no quotes).

Alrighty, thankyou for clearing that up (it took me sometime to thankyou ><") however I have given up. I lack in memory and commitment, I'd be better of story writing  :-\

~Winged
Title: Re: Scripting Tutorial #1: An Introduction to Ruby and RGSS
Post by: Amoria on July 28, 2007, 09:06:00 AM
Warning: this topic has not been posted in for at least 60 days

sorry ?m new but ? read now :D

This code s are similiar to me because these codes are Visual Basics code for exmpl.  Print "Hello" or msgbox [messagebox] this program [rpgmakerxp] is do with V?sual basic not C++ or Delphi [ ? love Basic :D its easy :D ]