Jump to content

Recommended Posts

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

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.require
local STRINGS = GLOBAL.STRINGS
GLOBAL.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.
 
 

 

 

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

 

@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.

Edited by Seiai

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...