Not sure why this got closed without a reason.
Each character has a generic quote for failed action, but currently only Wilson's is used:
function GetActionFailString(inst, action, reason)
local character =
type(inst) == "string"
and inst
or (inst ~= nil and inst.prefab or nil)
local specialcharacter =
type(inst) == "table"
and ((inst:HasTag("playerghost") and "ghost") or
(inst:HasTag("mime") and "mime"))
or character
local ret = GetSpecialCharacterString(specialcharacter)
if ret ~= nil then
return ret
end
character = string.upper(character)
return (STRINGS.CHARACTERS[character] ~= nil and getcharacterstring(STRINGS.CHARACTERS[character].ACTIONFAIL, action, reason))
or getcharacterstring(STRINGS.CHARACTERS.GENERIC.ACTIONFAIL, action, reason)
or (STRINGS.CHARACTERS[character] ~= nil and STRINGS.CHARACTERS[character].ACTIONFAIL_GENERIC)
or STRINGS.CHARACTERS.GENERIC.ACTIONFAIL_GENERIC
end
- Fail sweeping with the Clean Sweeper as Wilson
- Fail sweeping with the Clean Sweeper as anyone else
- 3
- 1
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