The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Edwin VanCleef on December 17, 2006, 02:39:33 PM

Title: Portrait in main menu
Post by: Edwin VanCleef on December 17, 2006, 02:39:33 PM
Is there a script to display character portraits in the main menu?
Title: Re: Portrait in main menu
Post by: :) on December 17, 2006, 02:41:33 PM
yes, there should be some CMS's around here in this forum, most of them do this function.
Title: Re: Portrait in main menu
Post by: Edwin VanCleef on December 17, 2006, 05:27:44 PM
I'll look it up, thanks.
Title: Re: Portrait in main menu
Post by: Sthrattoff on December 28, 2006, 03:09:02 PM
But if you still wanted to use old menu, here's the way:

This little script will do:

#==============================================
# Potrait / Face
#==============================================

class Window_Base < Window

  def draw_actor_face(actor, x, y)
    bitmap = RPG::Cache.picture(actor.name)
    self.contents.blt(x, y, bitmap, Rect.new(0, 0, 72, 72)
  end

end


Go to Scene_Menu, find and change this one:
draw_actor_graphics(...)

With this one:
draw_actor_face(actor, 10,  y + 10)

Additional note is, import the file to Graphics/Picture and the file name must EXACTLY SAME to the hero's name on database.
Title: Re: Portrait in main menu
Post by: Irgna on January 04, 2007, 03:50:14 PM
Quote from: Sthrattoff on December 28, 2006, 03:09:02 PM

Go to Scene_Menu, find and change this one:
draw_actor_graphics(...)


I can't find this line... I'm a PKE user, could that be why?
Title: Re: Portrait in main menu
Post by: Blizzard on January 04, 2007, 04:22:31 PM
Should be:

draw_actor_graphic(...)

Type just

draw_actor_graphic

and you will find them.
Title: Re: Portrait in main menu
Post by: Irgna on January 05, 2007, 12:01:33 AM
Nope, alot of the lines didn't get translated in my version of the PKE, so I think it's one of them. Do official version users have these kinds of problems?