The patch notes mention the ability to prompt names. However, I can't figure out how it actually works: How do I make a custom message box (or give it some meaningful text, instead of NEWBORN)? And how do I actually retrieve the name from the prompt and use it to rename someone?
Has anyone used this yet or has an idea how it might work?
Has anyone used this yet or has an idea how it might work?
prompt_name = { player = ROOT # What player should get the prompt type = NEWBORN # What message type to use, as defined in messagetypes.txt. This is what defines the text and picture. The text uses the current scopes portrait = e_hre # Optional. What portrait to show on the right. If not defined, the scoped character (if scope is a character) will be used name_list = LOC_KEY # Optional. What name list to use. Can also use "religion" for religious names of the scoped character's religion, or "culture" for cultural names. If not specified, there will be no "randomize name" button (except for characters, that'll use the standard buttons for newborns). The loc key should contain a list of names separated by pipes. E.G., "LOC_KEY;Name|Name2|Name3;;;;;;x". When the name list is specified, a name from the list will be chosen at random, and hitting "randomize name" will cause the name to change to another random name in the list. When using a loc key rather than culture/religion, custom loc is supported, using the current scopes }