Difference between revisions of "Script:Languages"
From Roll20 Wiki
m (→Syntax: corrected syntax boxes) |
|||
(4 intermediate revisions by one user not shown) | |||
Line 9: | Line 9: | ||
A re-work of "WhatSaywithUnknown.js" by derekkoehl which is an enhancement on "What Did He Say?" by Stephen S. | A re-work of "WhatSaywithUnknown.js" by derekkoehl which is an enhancement on "What Did He Say?" by Stephen S. | ||
It gets rid of the character sheet method for picking a language and implements a command line interface. It also includes features for creating languages, deleting languages, and, setting the character sheet language attribute name that the script uses for compatibility with all character sheets | It gets rid of the character sheet method for picking a language and implements a command line interface. It also includes features for creating languages, deleting languages, and, setting the character sheet language attribute name that the script uses for compatibility with all character sheets | ||
+ | |||
+ | Forum post here: https://app.roll20.net/forum/post/2723217/script-languages | ||
'''Installation:''' | '''Installation:''' | ||
Line 16: | Line 18: | ||
=== Syntax === | === Syntax === | ||
− | {{syntaxbox top|Languages | + | {{syntaxbox top|Languages}} |
− | + | ||
{{API command|}}{{API parameter|name=language}} {{API parameter|name=message}} | {{API command|}}{{API parameter|name=language}} {{API parameter|name=message}} | ||
{{syntaxbox end}} | {{syntaxbox end}} | ||
{{param description top}} | {{param description top}} | ||
− | {{param description|name=language|value=The language to speak. See | + | {{param description|name=language|value=The language to speak. See Default Languages below for a full list of options, or create your own language with the command available below.}} |
− | {{param description|name=message|value=The message to send. Players | + | {{param description|name=message|value=The message to send. Players who have the language in their character-sheet will see the message, while everyone else only sees the gibberish.}} |
{{param description bottom}} | {{param description bottom}} | ||
− | {{syntaxbox top|Languages | + | {{syntaxbox top|Languages}} |
− | {{API command| | + | {{API command|setlanguagetag}} {{API parameter|name=attribute}} |
{{syntaxbox end}} | {{syntaxbox end}} | ||
+ | |||
{{param description top}} | {{param description top}} | ||
{{param description|name=attribute|value=The name of the attribute that character sheets in your campaign use for languages}} | {{param description|name=attribute|value=The name of the attribute that character sheets in your campaign use for languages}} | ||
{{param description bottom}} | {{param description bottom}} | ||
− | {{syntaxbox top|Languages | + | {{syntaxbox top|Languages}} |
− | {{API command| | + | {{API command|createlanguage}} {{API parameter|name=languagename}} {{API parameter|name=seednumber}} {{API parameter|name=parentlanguage}} |
{{syntaxbox end}} | {{syntaxbox end}} | ||
+ | |||
{{param description top}} | {{param description top}} | ||
{{param description|name=languagename|value=The name of the language that you wish to create}} | {{param description|name=languagename|value=The name of the language that you wish to create}} | ||
Line 41: | Line 44: | ||
{{param description bottom}} | {{param description bottom}} | ||
− | {{syntaxbox top|Languages | + | {{syntaxbox top|Languages}} |
− | {{API command| | + | {{API command|deletelanguage}} {{API parameter|name=attribute}} |
{{syntaxbox end}} | {{syntaxbox end}} | ||
+ | |||
{{param description top}} | {{param description top}} | ||
{{param description|name=attribute|value=The name of the language you wish to delete}} | {{param description|name=attribute|value=The name of the language you wish to delete}} | ||
Line 51: | Line 55: | ||
The following languages come setup in this script: | The following languages come setup in this script: | ||
− | {{multicol|3| | + | {{multicol|3|* abyssal |
− | * abyssal | + | |
* aquan | * aquan | ||
* auran | * auran | ||
Line 70: | Line 73: | ||
* sylvan | * sylvan | ||
* terran | * terran | ||
+ | * thieves'cant | ||
* undercommon}} | * undercommon}} | ||
=== Changelog === | === Changelog === | ||
{{changelog version|1.1.1|2015-12-17|* Release}} | {{changelog version|1.1.1|2015-12-17|* Release}} |
Revision as of 08:45, 8 September 2016
Version: 1.1.1
Last Modified: 2015-12-17
Code: Languages
Dependencies: None
Conflicts: None
Languages:
A re-work of "WhatSaywithUnknown.js" by derekkoehl which is an enhancement on "What Did He Say?" by Stephen S. It gets rid of the character sheet method for picking a language and implements a command line interface. It also includes features for creating languages, deleting languages, and, setting the character sheet language attribute name that the script uses for compatibility with all character sheets
Forum post here: https://app.roll20.net/forum/post/2723217/script-languages
Installation:
If the character sheets in your campaign do not use "prolanguages" as the attribute name for langauges then you must use the !setLanguageTag command as described below in order to set this script up for your campaign. Users will be notified, in game, if the language attribute is not set up properly.
Syntax
!<language> <message>
Parameter | Values |
---|---|
language | The language to speak. See Default Languages below for a full list of options, or create your own language with the command available below. |
message | The message to send. Players who have the language in their character-sheet will see the message, while everyone else only sees the gibberish. |
!setlanguagetag <attribute>
Parameter | Values |
---|---|
attribute | The name of the attribute that character sheets in your campaign use for languages |
!createlanguage <languagename> <seednumber> <parentlanguage>
Parameter | Values |
---|---|
languagename | The name of the language that you wish to create |
seednumber | A single digit number that represents how related this language is to its parent |
parentlanguage | The name of the parent language that the new language gets it's name from |
!deletelanguage <attribute>
Parameter | Values |
---|---|
attribute | The name of the language you wish to delete |
Default Languages
The following languages come setup in this script:
- abyssal
- aquan
- auran
- celestial
- draconic
- druidic
- dwarven
- elven
- giant
- gnoll
- gnome
- goblin
- halfling
- ignan
- infernal
- orc
- sylvan
- terran
- thieves'cant
- undercommon
Changelog
v1.1.1 (2015-12-17)
- Release