joemann Posted January 4, 2018 Share Posted January 4, 2018 I am having trouble in a narrative event to find the right scope to use in the localization file. I am trying to get the text to say that my slave <Marian> whom I have identified as [FromFromFrom.Get FirstName], which works in game, belonged to her spouse Mohammed. [FromFromFromSpouse.GetFirstName] is one of the things I tried that does not work. Does anybody have the solution to get the spouses name to show-up? Link to comment
veedanya Posted January 4, 2018 Share Posted January 4, 2018 2 hours ago, joemann said: I am having trouble in a narrative event to find the right scope to use in the localization file. I am trying to get the text to say that my slave <Marian> whom I have identified as [FromFromFrom.Get FirstName], which works in game, belonged to her spouse Mohammed. [FromFromFromSpouse.GetFirstName] is one of the things I tried that does not work. Does anybody have the solution to get the spouses name to show-up? Maybe you're merging scopes incorrectly? (I'm only somewhat familiar with advanced scope use, so I may be wrong). Different scopes should be separated by a period. "From" and "FromFrom" are both valid scopes. However, I don't see "FromFromFrom" listed as a valid scope, so it may break the event. Likewise, "Spouse" and "From" are definitely distinct scopes, so should be separated by a period. Link to comment
ngppgn Posted January 4, 2018 Share Posted January 4, 2018 2 hours ago, joemann said: I am having trouble in a narrative event to find the right scope to use in the localization file. I am trying to get the text to say that my slave <Marian> whom I have identified as [FromFromFrom.Get FirstName], which works in game, belonged to her spouse Mohammed. [FromFromFromSpouse.GetFirstName] is one of the things I tried that does not work. Does anybody have the solution to get the spouses name to show-up? If anything, it'd be [FromFromFrom.Spouse.GetFirstName]. If that doesn't work (meaning there's no spouse scope change for localisation, then in the immediate clause of the event do FROMFROMFROM = { spouse = { save_event_target_as = mytarget } } and in the localisation use [mytarget.GetFirstName]. (you can obviously replace "mytarget" by whatever you want Link to comment
joemann Posted January 4, 2018 Author Share Posted January 4, 2018 Your first solution worked. Learned something again. Thanks! Link to comment
joemann Posted January 13, 2018 Author Share Posted January 13, 2018 I'm trying your second option now. In case the character has no Spouse I would like to have the Liege as an alternative. Would this code work? FromFromFrom = { if = { limit = {spouse_even_if_dead } else_if = { limit = {liege } } = {save_event_target_as = mytarget }} If yes, where do I insert this code (is it a definition?) in the event description? I do not have an immediate clause in my event. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.