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)
m (Supported Languages)
(6 intermediate revisions by 2 users not shown)
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==
+
'''What Did He Say?''' 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 clear="all">
The supported languages and the macros to use them are
+
aboleth= !aboleth ?{message}
+
abyssal= !abyssal ?{message}
+
aklo= !aklo ?{message}
+
aquan= !aquan ?{message}
+
auran= !auran ?{message}
+
boggard= !boggard ?{message}
+
celestial= !celestial ?{message}
+
cyclops= !cyclops ?{message}
+
draconic= !draconic ?{message}
+
drow sign language= !drow ?{message}
+
druidic= !druidic ?{message}
+
dwarven= !dwarven ?{message}
+
elven= !elven?{message}
+
giant= !giant ?{message}
+
gnoll= !gnoll ?{message}
+
gnome= !gnome ?{message}
+
goblin= !goblin ?{message}
+
halfling= !halfling ?{message}
+
ignan= !ignan ?{message}
+
infernal= !infernal ?{message}
+
orc= !orc ?{message}
+
protean= !protean ?{message}
+
sphinx= !sphinx ?{message}
+
sylvan= !sylvan ?{message}
+
tengu= !tengu ?{message}
+
terran= !terran ?{message}
+
treant= !treant ?{message}
+
undercommon= !undercommon ?{message}
+
  
===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:
 +
 
 +
{{multicol|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}}
 +
 
 +
=== Changelog ===
 +
{{changelog version|2.0|2014-10-11|* Release}}

Revision as of 19:52, 14 January 2015

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

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


message

string

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

Changelog

v2.0 (2014-10-11)

  • Release