smashly Posted December 4, 2014 Share Posted December 4, 2014 Hi,I have a mod I updated and I'm now adding translation support for the mcm side of things.The problem I have is when I want to add some text to a translation string it fails.Example:In my translation file: $Evict EvictIn my MCM script: sClear[0] = "$Evict" + " " + (idx + 1) + " " + (nthAlias.GetActorRef().GetLeveledActorBase().GetName() As String)I was hoping it would produce: Evict # NameBut instead it produces: $Evict # NameObviously this is because the translation is looking for "$Evict # Name" and not "$Evict".So how do I get the $Evict string value so I can expand on it.Is there a expand variable flag or something along the lines. In most cases I can work around it, but surely I'm just missing a simple flag to expand the string variable before appending text to the end of it. Any input is welcome. Link to comment Share on other sites More sharing options...
IsharaMeradin Posted December 4, 2014 Share Posted December 4, 2014 Enclose the extra part inside {} Example from a mod I'm working on. Defined in the translation file as... $Ammo{} {} Called in the MCM script as... ArrowOrder[Z] = "$Ammo{"+EntryName+"}" The output in my case is the value that is assigned during run time to the string EntryName. You might need to play with it a bit to have the string that you want. Link to comment Share on other sites More sharing options...
smashly Posted December 4, 2014 Author Share Posted December 4, 2014 Thank You so much.That's exactly what I was looking for.I tried searching skse, CK wiki, papyrus and skyUi and I didn't see any mention of it. All the best and thank you once again Link to comment Share on other sites More sharing options...
Recommended Posts