Skip to content

Commit

Permalink
Adds a few more translations in room2 and fixes global existence test
Browse files Browse the repository at this point in the history
  • Loading branch information
StraToN committed Aug 13, 2024
1 parent dbc54f4 commit dbda9dc
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 28 deletions.
17 changes: 11 additions & 6 deletions addons/escoria-core/game/core-scripts/esc/types/esc_condition.gd
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,17 @@ func run() -> bool:
global_name = "i/%s" % flag

var return_value = false

if self.comparison == COMPARISON_NONE and \
escoria.globals_manager.has(global_name) and \
escoria.globals_manager.get_global(global_name) is bool and \
escoria.globals_manager.get_global(global_name):
return_value = true

if self.comparison == COMPARISON_NONE:
if escoria.globals_manager.has(global_name):
return_value = true
if escoria.globals_manager.get_global(global_name) is bool:
return_value = escoria.globals_manager.get_global(global_name)
else:
return_value = false
elif self.comparison == COMPARISON_NONE and \
escoria.globals_manager.has(global_name):
return_value = true
elif self.comparison == COMPARISON_EQ and \
escoria.globals_manager.get_global(global_name) == \
self.comparison_value:
Expand Down
38 changes: 19 additions & 19 deletions game/rooms/room02/esc/button.esc
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
:look
> [! r2_look_dialog_advance]
say player "That button must activate the bridge."
> [!r2_look_dialog_advance]
say player ROOM2_look_button_1:"That button must activate the bridge."
set_global r2_look_dialog_advance 1
stop
> [eq r2_look_dialog_advance 1]
say player "I already said that this button must activate the bridge."
say player ROOM2_look_button_2:"I already said that this button must activate the bridge."
set_global r2_look_dialog_advance 2
stop
> [eq r2_look_dialog_advance 2]
set_angle player 180
say player "Listen closely."
say player "This"
say player "button"
say player "must"
say player "activate"
say player "the bridge."
say player ROOM2_look_button_3a:"Listen closely."
say player ROOM2_look_button_3b:"This"
say player ROOM2_look_button_3c:"button"
say player ROOM2_look_button_3d:"must"
say player ROOM2_look_button_3e:"activate"
say player ROOM2_look_button_3f:"the bridge."
set_global r2_look_dialog_advance 3
stop
> [eq r2_look_dialog_advance 3]
say player "I give up."
say player "<sob>"
say player ROOM2_look_button_4a:"I give up."
say player ROOM2_look_button_4b:"<sob>"
stop


:push
say player "I must USE this."
say r2_button "Bzzt, indeed."
say player "AH! A talking button."
say r2_button "I am not a button, I am a mighty AI."
say player "What?"
say r2_button "I am intelligent, like you."
say r2_button "Or, like you think you are, apparently..."
say player "Hey!"
say player ROOM2_push_button_1:"I must USE this."
say r2_button ROOM2_push_button_2:"Bzzt, indeed."
say player ROOM2_push_button_3:"AH! A talking button."
say r2_button ROOM2_push_button_4:"I am not a button, I am a mighty AI."
say player ROOM2_push_button_5:"What?"
say r2_button ROOM2_push_button_6:"I am intelligent, like you."
say r2_button ROOM2_push_button_7:"Or, like you think you are, apparently..."
say player ROOM2_push_button_8:"Hey!"

