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

Can I shorten macro name on button dragged from character sheet?

I was excited to drag battack buttons to the macro bar from my character sheet, but when I did the buttons turned out to be about 2" long with a bunch if unnecessary text in them. If I used them, there would only be enough room for three buttons. I tried to rename them using "Inspect element" and "edit html", but the changes didnt survive a refresh of the page. So I went back to my basic home made macros, but I do like the format of the text that appears in the chat window when you use a button from the character sheet--it comes in a frame with damage included, and it labels the action and the character, so I am sorry I couldn't find a way to shorten them. Anyone know any work-arounds?
Try naming a macro "Jake" then inspect element to find the name of the button on the sheet (name=Roll_something_something) Then in the macro "Jake" type %{character name|something_something} Then drag "Jake" to macro bar Then click "Jake"
1430371144

Edited 1430371166
most of the character sheet marco buttons have an ability name attached to them... you can simply call that ability with one of your custom macros to get the same result as to if you had clicked the sheet button. Note: you cannot do this with repeatable sections
Notice how there is no Roll_ on the name in the %{character name|something_something} I believe you need authority on the character in order to do it.
Great. Thanks Jake. I will give it a shot tomorrow And let you know how it goes.
Chell, what do you mean "call that ability"? Can you givr me an example?
Stephen said: Chell, what do you mean "call that ability"? Can you givr me an example? It's actually exactly what jake suggested... %{character_name|ability_name}
Hi Jake, before I do this, just want to be sure the vertical bar after "name" in that bit of code you sent isn't a typo. Is it supposed to be an underscore? --> %{character name | something_something}
1430436369
The Aaron
Roll20 Production Team
API Scripter
I believe it would depend on the character: %{Bobs your Uncle|attack1} %{Rook Aurelia|DexCheck}
1430436664

Edited 1430436718
the | is a separator, the functions called within roll 20 have a few separate sections to them Type{Owner|Name|Field} Type consists of: @ - Attribute % - Ability # - Macro Owner refers to the character sheet the function belongs to, with most functions it can be left blank to assume that it belongs to the sheet it is called from, but this is not always the case. Name obviously refers to the name of the attribute/ability/macro being called. and then field refers to either Min or Max and applies only to Attributes, when left blank it is assumed to be Min, Owner must be called to utilize the |Max command.
1430440934

Edited 1430440957
Stephen said: I was excited to drag battack buttons to the macro bar from my character sheet, but when I did the buttons turned out to be about 2" long with a bunch if unnecessary text in them. If I used them, there would only be enough room for three buttons. I tried to rename them using "Inspect element" and "edit html", but the changes didnt survive a refresh of the page. So I went back to my basic home made macros, but I do like the format of the text that appears in the chat window when you use a button from the character sheet--it comes in a frame with damage included, and it labels the action and the character, so I am sorry I couldn't find a way to shorten them. Anyone know any work-arounds? Try editing it by Shift-Clicking them and renaming the title; that'll change the ability names. If not, you can try changing the ability name straight from the character sheet if you did it that way, or you can run the macro, then go to your chatbox and hit the Up Arrow key. It'll recall what the macro typed in, so you could just copy that and make your own macro using that command line.
Benson, Sadly, that Shift-click didn't work. Would've been so easy! And cutting and pasting the up-arrow trick didn't work, either. I must be too Amish for this.
1430457935

Edited 1430458045
Hi Jake, Okay, not working for me. :( Let's see if I can have you pick out the bits I need. Here's what I have: When I inspect the character sheet skill button for Acrobatics skill, I find this phrase resembling what you said to find: <button style="font-size: 100%" title="%{selected|Acrobatics-Check}" type="roll" value="&{template:pf_generic} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{name=Acrobatics}} {{Check=[[1d20 + @{Acrobatics}]]}}" name="roll_Acrobatics-Check"></button> I did the following, based on your instructions: %{character name|"roll_Acrobatics-Check"} Obviously, I did it wrong, because the text that shows up on the chat bar said: "No ability was found for %{character name|"roll_Acrobatics-Check"} Would you mind identifying the proper bit of code for me, and showing me what it should look like? Thanks much! S
%{selected|Acrobatics-Check} or %{character name|Acrobatics-Check} if you use the first one you must have the token that belongs to the charactersheet selected to run the macro... if you use the second option then "character name" must be replaced with the name of the character for example: %{Stephen|Acrobatics-Check}
Thanks, Chell. So, just to be clear: I go to Settings click "Add" Type ACRO on the Name line Paste one of the above into the window below it Hit "Save Changes" Hit "Test Macro." Have I got it right?
yes, but again, if you use the character name option you must replace the words "character name" with the name of the character