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 .
×
Create a free account

Language Macro

Hello All. A quick one for you here. I have a macro set up that displays each characters passive perception: /w GM &{template:default} {{name=Party Passive Perception}} {{Samalyn=[[@{Samalyn|passive_wisdom}]]}} {{Eltasain Jhaelen=[[@{Eltasain Jhaelen|passive_wisdom} ]]}} {{Scarlet=[[@{Scarlet|passive_wisdom}]]}} {{Yip-Jib=[[@{Yip-Jib Emeraldvein|passive_wisdom} ]]}} {{Windwhisper=[[@{Windwhisper Faircliff|passive_wisdom} ]]}} {{Mad Kairon=[[@{Mad Kairon|passive_wisdom} ]]}} I want something similar but tells me what languages they speak. Has anyone come across somehting like that?
1525113382
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You'd simply replace the inline roll of their passive perception with an attribute call to your sheet's language attribute(s): &{template:default} {{name=languages}} {{Samalyn=@{Samalyn|languages} }}
Hi Scott. I couldn't seem to find anything called languages, I kept finding NPC languages. I'll try it and let you know.
1525113941

Edited 1525114043
Ok Scott. I added an Attribute called Languages and added in Samalyn's in the 'current' section and then used the Macro /w GM &{template:default} {{name=Party Languages}} {{Samalyn=[[@{Samalyn|languages}]]}} And I got the following error: Any Ideas? To help I added in the languages as: Draconic, Primordial, etc, etc, etc.
1525114261
Finderski
Pro
Sheet Author
Compendium Curator
Since it's not a roll, drop the square brackets... /w GM &{template:default} {{name=Party Languages}} {{Samalyn=@{Samalyn|languages}}}
1525114894
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, also, if there is a place on your character sheet in Roll20 for languages? There will be an attribute that holds this info. What sheet are you using?
Finderski said: Since it's not a roll, drop the square brackets... /w GM &{template:default} {{name=Party Languages}} {{Samalyn=@{Samalyn|languages}}} *slaps head*
Scott C. said: Yep, also, if there is a place on your character sheet in Roll20 for languages? There will be an attribute that holds this info. What sheet are you using? Think I got it now. Its the 5E one that Roll20 suggests
1525115730
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ah, it looks like the OGL sheet uses a repeating section for languages and misc profs. So, if you make sure all of your players have their language proficiency in position 0 (the top ability), this should work for you: /w GM &{template:default} {{name=Party Languages}} {{Samalyn=@{Samalyn|repeating_proficiencies_$0_name}}}
Scott C. said: Ah, it looks like the OGL sheet uses a repeating section for languages and misc profs. So, if you make sure all of your players have their language proficiency in position 0 (the top ability), this should work for you: /w GM &{template:default} {{name=Party Languages}} {{Samalyn=@{Samalyn|repeating_proficiencies_$0_name}}} Fair enough I will note for the future. I just added a 'Languages' ability onto the character sheet and then C/P'ed the info into it. Works a treat now :)
How could we apply @{target|character_name} so that you could click on said token to get languages.  Does the macro have to be specificly built for one character or is there a way to weaponize it for everyone.
1525673888
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Muckbuckle said: How could we apply @{target|character_name} so that you could click on said token to get languages.  Does the macro have to be specificly built for one character or is there a way to weaponize it for everyone. The target keyword can be used for any attribute, so: /w GM &{template:default} {{name=@{target|character_name} Languages}} {{@{target|repeating_proficiencies_$0_name}}}
1525674007

Edited 1525674056
Yes, totally saving this.  Just seems it would save a lot of writing instead of consistantly writing out one for different players.
Muckbuckle said: Yes, totally saving this.  Just seems it would save a lot of writing instead of consistantly writing out one for different players. I have mine set up so that I click the macro and it gives me a card with all of my charactes lanaguages.