[Script] Tongues - a simple language script (new thread)

1536764617
Ravenknight
KS Backer
I liked the ability to post new languages for this amazing script and since the old thread got closed I made a new one.  Old thread:  https://app.roll20.net/forum/post/5633578/script-tongues-a-simple-language-script/?pagenum=1
1536764658
Ravenknight
KS Backer
Ignan language ( made using  https://lingojam.com  ) Vocabulary: Ignan 1-letter words: [I]  Ignan 2-letter words: [if, in, it]  Ignan 3-letter words: [dat, haf, hav, idt, ill, int, iss, let, nev, nnh, shh, thi, ved]  Ignan 4-letter words: [dash, deit, even, felt, gait, ihet, likh, nhat, shaf, shan, shhi, shit, tikk, tink, tshh, tvhi, vilk, viss]  Ignan 5-letter words: [dliah, dlikk, fharr, inthi, kinnh, legss, nesst, nhakk, nharr, nnash, saksh, shanh, shilt, shint, shiss, shivh, thalt, thavn, tiash, tirrt, tshin, tshit, vitsh, vshen, vshhi]  Ignan 6-letter words: [dharrn, dlinss, eigsht, idhaat, idhavh, ilsshi, ingerr, khaalt, krredt, krrift, kshilt, literr, littlh, shaarr, shhalt, shiith, shivig, ssaksh, sskill, sitlah, ssliah, ssshit, sstill, tiahss, tiddet, tinash, tiness, tshass, tshiss, veinss]  Ignan 7-letter words: [dalsset dassiet, dliahig, drritgh, entarrh, firrsst, frrhann, itsself, killig, nitarrh]  Ignan 8-letter words: [nnharrh, nninash, rredakh, rreiksh, rrigsht, ssadtlh, ssnnill, sstidlh, sthahat, thaharr, tsheirr, vinthav, vrrisst, vshiksh]  Ignan 9-letter words: [deddless, dleisset, eitsherr, elterrss, enhaagsh, fitsherr, kingsss, lhavesst, nneigerr, nnetikil, ritsherr, rregirrt, rrhasss, rriisset, shanlash, sherrein, ssditerr, sskrridh, teedesst, teitlash, tshhasss, tshrreit]  Ignan 10-letter words: [daldhaass, dhaisshan, drressent, drrinnerr, fellhavss, fharrghat, fharrtanh, finnilash, frrientss, iligshtet, inssektss, kharrnerr, neitsherr, shaatssit, sstitarre, tesstinet, tinkerrss]  Ignan 11-letter words: [dhaverrfal, entrrinket, fhallhavss, iddrrekiit, ikrrhassss, karrihaass, khhaarrnil, krranndlet, rregrretss, ssdintlash, sskuaisssh, sslhavlash, tirrningss]  Ignan 12-letter words: [defrrientet, drrhakeetet, khaarrtlash, krrinnsshan, nnhannentss, sshaantlash, sskarrrriet, tesstinnent, tinninativh, tittlefielt]  Ignan 13-letter words: [flirrtitihan, khaanterrikt, khhaarrneash, krreitarress, lhanesshannh, nnharrilitah, nnigshtiesst, rressdhansss, sharrdshinet, sherreifterr, tekedtihanss, trrinssfixet, trriverrsset]
Very Cool! Added to my campaign. Ravenknight said: Ignan language ( made using  https://lingojam.com  ) Vocabulary: Ignan 1-letter words: [I]  Ignan 2-letter words: [if, in, it]  Ignan 3-letter words: [dat, haf, hav, idt, ill, int, iss, let, nev, nnh, shh, thi, ved]  Ignan 4-letter words: [dash, deit, even, felt, gait, ihet, likh, nhat, shaf, shan, shhi, shit, tikk, tink, tshh, tvhi, vilk, viss]  Ignan 5-letter words: [dliah, dlikk, fharr, inthi, kinnh, legss, nesst, nhakk, nharr, nnash, saksh, shanh, shilt, shint, shiss, shivh, thalt, thavn, tiash, tirrt, tshin, tshit, vitsh, vshen, vshhi]  Ignan 6-letter words: [dharrn, dlinss, eigsht, idhaat, idhavh, ilsshi, ingerr, khaalt, krredt, krrift, kshilt, literr, littlh, shaarr, shhalt, shiith, shivig, ssaksh, sskill, sitlah, ssliah, ssshit, sstill, tiahss, tiddet, tinash, tiness, tshass, tshiss, veinss]  Ignan 7-letter words: [dalsset dassiet, dliahig, drritgh, entarrh, firrsst, frrhann, itsself, killig, nitarrh]  Ignan 8-letter words: [nnharrh, nninash, rredakh, rreiksh, rrigsht, ssadtlh, ssnnill, sstidlh, sthahat, thaharr, tsheirr, vinthav, vrrisst, vshiksh]  Ignan 9-letter words: [deddless, dleisset, eitsherr, elterrss, enhaagsh, fitsherr, kingsss, lhavesst, nneigerr, nnetikil, ritsherr, rregirrt, rrhasss, rriisset, shanlash, sherrein, ssditerr, sskrridh, teedesst, teitlash, tshhasss, tshrreit]  Ignan 10-letter words: [daldhaass, dhaisshan, drressent, drrinnerr, fellhavss, fharrghat, fharrtanh, finnilash, frrientss, iligshtet, inssektss, kharrnerr, neitsherr, shaatssit, sstitarre, tesstinet, tinkerrss]  Ignan 11-letter words: [dhaverrfal, entrrinket, fhallhavss, iddrrekiit, ikrrhassss, karrihaass, khhaarrnil, krranndlet, rregrretss, ssdintlash, sskuaisssh, sslhavlash, tirrningss]  Ignan 12-letter words: [defrrientet, drrhakeetet, khaarrtlash, krrinnsshan, nnhannentss, sshaantlash, sskarrrriet, tesstinnent, tinninativh, tittlefielt]  Ignan 13-letter words: [flirrtitihan, khaanterrikt, khhaarrneash, krreitarress, lhanesshannh, nnharrilitah, nnigshtiesst, rressdhansss, sharrdshinet, sherreifterr, tekedtihanss, trrinssfixet, trriverrsset]
1536903308
Thank you Sarkamist for developing this script, it's great.  And thanks to everyone else for providing examples of the various languages. I have a question about implementation.  I'm trying to use the script in a 5e D&D campaign using the 5e OGL Character Sheet.  We are currently using the following macro with a static list of the languages I've added to our campaign. !tongues ?{Language|Draconic|Druidic|Dwarvish|Elvish|Giant|Gnomish|Goblin|Halfling|Infernal|Orcish|Thieves Cant} ?{Text|Say something} Is it possible to have the menu options dynamically driven by the languages listed on the character sheet of the selected token (and only list those languages)?
1536924788
Hello, I make an ability for each character based on the global macro with only the languages of the pc... little work but works fine
1536936085
I've installed tongues Added elvish language, added words to elvish language Did !tongues --set elvish:100% Looked on elvish sheet, the gm section has "Zephyr:100%" With nothing selected i type !tongues elvish hello world (Logged in to zephyr on a different browser) Zephyr sees: [elvish] goodbye ????? What have i done wrong here?
1536936867

Edited 1536936888
I usually add proficiency manually in the handout rather than using the command. I have noticed a bug sometimes the first character isn't working and I have to enter it twice (ex: Pantoufle:100%, MisterA:100%, Pantoufle:100%) Also with the new text editor, it creates hyperlinks with the % or : I don't know
1536937156
It looks like it isn't even picking up the language as present since it's changing hello to goodbye which seems like the default looking at the script
1536937625
Interesting now when i type "!tongues elvish hello" it seems to crash the api: TypeError: Cannot convert undefined or null to object TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at translate (apiscript.js:300:23) at commandSpeak (apiscript.js:290:21) at handleInput (apiscript.js:515:21) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1634:12 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560 at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147) at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)
1536948881
Ravenknight
KS Backer
Andrew W. said: Interesting now when i type "!tongues elvish hello" it seems to crash the api: TypeError: Cannot convert undefined or null to object TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at translate (apiscript.js:300:23) at commandSpeak (apiscript.js:290:21) at handleInput (apiscript.js:515:21) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:151:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1634:12 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560 at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147) at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546) Odd. I don't have that problem. Of coure, my language is named Elven. ;)
1537032340
Ok so I deleted the script and handouts and started again Created one language "elven" "> Tongues (v4.5.1): Elven parsed succesfully! (1 languages loaded) <" Using the example script from the github page maybe i've done it wrong as it looks like it's not parsing properly If i do "!tongues Elvish hello" i get "(From Tongues): W. (GM) Elvish does not exist as a Tongues valid language!" as expected If i do "!tongues Elven hello" i get a whisper as the gm with the right thing and a message to everyone in the chat saying "GM: [Elven] goodbye" ( changed the default from john smith to GM)  why is it showing the word goodbye rather than some of the words from the Tongues: Elven handout? In the elven handout i have: Vocabulary:  Elven 1-letter words: [A, N, I, O, E, D]  Elven 2-letter words: [Da, Lo, An, Ni, Al, Do, Ri, Su, No, Va, Fa, Fe]  Elven 3-letter words: [Ano, Dur, Tal, Nei, Ash, Dor, Anu, Fal, Tur, Ala, Nor, Osa, Val]  Elven 4-letter words: [Alah, Andu, Dath, Mush, Shar, Thus, Fulo, Aman, Diel, Dieb, Rini, Anar, Vala]  Elven 5-letter words: [Talah, Adore, Ishnu, Bandu, Balah, Fandu, Thera, Turus, Shari, Shano, Terro, Eburi, Valas]  Elven 6-letter words: [Dorini, Shando, Ethala, Fallah, Belore, Do'rah, Neph'o, Man'ar, Ishura, U'phol, T'as'e, Vala'se]  Elven 7-letter words: [Asto're, Anoduna, Alah'ni, Dor'Ano, Al'shar, Mush'al, Aman'ni, Shan're, Vala'nor]  Elven 8-letter words: [Mandalas, Eraburis, Dorithur, Dal'dieb, Thoribas, D'ana'no, Il'amare, Vala'nore]  Elven 9-letter words: [Neph'anis, Dune'adah, Banthalos, Fala'andu, Dath'anar, Shari'fal, Thori'dal, Vala'thalo]  Elven 10-letter words: [Thero'shan, Isera'duna, Ash'therod, Dorados'no, Shar'adore, Vala'quen]  Elven 11-letter words: [Fandu'talah, Shari'adune, Vala'quendi, Felo'melorn]  Elven 12-letter words: [Dor'ana'badu, T'ase'mushal, Va'linanar'e]  Elven 13-letter words: [U'phol'belore, Anu'belore'delanah]  Elven 14-letter words: [Turus'il'amare, Anu'dorannador]  Elven 15-letter words: [Asto're'dunadah] Elven 16-letter words: [Shindu'fallah'na] Elven 17-letter words: [Thoribas'no'thera, Ando'meth'derador, Anu'dorinni'talah, Esh'thero'mannash] Dictionary: [May the light of the sun burn you: Anu'belore'delanah] [Fireball, Fire bolt: Sela'na'melorn] [Magic sphere: Sela'na] [Flamestrike: Felo'melorn] [Fire: Melorn]
1537032978
Ok for some reason it is now parsing, redid the language and pasted in just the words part didnt mess with the middle line and works now for some reason. It's still not picking up the whisper part though. I have a character called Zephyr so in the GM Notes section it has Zephyr:100%   Notice it looked like a link so i unlinked it (and also tried with it linked) and the user in question only sees the main chat and doesn't get a whisper even when "speaking as" the character
1537087101
Ravenknight
KS Backer
Hi Andrew, I tested your setup and it worked fine on my end. When adding speakers do you use the "!tongues --set" command or just write the names? Tongues have been somewhat wonky since Roll20 implemented the disaster that is the new text editor.
I have a question.. I wanted to use the tongues script to "translate" an elvish word to common.. So what i thought was that a user can type in the elvish word using !tongues elven Quel t'charr     and it spit out the Common word, verses going the other way.  What i added under elven handout was the [common word: Quel t'charr]  which didnt work, it stil tried to convert it to elvish. Should i have created a "common" handout and stuck it in there?
1537251025
Ravenknight
KS Backer
Hi Terrelle. Yep, if you want to translate into Common you need to create a Common handout. You can however get whatever words you want into a translated text by surrounding the word with $ $.
Awww Cool thanks!