I've been teaching my self how to script for the past few weeks and i wrote this script today
that is suppose to generate a print message and i'm sure i've got the syntax right because when i put it in a text editor it prints perfectly but when i put in in RPG Maker VX Ace's script editor it doen't work! Can anyone tell me what i'm doing wrong?!
#-------------------------------------------------------------------------------
# This a program that prints out a list.
#-------------------------------------------------------------------------------
class Print
def set_method(aPrint)
@firstprint = aPrint
end
def get_print
return @firstprint
end
def sound_method
return 'Vrooom!'
end
end
#-------------------------------------------------------------------------------
# Creating instance objects of Print class.
#-------------------------------------------------------------------------------
myprint = Print.new
#-------------------------------------------------------------------------------
# Name of print.
#-------------------------------------------------------------------------------
myprint.set_method('Car')
#-------------------------------------------------------------------------------
# Get their names and print them.
#-------------------------------------------------------------------------------
puts(myprint.get_print)
#-------------------------------------------------------------------------------
# Print sound method.
#-------------------------------------------------------------------------------
puts(myprint.sound_method)
Print Screen Script not working, what am i doing wrong?!
Started by Animez3, Jun 18 2012 06:10 PM
2 replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










