There are different fields for audio and for text language. There is game.SpeechLanguage and game.StandardLanguage. They can have different values, so for example:And how can I add the audio and subtitles seperatley? Because I only saw the action to set the audio und with that the subtitles. For example "output text". There you can add audio and subtitles together.game.StandardLanguage = Languages["english"]game.SpeechLanguage = Languages["german"]
The language can only be changed separately via lua scripting as I did in the example. There is no action part for it.I tried it, but it doesnt work. Do I have to define the languages somehow? If yes, how does it work? Im a noob in programming.
You have to use the names of the languages you created in game info section of the Visionaire Studio editor.Quick note: names are case sensitive.
You have made a typo in the second line. game.StandarfLanguage.How yeah, right. But now I corrected the typo, but nothing happens. Just to show, how I wrote the dialog...maybe theres a mistake:Also one of the lines should be referring to SpeechLanguage.game.StandardLanguage is the global active language for both speech & texts, unless game.SpeechLanguage has a language assigned to it.
Oh yes, so I wanted to set these languages as the "normal" languages if you start the game. Later you should change the language in the options if you want. Im not quite sure how to solve this. I set this as a definition script just to see if it works, i hope this was right. I also translated just one sentence, just to see if it works, like a test. But I think this isnt bad.Should this script be a definition script? Then it will be executed all the time, right? So you can't change the language.I'm not sure what you want to do, but if you want to create options to change language of text and speech seperately then you should execute these lines whenever the specific options button is pressed and according to the selected language.