- Joined
- Oct 19, 2015
- Messages
- 109
- Reaction score
- 12
- First Language
- English
- Primarily Uses
- RMMZ
/////////////////////////////////////////////////////////
///// Simulates message as having an image selected /////
/////////////////////////////////////////////////////////
Window_Message.prototype.newLineX = function(textState) {
const faceExists = true //$gameMessage.faceName() !== ""; // Edit: set to true forces text shifting
const faceWidth = ImageManager.faceWidth;
const spacing = 20;
const margin = faceExists ? faceWidth + spacing : 4;
return textState.rtl ? this.innerWidth - margin : margin;
};
Oh yeah...The face is blank...Just put a face thereYou need to actually use the face graphic box so the text will offset, even if its just a blank image since you're using a plugin apparently to draw faces.
Going to take a moment and see how easy it would be to get rid of the offset since you would prefer to not do that....
I use multiple facial expressions in one message box. lmaoWhy aren't you using the regular face box if you're getting the exact results with message core lmao
You need to actually use the face graphic box so the text will offset, even if its just a blank image since you're using a plugin apparently to draw faces.
Going to take a moment and see how easy it would be to get rid of the offset since you would prefer to not do that....
Save this as a plugin and put it kinda close to the top of your plugin list and it should work. Just be warned, this will cause all messages to offset even if you have no images (using your existing plugin) selected due to the nature of what it changes.
Code:///////////////////////////////////////////////////////// ///// Simulates message as having an image selected ///// ///////////////////////////////////////////////////////// Window_Message.prototype.newLineX = function(textState) { const faceExists = true //$gameMessage.faceName() !== ""; // Edit: set to true forces text shifting const faceWidth = ImageManager.faceWidth; const spacing = 20; const margin = faceExists ? faceWidth + spacing : 4; return textState.rtl ? this.innerWidth - margin : margin; };
/////////////////////////////////////////////////////////
///// Simulates message as having an image selected /////
/////////////////////////////////////////////////////////
Window_Message.prototype.newLineX = function(textState) {
if ($gameSwitches.value(100) == true) {
// if switch 100 is true, the offset will happen
faceExists = true
}
else {
// if switch 100 is false, the offset will not happen
faceExists = false
}
const faceWidth = ImageManager.faceWidth;
const spacing = 20;
const margin = faceExists ? faceWidth + spacing : 4;
return textState.rtl ? this.innerWidth - margin : margin;
};
So when they change expressions you choose another facial expression? I don't understand the problem here? In the face sheets you just have the expressions for your characters, and when they change expressions you just select the corresponding face, or am I missing something here?I use multiple facial expressions in one message box. lmao
That's what I got after his response. The answer to his question is literally the 3rd option in the plugin though, I guess he just decided not to check.I think he can use his plugin to change the face mid-sentence so he can make it look like the talking character changes emotions while the text is still coming on screen if its not instant. Thats my guess.
As in multiple possible faces per message window instead of having to create a new message event in the editor for every change.
I can add a switch to it easy enough if you want? I don't really know how to add/create plugin commands very well myself, plus its been a while since I've actually worked on coding and I'm sloppy again ;(
Change the switch value to whatever one you need to use, in this sample I just picked Switch 100
Code:///////////////////////////////////////////////////////// ///// Simulates message as having an image selected ///// ///////////////////////////////////////////////////////// Window_Message.prototype.newLineX = function(textState) { if ($gameSwitches.value(100) == true) { // if switch 100 is true, the offset will happen faceExists = true } else { // if switch 100 is false, the offset will not happen faceExists = false } const faceWidth = ImageManager.faceWidth; const spacing = 20; const margin = faceExists ? faceWidth + spacing : 4; return textState.rtl ? this.innerWidth - margin : margin; };
So when they change expressions you choose another facial expression? I don't understand the problem here? In the face sheets you just have the expressions for your characters, and when they change expressions you just select the corresponding face, or am I missing something here?
I think he can use his plugin to change the face mid-sentence so he can make it look like the talking character changes emotions while the text is still coming on screen if its not instant. Thats my guess.
As in multiple possible faces per message window instead of having to create a new message event in the editor for every change.