Jump to content

Speech Files


Recommended Posts

Heyo! I have been working on a mod for a while now, and my speech files for describing my things have broken. I've been using a system like this:

return{

 

GLOBAL.STRINGS.NAMES.CUSTOMNAME = "Name of custom item", -- followed by

GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.CUSTOMNAME = "Quote for wilson describing this item", -- and it continues for the other characters down this list.

}

With this sort of code, I ended up getting this error:

image.png.7cd82340a0949d338913d3f9446c151f.png

It had worked for a good while, but because I had been put the project on a long pause now this is the only thing that doesn't work anymore. I didn't think this of all things would be broken by the From Beyond updates but then again its programming. Can someone help me to figure out what is wrong with it?

Edited by Dragolantis
More consise and accurate information
Link to comment
Share on other sites

On 11/6/2023 at 10:36 PM, ea092gb2b09 said:

I'm immediately wondering two things:
1. Why is your speech file in the prefabs folder?
2. What are the first 3 lines in your speech.lua file?

1. Because I don't want it all chilling in my modmain and for a while it worked in prefabs.

2.

return{
-- Item Name
GLOBAL.STRINGS.NAMES.ITEMNAME = "Item Name",
 

Follwing this is the lines for each characters description of the item name, then this format repeats for my handful of other mobs/items. Yes, the return{ bracket is closed at the end.

Link to comment
Share on other sites

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
 Share

×
  • Create New...