Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Script:Languages"

From Roll20 Wiki

Jump to: navigation, search
(A comprehensive language script for any campaign)
 
Line 1: Line 1:
 
Introduction:
 
Introduction:
 +
 
This script is a re-work of "WhatSaywithUnknown.js" by derekkoehl which is an enhancement on "What Did He Say?" by Stephen S.
 
This script is 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
  
 
Installation:
 
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.
 
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.
  
 
Source Code:
 
Source Code:
 +
 
https://github.com/anthonytasca/roll20-api-scripts/tree/master/Languages
 
https://github.com/anthonytasca/roll20-api-scripts/tree/master/Languages
  
Line 58: Line 61:
 
Default Languages:
 
Default Languages:
 
Abyssal, Aquan, Auran, Celestial, Draconic, Druidic, Dwarven, Elven, Giant, Gnome, Goblin, Gnoll, Halfling, Ignan, Infernal, Orc, Sylvan, Terran, Thieve'sCant, Undercommon, Unknown
 
Abyssal, Aquan, Auran, Celestial, Draconic, Druidic, Dwarven, Elven, Giant, Gnome, Goblin, Gnoll, Halfling, Ignan, Infernal, Orc, Sylvan, Terran, Thieve'sCant, Undercommon, Unknown
 
Notes:
 
Please post here or message me if you find any bugs or have ideas for features that I can add to this script
 

Revision as of 21:50, 17 December 2015

Introduction:

This script is 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

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.

Source Code:

https://github.com/anthonytasca/roll20-api-scripts/tree/master/Languages

Command 1:

!theLanguage {theText}

Example:

!Draconic hello there dragonborn

Result: - If the player who enters this is speaking as a character that has Draconic, under the languages on their character sheet, they will say "hello there dragonborn" in Draconic. Any player who is currently online and is speaking as a character that also has Draconic on their character sheet will be whispered "hello there dragonborn". Others will be whispered symbols representing the language. - If the player who enters this is speaking as a character that does not have Draconic(under languages on their character sheet), they will "pretend to speak" Draconic. - If the player who enters this is speaking as a player, they will be notified that players cannot speak character languages. - GMs can speak any language with any player or character

Command 2:

!setLanguageTag {attribute name}

Example:

!setLanguageTag playerlanguages

Result: - If the player who enters this is a GM and playerlanguages is the name of a character sheet attribute in the campaign, the script will use "playerlanguages" when it searches character sheet attributes for player's languages (instead of the default "prolanguages")

Command 3:

!deleteLanguage {language name}

Example:

!deleteLanguage Dwarven

Result: - If the player is a GM, Dwarven will be deleted as a language

Command 4:

!createLanguage {language name} {seed number} {parent language}

Example:

!createLanguage Underdwarven 5 Dwarven

Result: - If the player is a GM, Underdwarven will be created as a seed 5 language of Dwarven

Default Languages: Abyssal, Aquan, Auran, Celestial, Draconic, Druidic, Dwarven, Elven, Giant, Gnome, Goblin, Gnoll, Halfling, Ignan, Infernal, Orc, Sylvan, Terran, Thieve'sCant, Undercommon, Unknown