Fuffles Posted January 24, 2018 Share Posted January 24, 2018 (edited) How does one exactly use this? I know it must return a string, but I really want to add my own and so far it doesnt really work... Quote Somewhere in the prefab local function GetVerb() return STRINGS.ACTIONS_SOTA.CLEAN_UP end local function fn() [...other code...] inst.GetActivateVerb = GetVerb [...other code...] endSomewhere in modmain GLOBAL.STRINGS.ACTIONS_SOTA = { CLEAN_UP = "Clean up" } And it still just shows "Activate" instead of "Clean up" Edited January 24, 2018 by FuffledBeeQueen Link to comment https://forums.kleientertainment.com/forums/topic/86722-instgetactivateverb/ Share on other sites More sharing options...
CarlZalph Posted January 24, 2018 Share Posted January 24, 2018 @FuffledBeeQueen GetActivateVerb returns an all-caps string to be used in GetActionString. You'll want to use: GLOBAL.STRINGS.ACTIONS.ACTIVATE.CLEANUP = "Clean up" And GetActivateVerb would be a function that returns the string "CLEANUP". Link to comment https://forums.kleientertainment.com/forums/topic/86722-instgetactivateverb/#findComment-995411 Share on other sites More sharing options...
Fuffles Posted January 25, 2018 Author Share Posted January 25, 2018 22 hours ago, CarlZalph said: @FuffledBeeQueen GetActivateVerb returns an all-caps string to be used in GetActionString. You'll want to use: GLOBAL.STRINGS.ACTIONS.ACTIVATE.CLEANUP = "Clean up" And GetActivateVerb would be a function that returns the string "CLEANUP". Thank you for the desc. Link to comment https://forums.kleientertainment.com/forums/topic/86722-instgetactivateverb/#findComment-995714 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