JSON Almost got messages styled how I want them... but I hit a wall

I want to make my message dialogue look like old anime subtitles. I'm using a new sample game (scene-based UI) to demonstrate/try to figure this out in an uncontaminated space. I wanted just the character's name and message text in yellow with a thick black outline. No text box, no menu. Preferably no message caret or italics (which I did figure out).

wow2.png


I'm not much of a programmer, but I can sort of squint at things and futz with them until I get results. (My skill level is "tried Ren'py and got worn out".) I found and edited Template_MessageBox. I deleted the block of code that displayed the side menu and just lowered the opacity of everything else I didn't want to 0, which got the job done for now. That put me here:

9bf17b9510de4085753110323e72e934.png


As you can see, I got rid of the unwanted elements. The message text is still italic, and the name text is itty bitty and white. For some reason, setting italics to "no" via the Message Settings command didn't work, even though I've done it that way before. I found something labeled "advMessageText" in Style_Default and changed italics to "false". Problem solved!

I moved on to trying to fix the teeny tiny white name problem. I found the section for "messageBoxNameText" in Style_Default and edited it. It didn't have color in there, so I just looked around until I found something else that did and copied that. Here's what I did to it:

JSON:
}
###
# Used to display the current character's name.
###
ui.UIManager.styles.messageBoxNameText = {
    "font": { "name": "Arial", "size": 50,  "color": [255, 255, 0, 255], "smallCaps": false, "italic": false, "bold": true, "border": true, "borderSize": 10}
}

And... I'm much closer now to what I wanted to achieve! But not quite there.

prettydangclose.png


I couldn't figure out what was keeping that text white. I tried changing Willow's character color to yellow. Nothin'. There's also something in Common Events that claims to let you edit the "Name-Display," but it also affects nothing.

So here are my remaining questions:

1. How do I change that white name text to yellow? Nevermind, I thought of something and figured this one out. The problem was that it wanted a regular RGB color rather than RGBA. Changing it to 255, 255, 0 worked fine. LOL

2. How can I add a : after the character names, or maybe [Brackets] around them? What would that look like in JSON and where would I put it? I guess I COULD just edit the character's name, ex change to "Willow:" or "[Willow]" but it's kind of a messy solution that could lead to further weirdness down the line.

3. Does all this stuff in Common Events actually... do anything, or is it just deprecated or something? Editing the "Message Box" common event didn't seem to have any effect on anything. I'm also wondering what might cause the Message Settings command to not work.

Again, this is a Scene-Based UI example game I'm working with, and I'm using the current stable version of VNMaker on Steam. Edit: Nope, I tried switching to the current beta and the Common Events still just don't do anything... and I mean literally Do Not Do ANYTHING. I deleted the entire Message Box folder just to see what would happen, and... it stayed completely intact ingame. I'm primarily concerned with question #2 here but this is pretty weird.
Hmmm.....So far as I know, the "stable version" is a very buggy version. Try the newest beta, that version would be much better.

I'm not a programer so I did not touch the codes. However, Scene-Based UI example worked just fine for me, "Show Message Box" common event do everything it supposed to do ( Including change Name Text style,position, etc.)

So here is my surggestion:
1. Update VNM to the latest beta version (Unstable/BETA).
2. Creat a new project and try messagebox common events again. I'm not sure if your coding made the events fall to work.

Good Luck!
Oh thanks for the heads-up on this! I'll switch over to the beta version and see if that clears up any of the weirdness I've been running into.

Edit: Hmmm. I'm using the latest beta, and tried a new file, and edits to the message box Common Event still don't seem to do anything. Pretty weird and confusing, but I guess at least I can get around it with code. Still can't figure out how to add anything after/around character names.
Oh thanks for the heads-up on this! I'll switch over to the beta version and see if that clears up any of the weirdness I've been running into.

Edit: Hmmm. I'm using the latest beta, and tried a new file, and edits to the message box Common Event still don't seem to do anything. Pretty weird and confusing, but I guess at least I can get around it with code. Still can't figure out how to add anything after/around character names.
Didn`t see your new message until now.....👋

I reviewed your question, and I guess... you just use the " Message Box Visbility" and "Show Message" command to build your dialogue, right? Because the style show in screenshot is just look like the build-in game UI, NOT looks like the scene-based UI sample.

In a scene-based UI project, you use "Call Common Event-Show message Box" and "Show Message" to creat you dialogue, it should look like this:
微信截图_20220614184617.png


This is a total different way to build the dialog. If you only edit the "show message box" common event but still use "Message Box Visbility", since this command and "show message box" event are irrelevant, nothing would happen.

To me, scene-based UI is much easier to custom than build-in UI, maybe you could try it again 🙂

Original thread: https://forums.rpgmakerweb.com/threads/almost-got-messages-styled-how-i-want-them-but-i-hit-a-wall.147841/