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

Token Ability Question

Hey there, I've looked into this quite a few times whenever I come across it but can never seem to figure it out. Is there any way to make a Token Ability use one of the attacks from the attack page of a character's character sheet? I'm using the Pathfinder sheets specifically and when you go to the attack tab on it there are neat little places where you can put in an attack's information and click the dice button in the corner of each attack to auto roll it with all the correct bonuses applied. I get the sense that I could  write another macro but with the fancy little table that appears with the roll information in chat I feel that would be incredibly difficult. Sorry if that is a bit confusing. Let me know if anyone knows what the hell I am talking about or how to do it. Thanks
The easiest way to make a token action out of a character sheet roll is to make the roll and then go to your chat and hit the up arrow key. That will populate the chat with the last macro code that was generated. Select all of that and then paste it into a token action on your abilities page. Tada, you are done! Happy Gaming
Thanks bud. Knew it was something simple I was missing!
1438349126
Lithl
Pro
Sheet Author
API Scripter
If you have the name of the roll button, you can call it as though it were an ability on the Attributes & Abilities tab: %{Character Name|Roll Button Name}. You could call the roll button ability from within a custom ability you create, which you then mark as a token action. The advantage of this approach over Ed's suggestion is that if the sheet is updated to alter the roll button, your token action is updated at the same time. The disadvantage is that there is no easy built-in way to find the name of a roll button. Some authors (including at least one of the PF sheets, but I don't know which one you're using) include the name as a tooltip in the button. If the author doesn't give you the information, you have to inspect the HTML yourself to find out.
1438355054

Edited 1438355322
See that's what I was looking for. I wanted it to call upon the values that the sheet generates so that I wouldn't have to constantly be updating the button. Honestly the table isn't the important part. I could just as easily use a /roll command with some flavor text instead of dealing with all the html... BUT. I had tried that before. When I hover over the button on the PF sheet it brings up: %{Krozz|repeating_weapon_0_Attack} which I assume is what the button is called. However, when I put that into the ability's command box, I receive exactly 6 errors that say: No attribute was found for @{Krozz|repeating_weapon_0_masterwork}&nbsp; And one syntax error after that saying that I cant use % symbols and yada yada. I just realized that perhaps it isn't reading the&nbsp;%{Krozz|repeating_weapon_0_Attack} as html like it should? Do I have to type an html start and end command before hand maybe? And what would it be? EDT: Oh and the sheet in question is "Pathfinder sheet 4: Life after Sam" I think? The link to its thread:&nbsp; <a href="https://app.roll20.net/forum/post/1915585/pathfinder-sheet-thread-4-life" rel="nofollow">https://app.roll20.net/forum/post/1915585/pathfinder-sheet-thread-4-life</a>
1438355761

Edited 1438357645
Alicia
Sheet Author
Nick S. said: See that's what I was looking for. I wanted it to call upon the values that the sheet generates so that I wouldn't have to constantly be updating the button. Honestly the table isn't the important part. I could just as easily use a /roll command with some flavor text instead of dealing with all the html... BUT. I had tried that before. When I hover over the button on the PF sheet it brings up: %{Krozz|repeating_weapon_0_Attack} which I assume is what the button is called. However, when I put that into the ability's command box, I receive exactly 6 errors that say: No attribute was found for @{Krozz|repeating_weapon_0_masterwork}&nbsp; And one syntax error after that saying that I cant use % symbols and yada yada. I just realized that perhaps it isn't reading the&nbsp;%{Krozz|repeating_weapon_0_Attack} as html like it should? Do I have to type an html start and end command before hand maybe? And what would it be? EDT: Oh and the sheet in question is "Pathfinder sheet 4: Life after Sam" I think? The link to its thread:&nbsp; <a href="https://app.roll20.net/forum/post/1915585/pathfinder-sheet-thread-4-life" rel="nofollow">https://app.roll20.net/forum/post/1915585/pathfinder-sheet-thread-4-life</a> Calling rolls and attributes from Repeating Section isn't entirely supported yet. You're getting errors as it's trying to reference fields within the repeating section and it's not finding them. Repeating Section attributes are a separate beast. That was the short story. Long Story: Rolls set inside the Repeating Sections can reference the short attribute name (@{attribute_name} where as when you want to reference the same attribute in the repeating section you have to use @{repeating_weapon_0_attribute_name}. So when you use the roll button from a repeating section its going to throw you all the errors because the Roll function is looking for the short names (as indicated by the roll macro) instead of realizing its a repeating section attribute. Hopefully that helps. Highly suggest if you have votes to support this:&nbsp; Official support for repeating sections in character sheets
So it's a no-go. Damn. Thanks for all the help guys. And I would gladly vote on that but I cant seem to use the link...?&nbsp;
1438357662

Edited 1438357837
Alicia
Sheet Author
Nick S. said: So it's a no-go. Damn. Thanks for all the help guys. And I would gladly vote on that but I cant seem to use the link...?&nbsp; Edited the post.. but just in case:&nbsp; <a href="https://app.roll20.net/forum/permalink/1240016/" rel="nofollow">https://app.roll20.net/forum/permalink/1240016/</a> In reality though, as long as the roll you want to use isn't inside a repeating section what you want to do is possible. Just right now, the character sheets and roll functions aren't smart enough to cope with Repeating Section attributes when called outside of them.