Sinister_Pig Posted May 2, 2023 Share Posted May 2, 2023 I was wondering how to do this because I would like to change the pigman quotes to be more flavorful Link to comment https://forums.kleientertainment.com/forums/topic/147575-how-does-one-change-the-script-files-of-a-pigman/ Share on other sites More sharing options...
Sinister_Pig Posted May 3, 2023 Author Share Posted May 3, 2023 For clarification I am trying to figure out how to change the assets for pigman when they have dialogue, eg: when a pigman says “YOU NOT PIG” I am wondering how to change that. I have looked inside the data folder for don’t starve and found the chatter box node, and I found the place holders for the pig man lines in the pigman brain Lua file but I don’t know how to edit what the pigman says or what the variable string is. Link to comment https://forums.kleientertainment.com/forums/topic/147575-how-does-one-change-the-script-files-of-a-pigman/#findComment-1633286 Share on other sites More sharing options...
bloopah Posted May 3, 2023 Share Posted May 3, 2023 Try asking in the "Mods and Tools" DST subforum, they can help you out. Link to comment https://forums.kleientertainment.com/forums/topic/147575-how-does-one-change-the-script-files-of-a-pigman/#findComment-1633298 Share on other sites More sharing options...
Cheggf Posted May 3, 2023 Share Posted May 3, 2023 Download a mod that changes what they say like where base and look inside Link to comment https://forums.kleientertainment.com/forums/topic/147575-how-does-one-change-the-script-files-of-a-pigman/#findComment-1633312 Share on other sites More sharing options...
GodIess Posted May 3, 2023 Share Posted May 3, 2023 If I understand you correctly, you need the most basic mod template with nothing and a strings file add the following line to the modmain file: local STRINGS = GLOBAL.STRINGS and then the line from the file, if it has many levels, then you need to write all levels: for example, this is how the name of the subject looks: STRINGS.NAMES.SPEAR = "spear" temp.zip Link to comment https://forums.kleientertainment.com/forums/topic/147575-how-does-one-change-the-script-files-of-a-pigman/#findComment-1633323 Share on other sites More sharing options...
Sinister_Pig Posted May 3, 2023 Author Share Posted May 3, 2023 Now I have very little experience with lua, but I assumed that it was all stored somewhere, but I guess not… But what you’re saying is I just need to download the modding template then define the strings? Additionally, where would I find the mod main file. And for example if the string was “PIG_CHATTER_WORK” what would I do then? I would like any ideas for this. Link to comment https://forums.kleientertainment.com/forums/topic/147575-how-does-one-change-the-script-files-of-a-pigman/#findComment-1633330 Share on other sites More sharing options...
GodIess Posted May 4, 2023 Share Posted May 4, 2023 You don't need experience, just a text editor, any. Open common\Don't Starve Together\data\databundles\scripts.zip then strings.lua file Next, I recommend using the search to quickly find the required line and all that remains for you is to follow the path where this phrase lies, for example, I scrolled up and all that remains for you is to follow the path where this phrase lies, for example, I scrolled up that is, my way will be STRINGS.NAMES.DAYWALKER = "New Name " in the archive there is already a small example from me in the modmain file. put the folder from the archive in the mods folder Link to comment https://forums.kleientertainment.com/forums/topic/147575-how-does-one-change-the-script-files-of-a-pigman/#findComment-1633523 Share on other sites More sharing options...
Sinister_Pig Posted May 4, 2023 Author Share Posted May 4, 2023 Thank you for this! Link to comment https://forums.kleientertainment.com/forums/topic/147575-how-does-one-change-the-script-files-of-a-pigman/#findComment-1633555 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.