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

5e Shaped Features Support

Hi there, I have been working on this all day, looking through the Roll20 documentation.  My situation is very specific, but would have other applications. I am trying to add some functionality to the Monk's Flurry of Blows feature on my character sheet.  Basically, I would like to call the macro for the Unarmed Strike attack I created (either from the sheet or the button I made by dragging the attack into my macro bar) in the free form text for my Flurry of Blows feature.  I have been playing around with all sorts of ideas like using the [[ ]] notation, and the [label](~...) notation, but I just cannot seem to get it working. I know how to roll the 1d20 + proficiency + mods within this, and even make it look a bit nicer using markdown formatting, but I like how the macro looks more.  I don't know if this is an API thing or simply getting the right notation down. Does anyone have any suggestions? Thanks for your time!
1479610727

Edited 1479611274
Vanakoji
KS Backer
The shaped sheet documentation should cave things close to this at least to see how it would work but here is a general idea. In the freeform field, you could use something like {{text_big=[Unarmed Strike](~monk|repeating_attack_$1_attack)}} For a button. Note, monk becomes character name and $1 is referencing the attack that is second on the list. Or you could have it roll both unarmed strikes when flurry is clicked using *press enter for new line* %{monk|repeating_attack_$1_attack} %{monk|repeating_attack_$1_attack} For more details see the documentation&nbsp; <a href="https://docs.google.com/document/d/1yPcIZ_bIc3JlnW" rel="nofollow">https://docs.google.com/document/d/1yPcIZ_bIc3JlnW</a>... &nbsp;This should include other details like $1 and unique id as well as some common macro examples towrads the end Now if you apply this to some API setup it should work, but this is all I can over for general stuff, someone else may be able to help with more detailed API integration.
Thanks for the reply Vanakoji! I ran into the same issue I get when I try your suggest for the button earlier today. &nbsp;When I add your first suggestion I get this as output in the chat: %{} Any idea what that means?
Here is a screenshot (note I changed the 'monk' to my character's name and I have 4 attacks, so $1 should work fine):
It seems like there is some error there but I can't say what to be honest as I can't seem to reproduce that output. The best I can suggest in to try and fresh sheet see if that works. Here is a test sheet I did and how it looks. Unarmed, no extra stuff Flurry set up with the button to the first attack on the list How it looks in chat when clicked.
1479647530

Edited 1479648002
gone rogue said: Here is a screenshot (note I changed the 'monk' to my character's name and I have 4 attacks, so $1 should work fine): The quotes may be causing trouble in the macro. You may have to put in the html code for quotation which I found at <a href="http://www.ascii.cl/htmlcodes.htm" rel="nofollow">http://www.ascii.cl/htmlcodes.htm</a> &#34 You might try replacing the quotations in the macro above with that code and see if that helps. Are you doing this within the sheet or are you using your own attribute macros? If it is the latter, it takes a bit of workaround to get the html code not to auto replace. See this&nbsp; wiki section to help with that.&nbsp; I had trouble with a special character in my character's name and this fixed the problem. good luck H
The quotes may be causing trouble in the macro. You may have to put in the html code for quotation which I found at&nbsp; Dang, I didn't even think about that one, but that seems to be the issue as I get the same output in I have " " in the name. So the macro for the manual setup would look like the following using the name "Monk Test" with the quotes. {{text_big=[Unarmed Strike](~&amp;#34Monk Test&amp;#34|repeating_attack_$0_attack)}} So in your case based on the shown name {{text_big=[Unarmed Strike](~&amp;#34One Punch&amp;#34 Oryn|repeating_attack_$0_attack)}} replacing the $0 with either the unique id or the number of it in the list minus 1 as the list starts at 0.
Hey this is awesome! &nbsp;Thank you so much. My apologies for not seeing that in the documentation of the 5e shaped sheet. &nbsp;I was searching for key words rather than going through the document, and I now see that there is a ton of information. &nbsp;I guess I just needed a springboard. &nbsp;Although, I likely would have never figured out the quotation marks thing! Thanks again. &nbsp;If either of you are interested in helping out in my next task, I cannot seem to find this in the documentation: Is there a way to make the emote in an attack on the sheet appear in the same way as using /em in the chat? &nbsp;It seems as though the emote in an attack is in a small frame with little emphasis. &nbsp;I'm just looking for a way to draw some attention to it. &nbsp;I have been playing around with trying to get the emote to appear in the freeform but I have not had much luck. &nbsp;I was hoping for it to show up above the buttons I created (which are working great now!). Thanks for your time. &nbsp;Take care.
If you want to make an API script for that or edit the sheets code I am sure you could have more fine tune control but if you want something that could be done manually, there there are a couple basic ideas. You can just use /me *emote* in freeform field but you must put a new line character first. So in a black freeform, hit enter then do /em for manual entry. This will make the emote appear after the macro however. You can also have something setup as a custom macro that emotes and then calls the macro. So something set up like this /em *emote*&nbsp; %{NAME|repeating_attack_$0_attack} &nbsp; &nbsp; (make sure this is after a new line character as the macro will look odd so just like putting it in freeform)
Vanakoji said: If you want to make an API script for that or edit the sheets code I am sure you could have more fine tune control but if you want something that could be done manually, there there are a couple basic ideas. You can just use /me *emote* in freeform field but you must put a new line character first. So in a black freeform, hit enter then do /em for manual entry. This will make the emote appear after the macro however. You can also have something setup as a custom macro that emotes and then calls the macro. So something set up like this /em *emote*&nbsp; %{NAME|repeating_attack_$0_attack} &nbsp; &nbsp; (make sure this is after a new line character as the macro will look odd so just like putting it in freeform) This is probably the best way. The attack itself has an emote which you have to check and enter things. If it doesn't, you can also add that in the freeform as {{emote=my character says or does something}}. I like adding that emote as it makes the roll very personalized. Otherwise, the /em part of the macro is likely ignored because the template is more dominant in the chat. good luck H
Hey thanks a lot! &nbsp;This is working out great :) &nbsp;Thanks again for your time, much appreciated.