/tg/ Station 13 - Modules - TypesVar Details - Proc Details

languages

Middleware to handle languages

Vars

name_to_languageA associative list of language names to their typepath

Procs

forget_speak_languageProc that takes away speaking capabilities of a language from a character.
forget_understand_languageProc that takes away speaking and understanding capabilities of a language from a character.
initialize_name_to_language(Re-)Initializes the name_to_language associative list, to ensure that it's properly populated.
speak_languageProc that gives understanding and speaking capabilities of a language to a character, granted that they don't already have too many of them, based on their maximum amount of languages.
understand_languageProc that gives understanding capabilities only of a language to a character, granted that they don't already have too many of them, based on their maximum amount of languages.

Var Details

name_to_language

A associative list of language names to their typepath

Proc Details

forget_speak_language

Proc that takes away speaking capabilities of a language from a character.

Returns TRUE all the time, to ensure that the UI is updated.

forget_understand_language

Proc that takes away speaking and understanding capabilities of a language from a character.

Returns TRUE all the time, to ensure that the UI is updated.

initialize_name_to_language

(Re-)Initializes the name_to_language associative list, to ensure that it's properly populated.

speak_language

Proc that gives understanding and speaking capabilities of a language to a character, granted that they don't already have too many of them, based on their maximum amount of languages.

Returns TRUE all the time, to ensure that the UI is updated.

understand_language

Proc that gives understanding capabilities only of a language to a character, granted that they don't already have too many of them, based on their maximum amount of languages.

Returns TRUE all the time, to ensure that the UI is updated.