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:What Did He Say"

From Roll20 Wiki

Jump to: navigation, search
(description)
Line 1: Line 1:
Author: Stephen S. (original version) Roger A.(modified/expanded version using the same interaction style as the original, instead of the new interaction style of Stephen's current language script) <br>
+
{{script overview
 +
|name=What Did He Say?
 +
|author={{user profile|61424|roger A.}}
 +
|version=2.0
 +
|lastmodified=2014-10-11}}
  
==description==
+
Allows users to convert things they type into gibberish for characters who don't speak the language the player is speaking as.
This script allows you to use macros to "speak in other languages". Each language must be assigned a character sheet manually, and control of the sheet given to any players with characters that speak that language. Language names should be the same as the command to speak them without the !.<br>The supported languages and the macros to use them are<br>
+
aboleth= !aboleth ?{message}<br>
+
abyssal= !abyssal ?{message}<br>
+
aklo= !aklo ?{message}<br>
+
aquan= !aquan ?{message}<br>
+
auran= !auran ?{message}<br>
+
boggard= !boggard ?{message}<br>
+
celestial= !celestial ?{message}<br>
+
cyclops= !cyclops ?{message}<br>
+
draconic= !draconic ?{message}<br>
+
drow sign language= !drow ?{message}<br>
+
druidic= !druidic ?{message}<br>
+
dwarven= !dwarven ?{message}<br>
+
elven= !elven?{message}<br>
+
giant= !giant ?{message}<br>
+
gnoll= !gnoll ?{message}<br>
+
gnome= !gnome ?{message}<br>
+
goblin= !goblin ?{message}<br>
+
halfling= !halfling ?{message}<br>
+
ignan= !ignan ?{message}<br>
+
infernal= !infernal ?{message}<br>
+
orc= !orc ?{message}<br>
+
protean= !protean ?{message}<br>
+
sphinx= !sphinx ?{message}<br>
+
sylvan= !sylvan ?{message}<br>
+
tengu= !tengu ?{message}<br>
+
terran= !terran ?{message}<br>
+
treant= !treant ?{message}<br>
+
undercommon= !undercommon ?{message}<br>
+
  
===Code===
+
=== Syntax ===
https://github.com/Rogerdodge/language-script-for-roll20/blob/master/languages.js
+
{{syntaxbox top|What Did He Say?|formal=true}}
 +
{{API command|}}{{API parameter|name=language}} {{API parameter|name=message}}
 +
{{Formal API command|
 +
{{token|S}} {{rarr}} {{API command|}}{{token|language}} {{token|message|-}}
 +
{{token|message}} {{rarr}} {{string|-}}
 +
{{token|language}} {{rarr}} aboleth<br>
 +
{{token|language}} {{rarr}} abyssal<br>
 +
{{token|language}} {{rarr}} aklo<br>
 +
{{token|language}} {{rarr}} aquan<br>
 +
{{token|language}} {{rarr}} auran<br>
 +
{{token|language}} {{rarr}} boggard<br>
 +
{{token|language}} {{rarr}} celestial<br>
 +
{{token|language}} {{rarr}} cyclops<br>
 +
{{token|language}} {{rarr}} draconic<br>
 +
{{token|language}} {{rarr}} drow<br>
 +
{{token|language}} {{rarr}} druidic<br>
 +
{{token|language}} {{rarr}} dwarven<br>
 +
{{token|language}} {{rarr}} elven<br>
 +
{{token|language}} {{rarr}} giant<br>
 +
{{token|language}} {{rarr}} gnoll<br>
 +
{{token|language}} {{rarr}} gnome<br>
 +
{{token|language}} {{rarr}} goblin<br>
 +
{{token|language}} {{rarr}} halfling<br>
 +
{{token|language}} {{rarr}} ignan<br>
 +
{{token|language}} {{rarr}} infernal<br>
 +
{{token|language}} {{rarr}} orc<br>
 +
{{token|language}} {{rarr}} protean<br>
 +
{{token|language}} {{rarr}} sphinx<br>
 +
{{token|language}} {{rarr}} sylvan<br>
 +
{{token|language}} {{rarr}} tengu<br>
 +
{{token|language}} {{rarr}} terran<br>
 +
{{token|language}} {{rarr}} treant<br>
 +
{{token|language}} {{rarr}} undercommon
 +
}}
 +
{{syntaxbox end}}
 +
 
 +
{{param description top}}
 +
{{param description|name=language|value=The language to speak. See Supported Languages below for a full list of options.}}
 +
{{param description|name=message|value=The message to send. Players with control over the language's character sheet will see the original message, while everyone else only sees the gibberish.}}
 +
{{param description bottom}}
 +
 
 +
=== Supported Languages ===
 +
The following languages are available to this script. The campaign should have a character with each of the following names, in order to support players ''understanding'' the messages being sent:
 +
 
 +
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
 +
* aboleth
 +
* abyssal
 +
* aklo
 +
* aquan
 +
* auran
 +
* boggard
 +
* celestial
 +
* cyclops
 +
* draconic
 +
* drow
 +
* druidic
 +
* dwarven
 +
* elven
 +
* giant
 +
* gnoll
 +
* gnome
 +
* goblin
 +
* halfling
 +
* ignan
 +
* infernal
 +
* orc
 +
* protean
 +
* sphinx
 +
* sylvan
 +
* tengu
 +
* terran
 +
* treant
 +
* undercommon
 +
</div>

Revision as of 22:40, 8 January 2015

API ScriptAuthor: roger A.
Version: 2.0
Last Modified: 2014-10-11
Code: What Did He Say?
Dependencies: None
Conflicts: None

Allows users to convert things they type into gibberish for characters who don't speak the language the player is speaking as.

Syntax

!<language> <message>
Formally:

S → !language message
messagestring
language → aboleth
language → abyssal
language → aklo
language → aquan
language → auran
language → boggard
language → celestial
language → cyclops
language → draconic
language → drow
language → druidic
language → dwarven
language → elven
language → giant
language → gnoll
language → gnome
language → goblin
language → halfling
language → ignan
language → infernal
language → orc
language → protean
language → sphinx
language → sylvan
language → tengu
language → terran
language → treant
language → undercommon

Parameter Values
language The language to speak. See Supported Languages below for a full list of options.
message The message to send. Players with control over the language's character sheet will see the original message, while everyone else only sees the gibberish.

Supported Languages

The following languages are available to this script. The campaign should have a character with each of the following names, in order to support players understanding the messages being sent:

  • aboleth
  • abyssal
  • aklo
  • aquan
  • auran
  • boggard
  • celestial
  • cyclops
  • draconic
  • drow
  • druidic
  • dwarven
  • elven
  • giant
  • gnoll
  • gnome
  • goblin
  • halfling
  • ignan
  • infernal
  • orc
  • protean
  • sphinx
  • sylvan
  • tengu
  • terran
  • treant
  • undercommon