Difference between revisions of "Script:Language Script"
From Roll20 Wiki
(→Changelog) |
m |
||
Line 5: | Line 5: | ||
|lastmodified=2014-09-11}} | |lastmodified=2014-09-11}} | ||
− | + | '''Language Script''' allows users to convert things they type into gibberish for characters who don't speak the language the player is speaking as. Language sheets are created automatically, allowing players to set their Speaking As dropdown to the desired language in order to speak it. | |
[[Script:What Did He Say|What Did He Say?]] expands on version 1 of this script. There is significant difference between the usage of the two scripts, enough to list them separately. | [[Script:What Did He Say|What Did He Say?]] expands on version 1 of this script. There is significant difference between the usage of the two scripts, enough to list them separately. |
Revision as of 17:52, 13 January 2015
Version: 2.0
Last Modified: 2014-09-11
Code: Language Script
Dependencies: None
Conflicts: None
Language Script allows users to convert things they type into gibberish for characters who don't speak the language the player is speaking as. Language sheets are created automatically, allowing players to set their Speaking As dropdown to the desired language in order to speak it.
What Did He Say? expands on version 1 of this script. There is significant difference between the usage of the two scripts, enough to list them separately.
Syntax
Select a language to speak as, and type a message into chat starting with !
. Players with a character that speaks the selected language will receive the actual message, while other players will receive garbage.
Installation
Available languages are defined near the top of the script. Each language is a JavaScript object in the format:
{ Description: "Elvish", Sheet: "Language(Elvish)", languageSeed: 4, characters: "Elvish" }
- Description: A description of the language, to use in a sentence. For example, "Legolas is speaking Elvish."
- Sheet: The name of the character to associate with the language. The character will be created if it does not already exist.
- CRITICAL: Assign control of this character to all players able to speak it!
- languageSeed: A number to assist int gibberish generation.
- characters: A key to use for distinguishing languages from one another when generating gibberish. This will allow you to generate different gibberish for different languages.
For each unique value of characters
, you should create an array of numbers
, symbols
, lower
-case consonants, upper
-case consonants, and vowel
s.
Finally, the value of languageAvatar
will be used to set the avatar of the language characters. If you want to change the image, you may only use a URL from your Roll20 image library.
Changelog
v2.0 (2014-09-11)
- Release