Rockou_ Posted June 29, 2019 Share Posted June 29, 2019 (edited) I'm making a mod to change character quotes.. the Battlecry quotes the problem is that there is multiple battlecry quote BATTLECRY = { GENERIC = "quote1", PIG = "quote2", PREY = "quote3", SPIDER = "quote4", SPIDER_WARRIOR = "quote5", DEER = "quote6", }, how can i change all of them to one single quote? Using the speech_character.lua in scripts doesn't work EDIT: using GLOBAL.STRINGS.CHARACTERS.character.BATTLECRY = "quote" doesn't work too Edited June 29, 2019 by Rockou_ Link to comment Share on other sites More sharing options...
Ultroman Posted June 29, 2019 Share Posted June 29, 2019 Since there are several battle cries, you'll just ruin it if you replace it with a single string. I you want to go about it like that, then you need to set it you be a dictionary, like the one you posted in your snippet. Also, GLOBAL.STRINGS.CHARACTERS.character.BATTLECRY should be GLOBAL.STRINGS.CHARACTERS.CHARACTER_PREFAB_NAME.BATTLECRY where you replace CHARACTER_PREFAB_NAME with your character's prefab name. That said, you should not need to do that when you're making a character mod. Most character mods have a line similar to this in their master_postinit: STRINGS.CHARACTERS.GIR = require "speech_gir" It takes the content of your speech file and saves it to the STRINGS.CHARACTERS. Just replace "GIR" and "gir" with your character's prefab name, in the appropriate casing respectively, but "speech_gir" should be named what your speech file is called. Link to comment Share on other sites More sharing options...
AngryBeeQueen Posted June 20, 2022 Share Posted June 20, 2022 On 6/29/2019 at 6:51 PM, Ultroman said: Since there are several battle cries, you'll just ruin it if you replace it with a single string. I you want to go about it like that, then you need to set it you be a dictionary, like the one you posted in your snippet. Also, GLOBAL.STRINGS.CHARACTERS.character.BATTLECRY should be GLOBAL.STRINGS.CHARACTERS.CHARACTER_PREFAB_NAME.BATTLECRY where you replace CHARACTER_PREFAB_NAME with your character's prefab name. That said, you should not need to do that when you're making a character mod. Most character mods have a line similar to this in their master_postinit: STRINGS.CHARACTERS.GIR = require "speech_gir" It takes the content of your speech file and saves it to the STRINGS.CHARACTERS. Just replace "GIR" and "gir" with your character's prefab name, in the appropriate casing respectively, but "speech_gir" should be named what your speech file is called. On 6/29/2019 at 6:27 PM, Rockou_ said: Hey do you know how to change the quote for wx78. Where they say something nearby is scannable? Here is my code rn local require = GLOBAL.require local STRINGS = GLOBAL.STRINGS GLOBAL.STRINGS.CHARACTERS.WX78 = {} GLOBAL.STRINGS.CHARACTERS.WX78.DESCRIBE = {} STRINGS.CHARACTERs.WX78 = require "speech_WX78" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now