Skip to content

AQLBabel

BilliAlpha edited this page Jan 16, 2023 · 1 revision

Babel is a language manager, this means that it keeps track of which player can read and speak a specific language.

Players can select the language they are currently speaking in, when they send a chat message in a roleplay channel (not a global channel) it will only be readable by people that can read the language. The others will see a garbled message with the specific alphabet of the language.

Installation

Babel depends on AQLChat. It won't work without it.

Configuration

In order to use languages you first have to declare them.

You can create a new language with the following command:
/babel lang new <id> <alphabet>

This will create a language with the id <id> and the alphabet <alphabet>.
An alphabet is just the list of all the letters used by a language, fox example the english alphabet will be: abcdefghijklmnopqrstuvwxyz

In order to give it a display name, use this command:
/babel lang name <id> <name>

This will set the display name of the language with the given id.

You can also set a description for this language:
/babel lang desc <id> <description>

And you can also change the alphabet if you made a mistake:
/babel lang alphabet <id> <alphabet>

The only parameter that you cannot change is the id

If you want to get rid of a language you can delete it like so:
/babel lang delete <id>

Usage

You can get a list of existing languages with this command:
/babel lang list

And you can get information about a specific language like so:
/babel lang info <id>

This will show the language name and id, as well as it's description and alphabet but will also list all the players that can read and speak it.

By default players do not understand anything else than the common tongue. You can set the level of understanding of players with the set command:
/babel set <player> <language> <level> [<comment>]

In this command, you set the level of <player> in <language> to the understanding level <level> with an optional <comment> to explain it.

The understanding level is a number, it can either be 0, meaning that the players doesn't understand anything, 1 if he can read the language but not speak it and 2 or more he can both read and speak the language.

If not set to a specified level all players are at level 0 for all languages.

You can get information on a player:
/babel info <player>

This will list all known languages by the player (read or spoken) and the currently selected language (the one he is currently speaking in).

Change the selected language with this command:
/babel select <language>

Permissions

TODO

Exceptions

A player (admin) with a permissions to read a language will read any messages without obfuscation. No global message and no technical message are obfuscated.

Clone this wiki locally