Jump to content

Changing text?


Recommended Posts

I'd like to change two words of Webber's text. How?

 

1. Make a mod (duh): folder, modinfo, maybe modmain

2. Make a scripts folder

3. Copy speech_webber from data\scripts and paste it here

4. Edit the words you want to change

5. Watch as your game crashes without error log or anything because you messed up somewhere

6. Fix it

7. Playtest

 

Be aware that this method is incompatible with mods which also change webbers speech like that.

 

I thin you can change the individual lines in modmain.lua though...

 

EDIT: Yes we can: GLOBAL.STRINGS.CHARACTERS.WEBBER.DESCRIBE.PREFAB= "PREFAB is the thing you describe, capitalised."

 

This way, you do not need to override Webbers speech file. Make sure to implement a way the mod autodisables itself or the line of code when RoG is not enabled.

 

EDITEDIT: Yeah, what plaidman said. I made it more obvious.

To autodisable you can use

dont_starve_compatible = false in modinfo.lua

or

if IsDLCEnabled(REIGN_OF_GIANTS) then

[strings here]

end in modmain.lua

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