language_holder 
Vars | |
best_mutual_languages | Cached form of the mutual language list which only contains the best understanding available to each language |
---|---|
blocked_languages | Lazyassoclist of blocked languages. Used to prevent understanding and speaking certain languages, ie for certain mobs, mutations etc. |
language_menu | Handles displaying the language menu UI. |
mutual_understanding | Lazyassoclist of all mutual understanding this holder has You generally don't want to access this, you want [best_mutual_languages] instead Format: list(language_type = list(source = % of understanding)) |
omnitongue | If true, overrides tongue aforementioned limitations. |
owner | Tracks the entity that owns the holder. |
selected_language | Currently spoken language |
spoken_languages | Lazyassoclist of languages that can be spoken. Tongue organ may also set limits beyond this list. |
understood_languages | Lazyassoclist of all understood languages |
Procs | |
New | Initializes, and copies in the languages from the current atom if available. |
add_blocked_language | Adds a single language or list of languages to the blocked language list. |
calculate_best_mutual_language | Calculates the "best mutual language list" |
can_speak_language | Checks if you can speak the language. Tongue limitations should be supplied as an argument. |
copy_languages | Copies all languages from the supplied atom/language holder. Source should be overridden when you do not want the language overwritten by later atom updates or want to avoid blocked languages. |
gain_partial_understanding_from_language | Helper to get all the partial understanding from the passed language Does effectively nothing if given a language already understood |
get_random_spoken_language | Gets a random spoken language, useful for forced speech and such. |
get_random_spoken_uncommon_language | Gets a random spoken language, trying to get a non-common language. |
get_random_understood_language | Gets a random understood language, useful for hallucinations and such. |
get_selected_language | Returns selected language if it can be spoken, or decides, sets and returns a new selected language if possible. |
grant_all_languages | Grants every language to understood and spoken, and gives omnitongue. |
grant_language | Grants the supplied language. |
grant_partial_language | Grants partial understanding of the passed language. Giving 100 understanding is basically equivalent to knowning the language, just with butchered punctuation. |
has_language | Checks if you have the language passed. |
lose_partial_understanding_from_language | Helper to remove all the partial understanding from the passed language |
open_language_menu | Opens a language menu reading from the language holder. |
remove_all_languages | Removes every language and optionally sets omnitongue false. If a non default source is supplied, only removes that source. |
remove_all_partial_languages | Removes all partial understandings of all languages. |
remove_blocked_language | Removes a single language or list of languages from the blocked language list. |
remove_language | Removes a single language or source, removing all sources returns the pre-removal state of the language. |
remove_partial_language | Removes partial understanding of the passed language. |
transfer_mind_languages | Transfers all mind languages to the supplied language holder. |
Var Details
best_mutual_languages 
Cached form of the mutual language list which only contains the best understanding available to each language
blocked_languages 
Lazyassoclist of blocked languages. Used to prevent understanding and speaking certain languages, ie for certain mobs, mutations etc.
language_menu 
Handles displaying the language menu UI.
mutual_understanding 
Lazyassoclist of all mutual understanding this holder has You generally don't want to access this, you want [best_mutual_languages] instead Format: list(language_type = list(source = % of understanding))
omnitongue 
If true, overrides tongue aforementioned limitations.
owner 
Tracks the entity that owns the holder.
selected_language 
Currently spoken language
spoken_languages 
Lazyassoclist of languages that can be spoken. Tongue organ may also set limits beyond this list.
understood_languages 
Lazyassoclist of all understood languages
Proc Details
New
Initializes, and copies in the languages from the current atom if available.
add_blocked_language
Adds a single language or list of languages to the blocked language list.
calculate_best_mutual_language
Calculates the "best mutual language list"
can_speak_language
Checks if you can speak the language. Tongue limitations should be supplied as an argument.
copy_languages
Copies all languages from the supplied atom/language holder. Source should be overridden when you do not want the language overwritten by later atom updates or want to avoid blocked languages.
gain_partial_understanding_from_language
Helper to get all the partial understanding from the passed language Does effectively nothing if given a language already understood
get_random_spoken_language
Gets a random spoken language, useful for forced speech and such.
get_random_spoken_uncommon_language
Gets a random spoken language, trying to get a non-common language.
get_random_understood_language
Gets a random understood language, useful for hallucinations and such.
get_selected_language
Returns selected language if it can be spoken, or decides, sets and returns a new selected language if possible.
grant_all_languages
Grants every language to understood and spoken, and gives omnitongue.
grant_language
Grants the supplied language.
grant_partial_language
Grants partial understanding of the passed language. Giving 100 understanding is basically equivalent to knowning the language, just with butchered punctuation.
has_language
Checks if you have the language passed.
lose_partial_understanding_from_language
Helper to remove all the partial understanding from the passed language
open_language_menu
Opens a language menu reading from the language holder.
remove_all_languages
Removes every language and optionally sets omnitongue false. If a non default source is supplied, only removes that source.
remove_all_partial_languages
Removes all partial understandings of all languages.
remove_blocked_language
Removes a single language or list of languages from the blocked language list.
remove_language
Removes a single language or source, removing all sources returns the pre-removal state of the language.
remove_partial_language
Removes partial understanding of the passed language.
transfer_mind_languages
Transfers all mind languages to the supplied language holder.