Wisteria Posted July 15, 2014 Share Posted July 15, 2014 Does anyone have any idea how to modify the headstone/epitaph dialogue for individual characters? In particular, a new character mod?I saw this floating around on the forums in another thread: Posted 22 November 2013 - 01:08 PMsimplex, on 21 Nov 2013 - 6:28 PM, said:^Among several other issues: missing commas, STRINGS.EPITAPHS as table keys, assigning to a function call (which is setting the description to a random number)...Try ? local function ModEpitaphs(inst) if GLOBAL.GetPlayer().prefab == "warmond" then inst.components.inspectable:SetDescription({ [[Ehhhhhhhhhhhhhh.]], [[Eeeeeeeeeeeer.]], [[Rattle.]], [[Click click click click]], }) end end AddPrefabPostInit("gravestone", ModEpitaphs) Well that just freezes the game in place after clicking on a gravestone (headstone). TheDanaAddams, on 21 Nov 2013 - 09:55 AM, said:Wilson's lines are treated as "default" - if you don't have a character-specific description, it will use Wilson's. Oh right. Sorry. I meant to ask how I do change the epitaphs. Since every character will say one of the 4 epitaphs which are. "Here lies some guy. Blah blah blah." "This headstone is blank" "It says: 'Milk. Eggs. Bacon.'" "Hey that's my name!"See now I couldn't find the file that actually HAS these lines and the gravestone.lua file says only that these epitaphs are used randomly. But I'll look at Wilsons speech file I guess. Nevermind. I think I might have found it. I keep forgetting to look at strings.lua Inserting this would work right??STRINGS.EPITAPHS[1] = [[Here lies some guy. Blah blah blah.]]STRINGS.EPITAPHS[2] = [[This <span class="searchlite">headstone</span> is blank]]STRINGS.EPITAPHS[3] = [[it says: 'Milk. Eggs. Bacon.']]STRINGS.EPITAPHS[4] = [[Hey that's my name!]]I've tried using that as a base of sorts and after digging through the strings.lua file, I've tried placing these attempts in the speech_character.lua to make it work: EPITAPHS = { "Here lies some guy. Blah blah blah.", "This headstone is blank", "It says: 'Milk. Eggs. Bacon.'", "Hey that's my name!", },Epitaphs_1 = "Here lies some guy. Blah blah blah.",Epitaphs_2 = "This headstone is blank.",Epitaphs_3 = "It says 'Milk. Eggs. Bacon.'",Epitaphs_4 = "Hey, that's my name!",Looking around otherwise didn't find me any information. :c Evidently I need to define it specifically for my mod character? How would I do that? Link to comment https://forums.kleientertainment.com/forums/topic/38596-custom-headstoneepitaph-dialogue/ Share on other sites More sharing options...
Mobbstar Posted July 15, 2014 Share Posted July 15, 2014 Maybe you can overwrite the table after an if-clause/function (seriously don't know how those are called, never read a single book). That's just an idea, and most likely it won't work because it'd be already loaded. How does WX-78 deal with that? Link to comment https://forums.kleientertainment.com/forums/topic/38596-custom-headstoneepitaph-dialogue/#findComment-511104 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