Ruby Tutorial: 09. Commenting

February 14, 2010 at 12:57 AM | Posted in Tutorial | Comments Off on Ruby Tutorial: 09. Commenting
Tags: ,

It is important when you make a script to organize and put instructions for users… in the manual of Rpg Maker Vx it says:

* When developing scripts to be distributed to the general public,
we recommend that you use redefinitions and aliases as much as
possible, to allow the script to run just by pasting it in this position.

The redefinitions and aliases they referred to is all made of comments… if you haven’t already noticed… comments are  made after you put # before text… that text will become part of your organization. It is highly recommended to use comments so that you will not lose your  place…

NOTE: Comments are not used in read by ruby syntax… so you can put anything in your comments… example.

# u9dmm39d00219

That line won’t be read by the engine but will be saved. Also… you can also input comments in another way… you can put in Rpg maker vx (maybe stand alone)  =begin to make a comment begin block… and =end to make a comment end block. Example:

=begin

* When developing scripts to be distributed to the general public,
we recommend that you use redefinitions and aliases as much as
possible, to allow the script to run just by pasting it in this position.

=end.

So this is the end of 09. Commenting.

Advertisements

Create a free website or blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: