Jump to content


Photo

Print Screen Script not working, what am i doing wrong?!


  • Please log in to reply
2 replies to this topic

#1 Animez3

Animez3

    Advanced Member

  • Members
  • 32 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 18 June 2012 - 06:10 PM

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)

#2 Lone Wolf

Lone Wolf

    Tsundere

  • Early Adopter
  • 248 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 18 June 2012 - 09:09 PM

As of VX Ace, "print", "puts", and so forth print to the debug console (Game->Show Console). If the console isn't open, you won't see any readout.

#3 Animez3

Animez3

    Advanced Member

  • Members
  • 32 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 18 June 2012 - 11:17 PM

Thanks man very much appericated!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users