speechmod ![code/datums/components/speechmod.dm 3](git.png)
Used to apply certain speech patterns Can be used on organs, wearables, mutations and mobs
Vars | |
end_string | String added to the end of the message |
---|---|
end_string_chance | Chance for the end string to be applied |
replacements | Assoc list for strings/regexes and their replacements. Should be lowercase, as case will be automatically changed |
should_modify_speech | Any additional checks that we should do before applying the speech modification |
slots | Slot tags in which this item works when equipped |
targeted | Current target for modification |
uppercase | If set to true, turns all text to uppercase |
Var Details
end_string ![code/datums/components/speechmod.dm 8](git.png)
String added to the end of the message
end_string_chance ![code/datums/components/speechmod.dm 10](git.png)
Chance for the end string to be applied
replacements ![code/datums/components/speechmod.dm 6](git.png)
Assoc list for strings/regexes and their replacements. Should be lowercase, as case will be automatically changed
should_modify_speech ![code/datums/components/speechmod.dm 18](git.png)
Any additional checks that we should do before applying the speech modification
slots ![code/datums/components/speechmod.dm 14](git.png)
Slot tags in which this item works when equipped
targeted ![code/datums/components/speechmod.dm 12](git.png)
Current target for modification
uppercase ![code/datums/components/speechmod.dm 16](git.png)
If set to true, turns all text to uppercase