• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Portraits in text messages

Portraits in text messages 1.0

Pokémon Essentials Version
v16.2 ➖
What's this?
Normally, to display pictures, you can use the text command "\f[filename]" or "\ff[filename,index]". I've made a few simple additions to how text is processed to allow for two different pictures at once (so you can use left, right, or both at the same time). I've also included a sample (animated!) portrait from Fire Emblem. Check the Credits tab for the original sheet.

Show me the goods!
gZ8svGL.gif

(Example graphics by Akizakura16)

Installation
Replace the "Messages" section in your Script Editor with this: Pastebin
If you've made some other changes yourself, feel free to use a text-comparing tool to get the exact bits of code.

Extract the rar into your /Graphics/ folder. You should be placing your pictures under the .../Faces/ folder. If it cannot find the file there, it will try .../Pictures/ or .../Mugshots/ instead.

Usage
In a "Show Text..." command, type "\ml[filename]" or "\mr[filename]". ML for "mugshot left", MR for "mugshot right". You can use both at the same time.

Your pictures should be 160x160 (80x80 before resizing for RMXP). If they are .GIF files, they will be animated. You can animate your pictures using GIMP, Photoshop, or just a simple site such as gifmaker.me. There is no limit to the number of frames, to my knowledge.

A good source of re...sources is The Spriters Resource. Check this Black 2 and White 2 Transceiver sheet! Might give you some ideas.

Example Event
h04527t.png

Where "girlA" and "boyA" are the desired filenames.

Additional Information (if you decide to mess with the code)
Instead of replacing the \ff command functionality by modifying the FaceWindowVX class, I just duplicated it into "FaceWindowVXNew". That's the class you should be messing with. If you need to increase/decrease the picture size, look for "192,192", which should be size of the portraits (160) plus 32. Also change all the following instances of "160". 192x192 is the window's size (thus the 32px borders on top of drawing the actual picture). I made the windowskin invisible/none with ".windowskin=nil".

There are several instances of the facewindowL's and facewindowR's X and Y position. This is due to it refreshing/not being positioned immediately. If you change the X and Y, make sure to change it in all instances of the script section.

Downsides
- This is not optimised for acomodating changes in the text window placement. The portrait positions are fixed and not dynamically calculated based on the current text window positioning. (Check the notes above for further instructions)
- You have to manually mirror the pictures to make them face right or left.
Credits
h7zpBm0.png

Please credit if used to:

Mr. Gela

Please credit if using the example graphics to:
Akizakura16 (Devianart)

Please do not redistribute this anywhere resource anywhere else. If you wish to share this, link to this site.

xa1A2iB.png

Por favor da créditos si lo utilizas a:
Mr. Gela

Por favor da créditos si utilizas los gráficos de ejemplo a:
Akizakura16 (Devianart)

Por favor no redistribuyas este recurso en ningún otro lugar. Si quieres compartir esto, utiliza un enlace a este sitio.
Author
Mr. Gela
Downloads
1,785
Views
8,181
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Mr. Gela

Back
Top