Well, after asking nyaatrap in private and some experimenting on my own I managed to make it work. I leave the code here in case someone else needs it
For the "two different animations" depending of the language, it was actually quite simple:
Code: Select all
if _preferences.language == "english":
show basado en hechos at Position(xalign=0.34, yalign=0.3)
show reales at Position(xalign=0.6, yalign=0.3)
show story at Position(xalign=0.74, yalign=0.3)
with longdissolve
with Pause(1.0)
hide reales with dissolve
show story at Position(xalign=0.61, yalign=0.3) with MoveTransition(2.0)
show que deberian at Position(xalign=0.5, yalign=0.5)
else:
show basado en hechos at Position(xalign=0.34, yalign=0.3)
show reales at Position(xalign=0.7, yalign=0.3)
with longdissolve
with Pause(1.0)
show reales at Position(xalign=0.7, yalign=0.5) with MoveTransition(3.0)
show que deberian at Position(xalign=0.4, yalign=0.5)
I was using the incorrect term, but doing it like this goes like a charm. The only issue is that if you change language in the middle of the game then it will display the incorrect images, due to them being saved in the cache memory.
Now for the prefix and suffix part, this is how I made it:
Code: Select all
define chico = Character(_('Chico'), ctc="ctce", what_prefix="[comillas]", what_suffix="[comillas2]")
define pianista = Character(_('Pianista'), ctc="ctce", what_prefix="[comillas]", what_suffix="[comillas2]")
label start:
if _preferences.language == "english":
$comillas = "\""
$comillas2 = "\""
else:
$comillas = "«"
$comillas2 = "»"
It works perfectly, but again it has a small issue, and that if you change language in the middle of the game then you need to start again the novel from the beginning or the prefix and suffix won't change. The same happens if you change language then load the game, but for that I managed to fix it adding the same code at the label after_load.
Code: Select all
label after_load:
if _preferences.language == "english":
$comillas = "\""
$comillas2 = "\""
else:
$comillas = "«"
$comillas2 = "»"
label start:
[...]
I guess to fix the small issues I'll just have to disable changing language in-game (that's is something I can deal with), unless I make the game reaload itself everytime the language is changed, but I have no idea how to do that, I tried with stuff like renpy.reload_script() but it just breaks my game and doesn't seem to work (or I have no idea how to use it, that is probably what happens here).
In any case, thank you guys very much for your help, if any of you know how to make the game autoreload after pressing a button I would appreaciate it.