Vexykoala Posted March 11, 2015 Share Posted March 11, 2015 Hello! I am new to modding Don't Starve, and I was wondering how I would be able to Edit what my character will say when interacting with things, for example, Interacting with a stump, they'd say something like "It took so long to grow too..." Any help is appreciated! ~VexyKoala Link to comment Share on other sites More sharing options...
kurioshopp Posted March 11, 2015 Share Posted March 11, 2015 In your mod character's folder: Take this file speech_wilson.lua and put it in your scripts folder.Then go to your modmain.lua file in the program you use for editing these files (I use Notepad++)and insert this stuff in a space of its own.If any of these lines already exist as they are, don't add those. local require = GLOBAL.requirelocal STRINGS = GLOBAL.STRINGSGLOBAL.STRINGS.CHARACTERS.WILSON = {}GLOBAL.STRINGS.CHARACTERS.WILSON.DESCRIBE = {}STRINGS.CHARACTERS.WILSON = require "speech_wilson" Change WILSON to the name of your character in all uppercase letters.Change wilson to the name of your character in all lowercase letters. Then rename the file you put into your scripts folder to speech_charactername.lua Put the name of your character in all lowercase letters (no spaces) in place of charactername . Now your character should say what Wilson says for things. Time to fix that.Edit the speech_charactername.lua.Change everything to what you want your character to say.For example: ANNOUNCE_WORMHOLE = "That was not a sane thing to do.",ANNOUNCE_CANFIX = "\nI think I can fix this!", In these lines, Wilson announces an event.Replace everything within the parentheses with the line you want your character to use.Notice the special case in the second line.\n is used to put this line in the next line down on your screen.This applies to walls, for example.Don't get rid of that \n. An example new line. ANNOUNCE_WORMHOLE = "Why did I go and do a dumb thing like that?", Once you have all your lines, you are good to go. Don't forget to save. Link to comment Share on other sites More sharing options...
suji Posted April 8, 2015 Share Posted April 8, 2015 i'm having a similar problem. except i want my custom text files to be for the reign of giants dlc. i did the same things you said but instead of the regular speech_wilson.lua i took the one from the dlc folder and it will run in game but not all the text is transferring over Link to comment Share on other sites More sharing options...
Silentdarkness1 Posted April 22, 2015 Share Posted April 22, 2015 That's because there's some code-related differences in the dialogue tags! Take a gander at this. http://forums.kleientertainment.com/files/file/507-speech-mod-template/ You're welcome. Please and thank you~ : 3 Link to comment Share on other sites More sharing options...
Seiai Posted April 22, 2015 Share Posted April 22, 2015 @Vexykoala @kurioshopp @suji @Silentdarkness1 i would suggest http://forums.kleientertainment.com/files/file/950-extended-sample-character/ to make a new character, aside from a few other advantages as a startingtemplate, it also already has a custum speechfile setup. Link to comment Share on other sites More sharing options...
Argosa47 Posted May 9, 2015 Share Posted May 9, 2015 I tried all of this as well as a few tuitorials and it's still using wilson's default speech / text. am I missing out on something? I tried putting my custom character "speech" file into the data folder as well and no such luck. Link to comment Share on other sites More sharing options...
Argosa47 Posted May 9, 2015 Share Posted May 9, 2015 I tried all of this as well as a few tuitorials and it's still using wilson's default speech / text. am I missing out on something? I tried putting my custom character "speech" file into the data folder as well and no such luck. actually I think I fixed it somehow it's working now. I deleted from the esctemplate's speech file the top par that said it was Wilson's text file as well as capitalized a few lines of code. I guess if anyone else is having a similar issue they should try that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.