Jump to content

Speech Improvement Mod(Is it possible?)


Recommended Posts

I've been thinking of making a little modification that makes some changes to the standard characters speech quotes. Things such as:

 

-Making Wilson less of a tutorial character

-Fixing lots of punctuation

-Filling in anything that sounds too generic, replacing it with more unique quotes

-Taking care of anything Klei missed(Now much easier now that Seth fixed a lot of the quotes)

 

I'm also wondering if it would be possible to do some other stuff, like adding more battle quotes to charas, and a quote for WX-78 when he's being damaged by rain. And perhaps one for woodie when the full moon draws near.

 

I'm assuming some extra code would be required for the WX-78 rain quote idea and the woodie full moon one, though.

Link to comment
Share on other sites

All modable yes. For reference look in the bunnyman.lua file for its battle quote. It shows you how the game decides from the given table of quotes.  Injecting a new quote for a character that already uses this method wouldnt require any code edits on the characters part, just inserting your new quote into the table.

 

For other entites you would just override their quote selection method

Link to comment
Share on other sites

All modable yes. For reference look in the bunnyman.lua file for its battle quote. It shows you how the game decides from the given table of quotes.  Injecting a new quote for a character that already uses this method wouldnt require any code edits on the characters part, just inserting your new quote into the table.

 

For other entites you would just override their quote selection method

Okay. What about adding announce quotes for WX-78 when rain happens, and for Woodie when a full moon is nearby?

Link to comment
Share on other sites

For WX you can have your mod do a prefabpostinit on him and inject an event listener for the rainstart event msg.  Then inside that just do your quote.  I dont know if there is an event for the full moon or if you would have to detect it some other manner.  Worst case you just listen for the  Dusk event and inside your handler for that you check IF its gonna be a full moon or not then do your thing. So still not difficult

 

-edit-

 

Just a little disclaimer i've only been looking at the code for DontStarve for 2 weeks now and have also been spending time teaching a friend C++.  Also have no previous LUA experience. SO there is likely a ton of methods to do things even easier than i suggest.

Link to comment
Share on other sites

For WX you can have your mod do a prefabpostinit on him and inject an event listener for the rainstart event msg.  Then inside that just do your quote.  I dont know if there is an event for the full moon or if you would have to detect it some other manner.  Worst case you just listen for the  Dusk event and inside your handler for that you check IF its gonna be a full moon or not then do your thing. So still not difficult

 

-edit-

 

Just a little disclaimer i've only been looking at the code for DontStarve for 2 weeks now and have also been spending time teaching a friend C++.  Also have no previous LUA experience. SO there is likely a ton of methods to do things even easier than i suggest.

Right...i'm sure Simplex would probably have a good idea. Maybe I should PM him for advice?

Link to comment
Share on other sites

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.

×
  • Create New...