I was already discussing this in the "Easy Party Switching" thread but I thought I'd move the convo to a more appropriate/specific topic. The issue I have is that I'm using facesets for Easy Party Switching, and I'm trying to use them in place of sprites on the menu/status screens with the Tons of Add-Ons script. The problem is, the faceset graphics for EPS are 80 x 80, and the menu/status screens only provide space for a regular-sized sprite. It also vertically aligns the top of the image with the middle of the text block.
The question:
Is there any way to reconfigure my scripts to make that space 80x80? If not, is there a way to make it display those face graphics at a percentage of their original size?
Back to the original thread:
Quote from: Blizzard on February 27, 2008, 09:11:53 am
Actually they should replace the character spriteset. You can easily modify the position. Find the line that says draw_actor_face(actor, x, y) and simply change the values X and Y to adjust the position like draw_actor_face(actor, x+16, y+8) or something like that.
Blizzard, I tried messing around with those values as you suggested, but the game gives me a script error and refuses to open if I add + or - values to the X or Y.. any idea what might be causing this?
That can be done to resize it but I wouldn't be too sure gets a bit confusing I could (or you) resize your faces in an image program and I would make you another faceset script and call the faces instead of chars in easy party switcher
Nortos, are you saying that aside from the face graphics I added for Easy Party Switcher I should make another set of face graphics? I'm pretty handy with Photoshop so that shouldn't be a problem.
yeah or I'll take a look at his party switcher tonight with some 80x80 images I may be able to make it compatible would be pretty easy either way expect a solution when I log on tonight I'll pm it to you
Awesome, but just to clarify, the face graphics work fine in the Party Switcher itself, they're just too big for the space they put the character sprites in on the main menu screen. I'm trying to get them to fit there.
Either way, thanks so much for your help!
Insert this script above whatever CMS your using
class Window_Base < Window
def face
face = RPG::Cache.picture("")
end
def draw_face(actor,x,y)
face = RPG::Cache.picture(actor.name + "_face") rescue face
fw = face.width
fh = face.height
src_rect = Rect.new(0, 0, fw, fh)
self.contents.blt(x , y - fh, face, src_rect)
end
end
than search for Window_MenuStatus if using default cms it's just called Window_MenuStatus and on that page replace draw_actor_graphic(actor, x - 40, y + 80) or w/e your x and y are set to and replace them with
draw_face(actor, x - 40, y + 80) and change x and y's to your liking also the faceset for the menus ect go into the
PICTURES folder with the actors name and than _face do that with any other thing you want to change default graphics to you'll also have to make the facesets smaller maybe half around the size of a normal sprite