Save-Point
Just a modification of Abyssos' facs script - 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: Just a modification of Abyssos' facs script (/thread-6935.html)



Just a modification of Abyssos' facs script - lumina... - 11-01-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.


This mod of Abyssos' script makes a new pic appear in the status window when you click it... Well I'd guess its barely logical but can be used. Well, I do at least... All of the credit here goes to Abyssos...


Code:
######################
#Second Face script v.1
#Original script made by: Abyssos
#Mod by: lumina...
#-Instructions: Put this script above main and below the 1st face script (yes,
#---you'll need the script Abyssos made...)
#---take note that you'll need to make a folder named
#---Faces2 in the same directory as the 1st faces folder...
#---In addition, the 2nd face filenames must be the same with the filename
#---of the character's sprite. (refer to screenie)
#######################

def draw_actor_face2(actor, x, y)
  face = RPG::Cache.character("Faces2/" + 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


Now, replace this part of Abyssos' code in class Window_Status:

Code:
draw_actor_face(@actor, 10, 112)


with:

Code:
draw_actor_face2(@actor, 10, 112)



Basically, what i did was place the "2" in the "face" 's in the code,
but don't hate me!! Besides, I don't take any credit by placing some 2's int he code...
it's all him :alright:

I'd like some comments about this one... any errors maybe?

SCREENSHOTS:
[Image: sc1.jpg]
[Image: sc2.jpg]
[Image: sc3.jpg]
[Image: sc4.jpg]

oh, and here's thie link for Abyssos' script...
Yeah, it's here
^===================== fix this link when found