language ![code/modules/language/_language.dm 5](git.png)
Datum based languages. Easily editable and modular.
Vars | |
always_use_default_namelist | If TRUE, when generating names, we will always use the default human namelist, even if we have syllables set. This is to be used for languages with very outlandish syllable lists (like pirates). |
---|---|
default_name_count | By default, random names picks this many names |
default_name_syllable_max | By default, random names picks this many syllables (max) |
default_name_syllable_min | By default, random names picks this many syllables (min) |
default_priority | The language that an atom knows with the highest "default_priority" is selected by default. |
desc | Short description for 'Check Languages'. |
flags | Various language flags. |
icon | Icon displayed in the chat window when speaking this language. if you are seeing someone speak popcorn language, then something is wrong. |
icon_state | Icon state displayed in the chat window when speaking this language. |
key | Character used to speak in language If key is null, then the language isn't real or learnable. |
name | Fluff name of language if any. |
random_name_spacer | What char to place in between randomly generated names |
scramble_cache | Cache of recently scrambled text This allows commonly reused words to not require a full re-scramble every time. |
sentence_chance | Likelihood of making a new sentence after each syllable. |
space_chance | Likelihood of getting a space in the random scramble string |
spans | Spans to apply from this language |
special_characters | List of characters that will randomly be inserted between syllables. |
syllables | Used when scrambling text for a non-speaker. |
Procs | |
default_name | Simple helper for getting a default firstname lastname |
display_icon | Checks whether we should display the language icon to the passed hearer. |
get_icon | Returns the icon to display in the chat window when speaking this language. |
get_random_name | Generates a random name this language would use. |
get_random_unique_name | Generates a random name, and attempts to ensure it is unique (IE, no other mob in the world has it) |
Var Details
always_use_default_namelist ![code/modules/language/_language.dm 32](git.png)
If TRUE, when generating names, we will always use the default human namelist, even if we have syllables set. This is to be used for languages with very outlandish syllable lists (like pirates).
default_name_count ![code/modules/language/_language.dm 40](git.png)
By default, random names picks this many names
default_name_syllable_max ![code/modules/language/_language.dm 44](git.png)
By default, random names picks this many syllables (max)
default_name_syllable_min ![code/modules/language/_language.dm 42](git.png)
By default, random names picks this many syllables (min)
default_priority ![code/modules/language/_language.dm 29](git.png)
The language that an atom knows with the highest "default_priority" is selected by default.
desc ![code/modules/language/_language.dm 9](git.png)
Short description for 'Check Languages'.
flags ![code/modules/language/_language.dm 14](git.png)
Various language flags.
icon ![code/modules/language/_language.dm 35](git.png)
Icon displayed in the chat window when speaking this language. if you are seeing someone speak popcorn language, then something is wrong.
icon_state ![code/modules/language/_language.dm 37](git.png)
Icon state displayed in the chat window when speaking this language.
key ![code/modules/language/_language.dm 12](git.png)
Character used to speak in language If key is null, then the language isn't real or learnable.
name ![code/modules/language/_language.dm 7](git.png)
Fluff name of language if any.
random_name_spacer ![code/modules/language/_language.dm 46](git.png)
What char to place in between randomly generated names
scramble_cache ![code/modules/language/_language.dm 27](git.png)
Cache of recently scrambled text This allows commonly reused words to not require a full re-scramble every time.
sentence_chance ![code/modules/language/_language.dm 20](git.png)
Likelihood of making a new sentence after each syllable.
space_chance ![code/modules/language/_language.dm 22](git.png)
Likelihood of getting a space in the random scramble string
spans ![code/modules/language/_language.dm 24](git.png)
Spans to apply from this language
special_characters ![code/modules/language/_language.dm 18](git.png)
List of characters that will randomly be inserted between syllables.
syllables ![code/modules/language/_language.dm 16](git.png)
Used when scrambling text for a non-speaker.
Proc Details
default_name
Simple helper for getting a default firstname lastname
display_icon
Checks whether we should display the language icon to the passed hearer.
get_icon
Returns the icon to display in the chat window when speaking this language.
get_random_name
Generates a random name this language would use.
- gender: What gender to generate from, if neuter / plural coin flips between male and female
- name_count: How many names to generate in, by default 2, for firstname lastname
- syllable_count: How many syllables to generate in each name, min
- syllable_max: How many syllables to generate in each name, max
- force_use_syllables: If the name should be generated from the syllables list. Only used for subtypes which implement custom name lists. Also requires the language has syllables set.
get_random_unique_name
Generates a random name, and attempts to ensure it is unique (IE, no other mob in the world has it)