Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
May your rolls be merry + bright! 🎄
Create a free account

Pathfinder and Languages

Hello all! I have been browsing the forums here for a script that takes languages into account. I know that there are a few referenced in the  API Script Index , however, they seem to have been taken down. I was looking for an API script that does something along the lines of  What Did He Say? , but I am coming up short. Any feedback or knowledge on this or how to implement such a script would be great as I am trying to make the most out of GMing for my pathfinder group. Thanks for your time or any insight that can be offered! 
This this?
Perfect! Thanks a bunch Silvyre! Now to mess around with it to insure I fully understand how it works. :)
1445402045
vÍnce
Pro
Sheet Author
There's also the trick of a creating a character that represents a language and only giving the player(s) that speak that language control of that character(language).  Name the character "Elvish" for example.  When you "/w Elvish" only the player's that can control "Elvish" will receive the text.
Ah that makes sense also Vince. That's a nice idea as well!
So I have been looking over the script and I am not sure I understand how to get it started. It states it will create the character sheets on its own based on the API I believe, but I am not seeing any commands or anything like that. I appologize, but I am definitely not a coder. Any ideas or a thread I could be pointed to anyone? I looked through the post that Silvyre linked me to as well as the What Did He Say post. Thanks for your time.
An update. Well I am using the script as posted here:&nbsp;<a href="https://gist.github.com/derekkoehl/88c064c4f365d483f133" rel="nofollow">https://gist.github.com/derekkoehl/88c064c4f365d483f133</a>. The only change I have made so far is in line 10 it says "var playerIDGM = " ID was listed here"; //Added to auto populate new languages with the GM's player ID". I updated this to be my ID. At this point though I am not sure what else to do with it to get it working.
1445412781

Edited 1445412805
Lithl
Pro
Sheet Author
API Scripter
The script creates the appropriate character sheets when it loads, if they don't already exist. No commands are necessary for that. To speak in a language with that script, you would type "!Dwarven I am speaking in dwarven" or whatever. The !command is case-sensitive, so !dwarven wouldn't work. The script is not very friendly to adding new languages, though.
I do understand how to type as the example you gave "!Dwarven I am speaking in dwarven," however, it is not creating the character sheets. How do I get it to load other than adding it to my API section and then saving it to enable it?
1445419381
Lithl
Pro
Sheet Author
API Scripter
It looks like it's supposed to create the sheets based on the value of roll20API.languageData when the API sandbox spins up (when you hit Save), but roll20API.languageData is undefined until you send an API command (any command). If you move the definition of the languageData array (lines 83-204) out of the chat:message event (either into the ready event at line 45, or into the global scope anywhere between line 4 and line 42) it should create the sheets correctly. Alternatively, you could create the sheets manually, since it seems like so long as they have the appropriate name such as "Language(Dwarven)" it'll work out.
Ah thank you Brian. I pasted lines 83-204 after line 4 and it created the langauges character sheets for me and the script is now working! I really appreshiate you taking the time to look through it and help. :)
Ok.. so as I stated last time, its created the languages character sheets and the script is working for me. The only snag is, its only generating text for me. The text is not going through to anyone else, whether they understand a language or not. I've tried adding them as controlling the character and also as it appearing in their journal to no avail. Also, it does not work by doing !Dwarven "insert text here", but rather when I select to speak as the character Dwarven and then place an ! in front of what is being said. I think it may be something due to the Unknown Language being added in this script.. but I am not 100% sure of this.&nbsp;
1445744875
The Aaron
Pro
API Scripter
I can tell you that the reason there are no language characters being created is because Derek K. moved the roll20API.languageData inside the on('ready') function (around line 84). &nbsp;Probably he had some problem and thought that would fix it, but it didn't. &nbsp;Likely, he already had the language characters so he didn't notice is broke their creation. &nbsp;Moving it up to line 43 or so causes the languages to be created. I'm still not sure why the command doesn't work, though perhaps reading the original post about it will help you understand it:&nbsp; <a href="https://app.roll20.net/forum/post/435782/script-wh" rel="nofollow">https://app.roll20.net/forum/post/435782/script-wh</a>...
I believe I got it working now.... All characters have to be able to see the journal entry even if they do not speak the language. Will do more testing later today to insure this has solved the issue. Thanks for the original post link and your time Aaron!
1445777525
The Aaron
Pro
API Scripter
I squeezed a link out of Stephen S. since the old ones are all broken:&nbsp;<a href="https://gist.github.com/BaldarSilveraxe/d66d4aad2fb6f5baed3e" rel="nofollow">https://gist.github.com/BaldarSilveraxe/d66d4aad2fb6f5baed3e</a>
Thanks Aaron. I was getting the one from Derek to work, but it only works for elven. The API log says "{"who":"error","type":"error","content":"Unable to find a player or character with name: "}" when its for other languages. I may just give up on doing it with a script... and do the whisper trick Vince mentioned since this will just not play nice. I'm not sure what else to do at this point since I have a very tiny knowledge of how all this stuff works. =/
1445795304
The Aaron
Pro
API Scripter
As best I can tell, when you have control of a particular language, you're intended to set that as the Speaking As, then type something beginning with a ! to activate it. &nbsp;I've not used the script and haven't had the chance to read through it completely, so maybe Stephen S. will materialize and make some comments about it. =D
Thanks for taking a look Aaron. I figured out how its supposed to work with the speaking as then setting the command before what you want to say, its just not translating to the chat feature quite right unfortunately. Hopefully Stephen S. or someone with more experience with it will materialize as you say, but I thank you all regardless for the help! :)