dialogue with description below

Kaos_Theory

Member
Apr 18, 2019
383
608
I'm trying to work out how to make certain dialogue lines within a script show a description under a word (such as some people do for translations)

Example

This line is part of a great conversation and will have some words or phrases in it that do not share the same language. In such instances, I am trying to make it so that words which use different languages have a translation underneath them, like so but maybe in a smaller font so it is still reabable but does not occupy too much room, unless there is better ways of doing this, because sometimes the sentence may have more than one word that needs/wants a descriptor underneath and while I have looked into Ruby text I don't know enough about it to make the best use of it, I initially thought \n would work, and it does to a degree, but only if the word or phrase needing translation is at the beginning of the sentence and it breaks completely if there is more than 2 points in the sentence that require this method.

Hola Sénor
Hello Sir
 

AllNatural939

I am the bad guy?
Game Developer
Apr 3, 2024
664
806
I don't like to overthink stuff, so I went with the easy choice:

screenshot0011.png

That "T" stands for "Translation". It's not her first line like that — the earlier ones started with "Translation" at the beginning, but after a few lines, once I was sure people would get it, I just shortened it to "T"...

Code:
    scene d1_595_pamelamc with ds
    pam "Puta la wea. Voy a tener que meter a Asami en esto. Me va a matar...\nT: {i}Crap. I'm going to have to bring Asami into this. She's gonna kill me.{/i}"
EDIT: Some context on why I did it. The game’s in English, but she’s a Chilean speaking in Chilean Spanish (which isn’t even traditional Spanish), and suddenly she starts throwing out her usual phrases and swear words... so I had to make sure people could understand her.
 
Last edited:

Kaos_Theory

Member
Apr 18, 2019
383
608
That could work, the lines I'm looking for translations for have a mix of English and Peurto Rican, Russian etc, so I'd have to write out the whole line just for one or 2 words to be translated, which is why I was trying to complicate things by having the translation display like a hover-over or immediately below the word

Example:

Божэ мой!!​
English dialogue​
¿Qué pasa, Jefe?​
(translation)​
English dialogue​
(translation)​

I'm not sure this is possible, but I think I've seen something like it in a Ren'Py game I played a while back. I cannot recall what the game was or how they managed to do it

It's posing quite the conundrum for me at the moment, I can either go back to testing out Ruby text {rt}{rb} or just keep tinkering with text tags/custom tags (once I learn them) or a new say screen property/dialogue box to act as a second input

If I juggle with space and vspace tags with Ruby text, I can get it to line up how I want it, but only if the word needing translating is first in the sentence; otherwise, it comes out misaligned
 

Marcypawn

Member
Mar 16, 2021
106
169
That could work, the lines I'm looking for translations for have a mix of English and Peurto Rican, Russian etc, so I'd have to write out the whole line just for one or 2 words to be translated, which is why I was trying to complicate things by having the translation display like a hover-over or immediately below the word

Example:

Божэ мой!!​
English dialogue​
¿Qué pasa, Jefe?​
(translation)​
English dialogue​
(translation)​

I'm not sure this is possible, but I think I've seen something like it in a Ren'Py game I played a while back. I cannot recall what the game was or how they managed to do it

It's posing quite the conundrum for me at the moment, I can either go back to testing out Ruby text {rt}{rb} or just keep tinkering with text tags/custom tags (once I learn them) or a new say screen property/dialogue box to act as a second input

If I juggle with space and vspace tags with Ruby text, I can get it to line up how I want it, but only if the word needing translating is first in the sentence; otherwise, it comes out misaligned
Should be possible with some coding, but I have not delved too deep into the Renpy engine yet so I need to research a bit before I can give any usable code. The fastest way would be if you somehow found what the game was that did what you wanted, and check their code on how they did it.


Although if you wanted to do a simple solution like AllNatural proposed, but you sometimes have more than one language or not wanting to worry about spacing as much etc. You could maybe color coordinate what is what translation. 1747696707079.png
 
Last edited:

osanaiko

Engaged Member
Modder
Jul 4, 2017
3,011
5,778
This functionality would need pretty hardcore custom display code.

I'd try posting the question, with visual example of what you want to achieve, in the Lemmasoft Renpy coding forum:

Some of those guys who regularly answer stuff are renpy geniuses.