:use
> [r2_bridge_closed]
Expand Down
26 changes: 23 additions & 3 deletions game/translations/game.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
keys,en,fr,de,es
ROOM1_look_wall_item_1,"I don't know what that stuff is.","Je ne sais pas ce que c'est.","Ich habe keine Ahnung, was das ist.","No sé que esta cosa."
ROOM1_look_wall_item_2,"I REALLY don't know what that stuff is.","Je ne sais VRAIMENT pas ce que c'est.","Ich habe WIRKLICH keine Ahnung, was das ist!","REALMENTE no se que es esta cosa."
ROOM1_look_wall_item_1,I don't know what that stuff is.,Je ne sais pas ce que c'est.,"Ich habe keine Ahnung, was das ist.",No sé que esta cosa.
ROOM1_look_wall_item_2,I REALLY don't know what that stuff is.,Je ne sais VRAIMENT pas ce que c'est.,"Ich habe WIRKLICH keine Ahnung, was das ist!",REALMENTE no se que es esta cosa.
ROOM1_look_wall_item_3,"No, SERIOUSLY, I have no idea what that is!","Non, SÉRIEUSEMENT, je n'ai aucune idée de ce que c'est !","IM ERNST! Ich habe keine Ahnung, was das ist!","No, EN SERIO, no tengo ni idea de lo que es!"
ROOM1_look_wall_item_4,"Please stop asking me that!","Arrêtez de me demander !","Bite hör' auf, mich danach zu fragen!","Porfa deja de preguntármelo!"
ROOM1_look_wall_item_4,Please stop asking me that!,Arrêtez de me demander !,"Bite hör' auf, mich danach zu fragen!",Porfa deja de preguntármelo!
ROOM2_look_button_1,That button must activate the bridge.,Ce bouton doit activer le pont.,Diese Schaltfläche soll die Brücke aktivieren.,Este botón debe activar el puente.
ROOM2_look_button_2,I already said that this button must activate the bridge.,J’ai déjà dit que ce bouton devait activer le pont.,"Ich habe bereits gesagt, dass dieser Knopf die Brücke aktivieren soll.",Ya he dicho que este botón debe activar el puente.
ROOM2_look_button_3a,Listen closely.,Écoutez attentivement.,Hören Sie genau zu.,Escuchen con atención.
ROOM2_look_button_3b,This,Ce,Diese,Este
ROOM2_look_button_3c,button,bouton,Schaltfläche,botón
ROOM2_look_button_3d,must,doit,muss,debe
ROOM2_look_button_3e,activate,activer,die Brücke,activar
ROOM2_look_button_3f,the bridge.,le pont.,aktiviert werden.,el puente.
ROOM2_look_button_4a,I give up.,J’abandonne.,Ich gebe auf.,Me rindo.
ROOM2_look_button_4b,<sob>,<sanglot>,<Schluchzen>,<sollozo>
ROOM2_push_button_1,I must USE this.,Je dois UTILISER ceci.,Ich muss dies BENUTZEN.,Tengo que USAR esto.
ROOM2_push_button_2,"Bzzt, indeed.","Bzzt, en effet.","Bzzt, in der Tat.","Bzzt, en efecto."
ROOM2_push_button_3,AH! A talking button.,AH ! Un bouton qui parle.,"AH! Ein Knopf, der spricht.",¡AH! Un botón que habla.
ROOM2_push_button_4,"I am not a button, I am a mighty AI.","Je ne suis pas un bouton, je suis une puissante IA.","Ich bin kein Knopf, ich bin eine mächtige KI.","No soy un botón, soy una poderosa IA."
ROOM2_push_button_5,What?,Quoi ?,Was ist das?,¿Qué es?
ROOM2_push_button_6,"I am intelligent, like you.","Je suis intelligent, comme toi.","Ich bin intelligent, genau wie du.","Soy inteligente, como tú."
ROOM2_push_button_7,"Or, like you think you are, apparently...","Ou plutôt, comme tu crois l’être toi-même, apparemment…","Oder besser gesagt, wie du anscheinend glaubst, selbst intelligent zu sein...","O más bien, como tú crees que eres, aparentemente..."
ROOM2_push_button_8,Hey!,Hé !,Hey!,¡Oye!
ROOM6_dialog_1,What are you doing here?,Que faites-vous ici ?,Was machst Du hier?,¿Qué haces aquí?
ROOM6_dialog_2,I'm selling these fine leather jackets.,Je vends ces superbes blousons en cuir.,Ich verkaufe diese schicken Lederjacken.,Vendiendo estas increíbles chaquetas de cuero.
ROOM6_dialog_bye,,,,

0 comments on commit dbda9dc

Please sign in to comment.