Enderia Posted February 16, 2022 Share Posted February 16, 2022 Back once again. Problem is - character has two forms - Sun and Moon. Each uses different speech files but idk how to code it in. Help? esctemplate.lua Link to comment https://forums.kleientertainment.com/forums/topic/137585-two-speech-files-problem/ Share on other sites More sharing options...
FurryEskimo Posted February 17, 2022 Share Posted February 17, 2022 (edited) @Enderia Hello. I had to learn to do this for Wirra. Feel free to look at my code, -- Custom speech strings if GetModConfigData("language") == 7 then modimport("scripts/speech_wildchild_spanish") --Translated by: Nick-Name else STRINGS.CHARACTERS.WILDCHILD = require "speech_wildchild" end speech_wildchild.lua speech_wildchild_spanish.lua Edited February 17, 2022 by FurryEskimo Link to comment https://forums.kleientertainment.com/forums/topic/137585-two-speech-files-problem/#findComment-1540430 Share on other sites More sharing options...
Enderia Posted February 17, 2022 Author Share Posted February 17, 2022 (edited) 6 hours ago, FurryEskimo said: Hello. I had to learn to do this for Wirra. Feel free to look at my code, Not quite what I was looking for, since Sun and Moon act more like a werewolf character, but after playing around I managed to pin require speech to the transformation code (probably had a typo because it wasnt workin yesterday). Thanks for speaking up tho! [ps. in speech wildchild, line 109 (Polish), I would change "To nie jest dobrze.." to just "Nie jest dobrze...". First one sounds incorrectly, smt like "It's that's not good"] Edited February 17, 2022 by Enderia Link to comment https://forums.kleientertainment.com/forums/topic/137585-two-speech-files-problem/#findComment-1540460 Share on other sites More sharing options...
FurryEskimo Posted February 18, 2022 Share Posted February 18, 2022 @Enderia Haha, thank you for pointing out that error! I did my best to translate all of the text correctly, but I'm always thrilled to have someone more familiar with the language review it for me. And you're welcome. It may not have quite been what you needed, but I'm glad I was able to offer some assistance. By the way, if you speak Polish and would like to review the rest of my Polish translations, that would be a big help! Just tossing the idea out there. Link to comment https://forums.kleientertainment.com/forums/topic/137585-two-speech-files-problem/#findComment-1540606 Share on other sites More sharing options...
Nosidda Posted June 19, 2022 Share Posted June 19, 2022 On 2/16/2022 at 9:02 PM, FurryEskimo said: @Enderia Hello. I had to learn to do this for Wirra. Feel free to look at my code, -- Custom speech strings if GetModConfigData("language") == 7 then modimport("scripts/speech_wildchild_spanish") --Translated by: Nick-Name else STRINGS.CHARACTERS.WILDCHILD = require "speech_wildchild" end speech_wildchild.lua 164.77 kB · 1 download speech_wildchild_spanish.lua 166.21 kB · 1 download I need to do something similar to this but i want to change a singular text file from wx78 the one where they notices something that they have not scanned before. this is what my code looks like rn idk what to do. local require = GLOBAL.require local STRINGS = GLOBAL.STRINGS GLOBAL.STRINGS.CHARACTERS.WX78 = {} GLOBAL.STRINGS.CHARACTERS.WX78.DESCRIBE = {} STRINGS.CHARACTERs.WX78 = require "speech_WX78" This is in modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/137585-two-speech-files-problem/#findComment-1578364 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now