languages 
Middleware to handle languages
Vars | |
| name_to_language | A associative list of language names to their typepath |
|---|---|
Procs | |
| give_language | Proc that gives a language to a character, granted that they don't already have too many of them, based on their maximum amount of languages. |
| initialize_name_to_language | (Re-)Initializes the name_to_language associative list, to ensure that it's properly populated. |
| remove_language | Proc that removes a language from a character. |
Var Details
name_to_language 
A associative list of language names to their typepath
Proc Details
give_language
Proc that gives a language to a character, granted that they don't already have too many of them, based on their maximum amount of languages.
Arguments:
- params - List of parameters, given to us by the
act()method from TGUI. Needs to contain a value under"language_name".
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.
remove_language
Proc that removes a language from a character.
Arguments:
- params - List of parameters, given to us by the
act()method from TGUI. Needs to contain a value under"language_name".
Returns TRUE all the time, to ensure that the UI is updated.