Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Adding portraits to menus/status screen

Hi,

I recently downloaded the RPG Maker XP and I'm trying to do a few things. I've downloaded the AMS, and now I can place portraits for battlers and in text windows, but I'm stuck on how to replace the character sprites in the menu with the same portraits. I'm trying to go for an FFish menu portrait system. Can anyone help please?

P.S. I noticed there is a Chrono Trigger Custom Menu Systems. Are those similar to the AMS? (A script?) and where can I find more of them. I'll be searching this site as I wait for an answer, the Chrono Trigger one isn't quite what I'm going for at the moment, but I do want the portraits to show up in a similar way
 
Place this in a new script above main:
Code:
Window_Base < Window

def draw_actor_face(actor, x, y)
bitmap = RPG::Cache.picture("Faces/" + actor.character_name)
self.contents.blt(x, y, bitmap, Rect.new(0, 0, bitmap.width, bitmap.height))
end

end

Then search in Window_MenuStatus for the line
Code:
draw_actor_graphic(actor, x - 40, y + 80)

Just replace it with

Code:
draw_actor_face(actor, x - 40, y + 80)

Just change the x and y values.

Make a new folder in the Pictures Folder and call it Faces. Place there your facesets and name them like you named your characterset.
 
Okay I replaced it, the first script you gave me had an extra end but I managed to fix that, which is kind of a miracle in itself (I have like, no experience with scripting yet. I basically just cut and pasted the AMS.) So now I go to go into the menu and it says: Unable to find Graphics/Pictures/Faces/001-Fighter01.

I'm kind of confused on what to do from here.

I made a new folder like you said, and I put that into the pictures folder. Then I added the images that I want to use as portraits into that Faces folder.

Do I need to name the portraits similar to the 'Characters' names?

nevermind I re-read what you said and re-named the faceset and it works, but the portrait is too low. You said to alter the x/y variables, how is that done?
 
Thanks, both of y ou. That worked well. The only thing is that it shows the pics in the menu but not when you click on an individual character's status screen, but I think that's alright for now
 
Very awesome.

I was wondering if I could pester you for some other information, this is what I'm trying to do:

I'm having a game where you can have both melee and firearms for weapons.

The melees will generally be weaker and infinite, but the firearms are much stronger but limited. Here's what I want:

Is there a way to make it so that when equipped, you can make it so Handgun shows up in the weapon slot as Handgun(Bullets remaining), then won't fire if the bullets show as 0. I'm guessing this would be a variable of some kind.. or a switch.. I'm still kinda new to this.

2nd part:

After whatever gun is empty, I'd either like it to be that you can carry around extra clips/bullets to reload, or that when you go back to the 'base/inn' that you can have an option to re-load, which you pay for, and then it resets that bullet variable.

How would this be done?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top