LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



View previous topic View next topic Go down Message [Page 1 of 1]

Administrator
Administrator
#1 The Quest for RGSS
Loading

G@MeF@Ce

Administrator
Administrator
Administrator
profile
RGSS stands for:

RUBY GAME SCRIPTING SYSTEM
it is the library of scripts (pages of code)
setup up to be used in reference
when you code functions for RMXP scripts.

RUBY is the programming language
which allows greater flexibility of
development with an interface
using basic data structures
configured by the editor.


as one of my New Year's resolutions
(that I'm going to stick with)
I've been studying to be better at scripting.
Here's the lessons I've studied so far...
(doesn't mean I understand them :-P )
I encourage any of you who are interested
in making your very own scripts to join me.
Just know that it's going to be a timely,
challenging, and brain-twisting process.

stumped

RGSS & Ruby Lesson - Chapter 1

LESSON 1 (class, method, initialize, call script)

Like a Star @ heaven
Spoiler:
Code:
###########################################################################
###############    RMXP + RGSS + RUBY + SCRIPT = Lesson 1    #############
###############    Class, initialize method, call script    #############
###########################################################################

=begin
Start Scriptin'
by Gameface101
1-14-10
=end

class Message_Button #-------------=[define a new CLASS called "Message_Button"]
#-----------------------------------------=[space for convention / organization]
def initialize #----------------------=[define a new METHOD called "initialize"]
    print "PLAY ON!" #---------------------=[EXECUTE CODE when method is called]
  end #-----------------------------------=[close the METHOD named "initialize"]
#-----------------------------------------=[space for convention / organization]
end #---------------------------------=[close the CLASS called "Message_Button"]

=begin

Intructions:

to call this class named "Message_Button"
- create an event
- use call script
-
"Message_Button.new"

NOTE:
The method "initialize" is a default method that is executed
when you use the ".new " syntax.

=end

LESSON 2 (attributes, instance variables, advance call script)

Like a Star @ heaven
Spoiler:
Code:
###########################################################################
###############    RMXP + RGSS + RUBY + SCRIPT = Lesson 2    #############
###########  attributes, instance variables, advance call script  ########
###########################################################################

=begin
Start Scriptin'
by Gameface101
1-15-10
=end

class Message_Button2 #-----------=[define a new CLASS called "Message_Button2"]
#-----------------------------------------=[space for convention / organization]
attr_accessor :greeting #--------=[define ATTRIBUTE VALUE for "Message_Button2"]
attr_accessor :name #---=[define a second ATTRIBUTE VALUE for "Message_Button2"]
#--------------------------------------------------------------=[proper spacing]
  def initialize(greeting, name)#----------=[define method to recieve ARGUMENTS]
    @greeting=greeting #------=[INSTANCE VARIABLE to store data for "greeting"]
    @name=name #------------------=[INSTANCE VARIABLE to store data for "name"]
  end #----------------------------------=[close the METHOD named "initialize"]
#--------------------------------------------------------------=[proper spacing]
  def say #-----------------------------------------------=[define METHOD "say"]
  print @greeting + " " + @name #=[print content for greeting, space, and name]
  end #----------------------------------------------------=[close METHOD "say"]
#--------------------------------------------------------------=[proper spacing]
end #--------------------------------=[close the CLASS called "Message_Button2"]

=begin

Intructions:

to call this message create an event, use call script

[define oriented object]
message1=Message_Button2.new("greeting1", "name1")
message2=Message_Button2.new("greeting2", "name2")

[to show complete message]
message1.say
message2.say

[to show only name]
print message1.name
print message2.name

[to show only greeting]
print message1.greeting
print message2.greeting

NOTE2:
Simply use the "ATTR_ACCESSOR" syntax to define a new attribute.

=end


RGSS & Ruby Lesson - Chapter 2

LESSON 3 (constants, global and class constant variables)

Like a Star @ heaven
Spoiler:
Code:
################################################################################
###############    RMXP + RGSS + RUBY + SCRIPT = Lesson 3    ##################
###########    CONSTANTS, GLOBAL and CLASS CONSTANT VARIABLES    ##############
################################################################################

=begin
Start Scriptin'
by Gameface101
1-16-10
=end

A_CONSTANT=100 #------------------------=[define a GLOBAL CONSTANT to equal 100]
#--------------------------------------------------------------=[proper spacing]
class Constant_Test_1 #-------------=[define a new CLASS called Constant_Test_1]
  ANOTHER_CONSTANT=50 #---------------=[define a new CLASS CONSTANT to equal 50]
#--------------------------------------------------------------=[proper spacing]
  def initialize #--------=[define initialize METHOD for CLASS "Constant_Test_1]
  print ANOTHER_CONSTANT #----------------------=[print ANOTHER_CONSTANT value]
  print A_CONSTANT #----------------------------------=[print A_CONSTANT value]
  end #-----------------------------------------------=[close initialize method]
#--------------------------------------------------------------=[proper spacing]
end #---------------------------------------=[close the CLASS "Constant_Test_1"]
#--------------------------------------------------------------=[proper spacing]
class Constant_Test_2 #-------------=[define a new CLASS called Constant_Test_2]
#--------------------------------------------------------------=[proper spacing]
  def initialize #--------=[define initialize METHOD for CLASS "Constant_Test_2]
    print Constant_Test_1::ANOTHER_CONSTANT #-----------------=[see notes below]
    print A_CONSTANT #---------------------------------=[print A_CONSTANT value]
  end #-----------------------------------------------=[close initialize method]
#--------------------------------------------------------------=[proper spacing]
end #---------------------------------------=[close the CLASS "Constant_Test_2"]
#--------------------------------------------------------------=[proper spacing]
class Constant_Test_3 #-------------=[define a new CLASS called Constant_Test_3]
  A_CONSTANT+=1 #---------=[define CLASS CONSTANT - A_CONSTANT to equal +1 more]
#--------------------------------------------------------------=[proper spacing]
  def initialize #-------=[define initialize METHOD for CLASS "Constant_Test_3"]
    print A_CONSTANT #---------------------------------=[print A_CONSTANT value]
  end #-----------------------------------------------=[close initialize method]
#--------------------------------------------------------------=[proper spacing]
end #---------------------------------------=[close the CLASS "Constant_Test_3"]

=begin

Instructions:

to call each CLASS , create an event and use the following call script

[print ANOTHER_CONSTANT then A_CONSTANT]
Constant_Test_1.new

[print ANOTHER_CONSTANT from another class and A_CONSTANT]
Constant_Test_2.new

[print A_CONSTANT + 1]
Constant_Test_3.new

NOTES:

line 25 = print CLASS CONSTANT "ANOTHER_CONSTANT" from CLASS "Constant_Test_1"]

A "CONSTANT" is a 'container' that contains a certain value.
They are to be in ALL CAPS and not within any method.

=end

LESSON 4 ("conditional statements")

Like a Star @ heaven

SAMPLE A
Spoiler:
Code:
###########################################################################
###############    RMXP + RGSS + RUBY + SCRIPT = Lesson 4    #############
##################    IF STATEMENYS CONDITIONAL BRANCH    ###############
###########################################################################

=begin
Start Scriptin'
by Gameface101
1-18-10
=end

#SAMPLE A
class If_Stat_1 #-----------00000----=[define new CLASS called "If_Statement_1"]
  @@a_class_variable=10 #----------------=[set class variable value to equal 10]
#--------------------------------------------------------------=[proper spacing] 
  def initialize #-----------------------------------=[define METHOD initialize]
    @@a_class_variable+=1 #--------------------------=[+1 to "a_class_variable"]
    a_local_variable=13 #------------=[set "a_local_variable" value to equal 13]
#--------------------------------------------------------------=[proper spacing]
    if @@a_class_variable==a_local_variable #--[condition statement - see notes]
      print "MATCH!" #-------------------=[show message button with " message "]
    else #------------------=[if condition above is not true then process below]
      print "Nope, wrong number" #------------=[message button with " message "]
    end #-----------------------------------------=[close conditional statement]
#--------------------------------------------------------------=[proper spacing]
  end #---------------------------------------------=[close METHOD "initialize"]
#--------------------------------------------------------------=[proper spacing]
end #--------------------------------------------=[close CLASS "If_Statement_1"]


=begin

Instructions:

create and event and use call script command

[ will = 11]
If_Stat_1.new
[ equals 12]
If_Stat_1.new
[equals 13 MATCH!]
If_Stat_1.new
[equals 14]
If_Stat_1.new
[to reset]
???

NOTES:

line 19 - "if" "a_class_variable" is equal to "a_local_variable (then line 20)

=end

study

I'll continue to add links that I've studied or plan to study

http://ruby-doc.org/docs/ProgrammingRuby/html/ref_c_dir.html
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr http://www.youtube.com/user/MrGameface101?feature=watch
C.O.R.N.
C.O.R.N.
#2 Re: The Quest for RGSS
Loading

BluE

C.O.R.N.
C.O.R.N.
C.O.R.N.
profile
yes. It seems that this resolution did work out for you.
C.O.R.N.
Show Signature


Want a real challenge? Try Crack this code!

If you read this message, please PM me. this is a test. And I'm serious, this isnt just some lousy time wasting paragraph that I wrote just to fill in my signature. It's here for a reason. PM ME.
C.O.R.N.
http://51s-seedy-masteroogway.blogspot.com
EVENTALIST
EVENTALIST
#3 Re: The Quest for RGSS
Loading

mr_wiggles

EVENTALIST
 EVENTALIST
EVENTALIST
profile
Also it helps to keep the manual near by.

Programers Guide
EVENTALIST
Show Signature
EVENTALIST
C.O.R.N.
C.O.R.N.
#4 Re: The Quest for RGSS
Loading

BluE

C.O.R.N.
C.O.R.N.
C.O.R.N.
profile
^ ^ I've tried before but I just never have the patience to actually do it..
C.O.R.N.
Show Signature


Want a real challenge? Try Crack this code!

If you read this message, please PM me. this is a test. And I'm serious, this isnt just some lousy time wasting paragraph that I wrote just to fill in my signature. It's here for a reason. PM ME.
C.O.R.N.
http://51s-seedy-masteroogway.blogspot.com
EVENTALIST
EVENTALIST
#5 Re: The Quest for RGSS
Loading

mr_wiggles

EVENTALIST
 EVENTALIST
EVENTALIST
profile
To me its exciting and fun cause you challenge your self to do something and then the feeling when you complete is great.
EVENTALIST
Show Signature
EVENTALIST
C.O.R.N.
C.O.R.N.
#6 Re: The Quest for RGSS
Loading

BluE

C.O.R.N.
C.O.R.N.
C.O.R.N.
profile
I get that feeling when I make;/edit images...
C.O.R.N.
Show Signature


Want a real challenge? Try Crack this code!

If you read this message, please PM me. this is a test. And I'm serious, this isnt just some lousy time wasting paragraph that I wrote just to fill in my signature. It's here for a reason. PM ME.
C.O.R.N.
http://51s-seedy-masteroogway.blogspot.com
EVENTALIST
EVENTALIST
#7 Re: The Quest for RGSS
Loading

mr_wiggles

EVENTALIST
 EVENTALIST
EVENTALIST
profile
I get it with events more then i do with scripting but its starting to change, every one finds something that makes them happy.
EVENTALIST
Show Signature
EVENTALIST
C.O.R.N.
C.O.R.N.
#8 Re: The Quest for RGSS
Loading

BluE

C.O.R.N.
C.O.R.N.
C.O.R.N.
profile
C.O.R.N.
Show Signature


Want a real challenge? Try Crack this code!

If you read this message, please PM me. this is a test. And I'm serious, this isnt just some lousy time wasting paragraph that I wrote just to fill in my signature. It's here for a reason. PM ME.
C.O.R.N.
http://51s-seedy-masteroogway.blogspot.com
EVENTALIST
EVENTALIST
#9 Re: The Quest for RGSS
Loading

mr_wiggles

EVENTALIST
 EVENTALIST
EVENTALIST
profile
nah, im not that good (yet), im learning the basics still.
EVENTALIST
Show Signature
EVENTALIST
C.O.R.N.
C.O.R.N.
#10 Re: The Quest for RGSS
Loading

BluE

C.O.R.N.
C.O.R.N.
C.O.R.N.
profile
ah....I see....
C.O.R.N.
Show Signature


Want a real challenge? Try Crack this code!

If you read this message, please PM me. this is a test. And I'm serious, this isnt just some lousy time wasting paragraph that I wrote just to fill in my signature. It's here for a reason. PM ME.
C.O.R.N.
http://51s-seedy-masteroogway.blogspot.com
Administrator
Administrator
#11 Re: The Quest for RGSS
Loading

G@MeF@Ce

Administrator
Administrator
Administrator
profile
I'm still trying to get more "object oriented"
so little time so many things to code ☺▲ ♥▼♦►♠◄♣

maybe in the fall quarter I will continue this quest...
spring and summer I'm booked!
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr http://www.youtube.com/user/MrGameface101?feature=watch
C.O.R.N.
C.O.R.N.
#12 Re: The Quest for RGSS
Loading

BluE

C.O.R.N.
C.O.R.N.
C.O.R.N.
profile
by next year we'll see this new product called "Uncle Gameface's Basic Ruby Kit" or a new game called "Gameface: Operation 101"
C.O.R.N.
Show Signature


Want a real challenge? Try Crack this code!

If you read this message, please PM me. this is a test. And I'm serious, this isnt just some lousy time wasting paragraph that I wrote just to fill in my signature. It's here for a reason. PM ME.
C.O.R.N.
http://51s-seedy-masteroogway.blogspot.com
EVENTALIST
EVENTALIST
#13 Re: The Quest for RGSS
Loading

mr_wiggles

EVENTALIST
 EVENTALIST
EVENTALIST
profile
i like the sound of those blue.
EVENTALIST
Show Signature
EVENTALIST
Poster Mcposty
Poster Mcposty
#14 Re: The Quest for RGSS
Loading

MotionM

Poster Mcposty
Poster Mcposty
Poster Mcposty
profile
I'm gonna start to get around with Scripting near the summer, if I'm not doing anything because my sister wants me in NY with her.
Poster Mcposty
Show Signature



^Want the above userbar in your profile? Here's the code.
Code:
 [img]http://img718.imageshack.us/img718/7481/gfuserbar.jpg[/img][/URL]



View my blog, http://motionmreview.blogspot.com/

Want a certain music album or game reviewed? Send me an Email at MotionM@hotmail.com!

: MShinigaki
Add me for some League of Legends fun!
Poster Mcposty
https://www.dropbox.com/sh/l3s9sn0nmkaxmy7/Lrut_zZyWd http://motionmreview.blogspot.com/ https://twitter.com/_motionm
C.O.R.N.
C.O.R.N.
#15 Re: The Quest for RGSS
Loading

BluE

C.O.R.N.
C.O.R.N.
C.O.R.N.
profile
^ ^ family fun
C.O.R.N.
Show Signature


Want a real challenge? Try Crack this code!

If you read this message, please PM me. this is a test. And I'm serious, this isnt just some lousy time wasting paragraph that I wrote just to fill in my signature. It's here for a reason. PM ME.
C.O.R.N.
http://51s-seedy-masteroogway.blogspot.com
#16 Re: The Quest for RGSS
Loading

Sponsored content

profile

View previous topic View next topic Back to top Message [Page 1 of 1]

 

Chatbox system disabled
Personal messaging disabled