Ghost_starved Posted June 11, 2021 Share Posted June 11, 2021 Hello everybody ! I have a question about modding I have my character, and there is a character from another mod, how should I make my character inspect a character from another mod to say something unique? Link to comment https://forums.kleientertainment.com/forums/topic/130751-description/ Share on other sites More sharing options...
DecDuck Posted June 12, 2021 Share Posted June 12, 2021 STRINGS.CHARACTERS.FIRSTCHARACTER.ACTIONFAIL.DESCRIBE.SECONDCHARACTER = { GENERIC = "Hello, %s!", ATTACKER = "Grrr... don't trust %s.", MURDERER = "G...glorp... %s a killer!!", REVIVER = "Didn't need help! ...But thanks, florp.", GHOST = "You look spooky, %s.", FIRESTARTER = "You gonna burn everything up, %s!!", } I think it's this, but I haven't tested it. (btw the example is from Wurt's speech file) 1 Link to comment https://forums.kleientertainment.com/forums/topic/130751-description/#findComment-1468168 Share on other sites More sharing options...
Ghost_starved Posted June 12, 2021 Author Share Posted June 12, 2021 does not work :с Link to comment https://forums.kleientertainment.com/forums/topic/130751-description/#findComment-1468244 Share on other sites More sharing options...
DecDuck Posted April 30, 2022 Share Posted April 30, 2022 If you put this code in modmain.lua, you need to replace STRINGS with GLOBAL.STRINGS Link to comment https://forums.kleientertainment.com/forums/topic/130751-description/#findComment-1565452 Share on other sites More sharing options...
Garamonde Posted April 30, 2022 Share Posted April 30, 2022 @Ghost_starved Here's a working example straight from one of my own mod characters (K_K)' speech lua file. That is where it typically should go. PLAYER = { GENERIC = "Hey, %s!", ATTACKER = "What are you doing, %s?!", MURDERER = "Wh-Why are you doing this...?", REVIVER = "%s! You just saved my life! Thank you!", GHOST = "Don't worry, %s! I'll save you!", FIRESTARTER = "You shouldn't play with fire, %s! Even I know that!", }, KK = { GENERIC = "*Gasp* It's me! Hello, me!", ATTACKER = "M-Maybe I'm still following Sweet's direction...?", MURDERER = "I've gone way too far!! Stop it, %s!!", REVIVER = "Thank you, me! ...Um, thank me?", GHOST = "Oh gosh, what'd I get myself into to end up like that?", FIRESTARTER = "I don't think that was a very \"me\" thing to do.", }, "PLAYER" is the generic set of responses that your character will have for ANY character not specified in your speech file. Place the code for any custom character responses here, immediately below the "PLAYER" responses like I have. As you can see, K_K has generic responses, and he also is examining a player playing as himself right below that. If you like, copy this code (at least down from the "KK" portion) and replace all that with your own stuff. "KK" being the prefab name of who you're inspecting (so basically the character's name in the actual files). Hope that helps and good luck! ...Just realized after writing this all up that this is an old post from last year. I hope OP sees this, lol. Link to comment https://forums.kleientertainment.com/forums/topic/130751-description/#findComment-1565611 Share on other sites More sharing options...
DecDuck Posted May 1, 2022 Share Posted May 1, 2022 The original author just reacted to my post, so that's why I commented on the thread. Probably will see it and your answer is so much better than mine! 1 Link to comment https://forums.kleientertainment.com/forums/topic/130751-description/#findComment-1565781 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