Main Menu
  • Welcome to The RPG Maker Resource Kit.

[SOLVED]YEM Restored Function problem

Started by kairi_key, July 06, 2011, 10:38:02 PM

0 Members and 1 Guest are viewing this topic.

kairi_key


I'm trying to tint the picture, but then I got this error with the script while testing for tinting

"Script 'Restored Function' line133:ArgumentError occured

wrong number of arguments(2 for 8)"


I don't if there's any info that you may need, but if anyone can help me correct this, would be great =w=b

exhydra

Over-write lines 137 through 153 in 'YEM Restored Functions' with the following code :


  #--------------------------------------------------------------------------
  # alias method: rotate
  #--------------------------------------------------------------------------
  alias rotate_game_picture_rf rotate unless $@
  def rotate(*args)
    rotate_game_picture_rf(*args)
    @mirror = $game_switches[YEM::FUNCTION::PICTURE_MIRROR_SWITCH]
  end
 
  #--------------------------------------------------------------------------
  # alias method: rotastart_tone_changete
  #--------------------------------------------------------------------------
  alias start_tone_change_game_picture_rf start_tone_change unless $@
  def start_tone_change(*args)
    start_tone_change_game_picture_rf(*args)
    @mirror = $game_switches[YEM::FUNCTION::PICTURE_MIRROR_SWITCH]
  end

UPDATED 05-29-14


IS YOUR PROJECT OPTIMIZED?
UPDATED 07/04/15 - v2.5

RPG MAKER TOOLBOX
UPDATED 07/04/15 - v1.5

kairi_key

Oh, thank you!

=w=b


It's working okay, now!