Jump to content

Recommended Posts

Alright, so I got the mod working. Tex files are all in place and my other scripts are working just dandy. Otherwise, going perfectly.

 

But there's a little problem: I can't get custom speech(or examinations) to work.

 

I wrote some lines and put them in charactername/scripts/ directly (as speech_charactername.lua) and put this line of code in /prefabs/charactername.lua:

 

STRINGS.CHARACTERS.charactername= require "speech_charactername"

 

That didn't work. Only Wilson's lines popped up when I examined stuff.

 

Then I tried making an extra folder, namely scripts/speech, then put this into modmain.lua:

 

modimport "scripts/speech/speech_charactername.lua"

 

Didn't work either.

 

I'll provide a log file if it's needed, but I don't know if it'll help in this situation since the mod itself seems to be running just fine. Does anybody know what I need to do?

Firstly, I assume that charactername is also your mod folder's name?

 

Did you capitalize? The correct form would be:

STRINGS.CHARACTERS.CHARACTERNAME = require "speech_charactername"

Also, did you copy 'speech_wilson' (or another speech file) to create your speech file? It needs to return a very specific structure of table.

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