The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: michael95 on April 19, 2011, 08:42:25 AM

Title: Character names and pictures
Post by: michael95 on April 19, 2011, 08:42:25 AM
How to do to display images of characters and their names?
Title: Re: Character names and pictures
Post by: modern algebra on April 19, 2011, 01:28:40 PM
Well, I'll assume you mean in a message box and not just in general. You can show a name by using \n[a], where a is the ID of an actor. So \n[1] would show the name of Actor 1 (Aluxes); \n[2] would show the name of actor 2, etc... \n[0] would show the name of the party leader.

To show faces (I assume you are using XP since this would be too obvious in VX), you can either do it by importing faces into the Picture folder of graphics and showing them with Show Picture, or you can do it by various scripts (like dubealex's AMS (http://www.creationasylum.net/forum/index.php?showtopic=590) or ccoa's UMS (http://www.rmxpunlimited.net/forums/index.php?autocom=downloads&showfile=63)). They each come with a full set of instructions for using faces.
Title: Re: Character names and pictures
Post by: shintashi on April 21, 2011, 01:20:58 AM
hey MA, don't you have your own version of one those AMS/UMS things?
Title: Re: Character names and pictures
Post by: modern algebra on April 21, 2011, 03:12:31 AM
I do, but it's for RMVX
Title: Re: Character names and pictures
Post by: shintashi on April 22, 2011, 03:23:05 PM
Quote from: modern algebra on April 21, 2011, 03:12:31 AM
I do, but it's for RMVX

that explains it. I tripped over it a long time ago whe I didn't know the difference. You know, when I see your theme, I think "Pink lightning" and hear the initial D theme in my head
"Pink lightning, go-go pink lightning!" > http://www.youtube.com/watch?v=Ba-8A3mOIio
Title: Re: Character names and pictures
Post by: michael95 on May 04, 2011, 05:01:17 PM
I havent space for text in first line.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fobrazku.cz%2Fobr689447_game.png&hash=ccab1966e54dd5b5833c43063ecfb770ebc7d29f)

Text is not underneath, too.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fobrazku.cz%2Fobr689454_game2.png&hash=cd0af5914e939dbf94ef24da7afd9757216c39e6)
Title: Re: Character names and pictures
Post by: shintashi on May 04, 2011, 05:42:44 PM
Quote from: michael95 on May 04, 2011, 05:01:17 PM
I havent space for text in first line.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fobrazku.cz%2Fobr689447_game.png&hash=ccab1966e54dd5b5833c43063ecfb770ebc7d29f)

Text is not underneath, too.

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fobrazku.cz%2Fobr689454_game2.png&hash=cd0af5914e939dbf94ef24da7afd9757216c39e6)

it looks correct to me. See the little black arrow pointing down? that's where the program is hitting 'return', it's also not counting /nm and /face as characters. So only 'a ho nezastavim ma" is going to show up. You might try using the /include command and putting the name and icon on the first part, but there's no guarantee. I've run into these problems before, but they are not errors, they are just bad programming. I can't hack it, but someone else might be able to. You could also try widening your display window or changing the font size.
Title: Re: Character names and pictures
Post by: michael95 on May 05, 2011, 02:33:32 PM
It was because I \nm[Zafus] \Face[Zafus.png] put before the text. When I give it at the text is OK.