The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: kairi_key on July 06, 2011, 10:38:02 PM

Title: [SOLVED]YEM Restored Function problem
Post by: kairi_key on July 06, 2011, 10:38:02 PM

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
Title: Re: YEM Restored Function problem
Post by: exhydra on July 06, 2011, 11:21:21 PM
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
Title: Re: YEM Restored Function problem
Post by: kairi_key on July 06, 2011, 11:26:34 PM
Oh, thank you!

=w=b


It's working okay, now!