Save-Point
Change menu character sprites to Pictures like in rpg maker 2003 - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+----- Thread: Change menu character sprites to Pictures like in rpg maker 2003 (/thread-6921.html)



Change menu character sprites to Pictures like in rpg maker 2003 - Abyssos - 09-28-2006

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Just insert the script in the attatchment and add a folder called Faces to your characters folder (Under Graphics). Add pictures with the name of the character's ID. So say aluxes is 001-Fighter01 You will want to name the picture 001-Fighter01 . Enjoy.

Ok first off you need to make a new folder In your character's folder, Call it Faces. The Faces need to be named after the character id so say Aluxes he's 001-Warrior01.
Place the faces into that folder. Then add this code and Enjoy!.

Put this in a new script above main:

Code:
def draw_actor_face(actor, x, y)
  face = RPG::Cache.character("Faces/" + actor.character_name, actor.character_hue)
  fw = face.width
  fh = face.height
  src_rect = Rect.new(0, 0, fw, fh)
  self.contents.blt(x - fw / 23, y - fh, face, src_rect)
end

Ok now go to Window_MenuStatus Go to line 28 or where it says draw_actor_graphic And change the code with the following:

draw_actor_face(actor, x - 60, y + 80)

Make note that the x- and y+ are dummy values you can change the Location of where the picture is shown to your likeing.

Ok now go to Window_status Go to line 23 or where it says draw_actor_graphic And change the code with the following:

draw_actor_face(@actor, 10, 112)

The 10, 112) are also dummy values you can change the Location of where the picture is shown to your likeing.

Now start your game and Enjoy.

I also Fixed the rtf file it should now be a txt file. Thanks seph


.txt   Menu_face_script__.txt (Size: 1.11 KB / Downloads: 6)