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 .
×

D&D 5e Macros & API Token Actions Help

I've looked around wiki/help/forums for an answer and haven't found the solution. On the character editor, there's a 'Attributes & Abilities' tab. In the 'Abilities' column you can add/edit items. Options to 'Show in Macro Bar' & 'Show as Token Action'.  As an example, there is: Spear (One-Handed), with this entry: %{-M3ERTQIp2T-6MSalbwE|repeating_attack_-M4M6PayhF0OKbSA4NQl_attack} The second alpha-numeric string looks vaguely like a SID? I'd like to be able to update this section of the sheet with my own entries based on what I'm using more during play. Such as Thieve's Tools, the cursed weapon I have, or the magic weapon I try to use. Basic macro syntax is not working out. Copy & paste isn't working, chat just has the nonsense spit out. I'd love a straight solution answer, but also to understand why, if anyone can help me out. Cheers!
1603243031

Edited 1603243222
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It looks like this was created with the Token Action Maker API? You can write this sort of thing manually without using IDs.  %{CHARACTERNAME|repeating_attack_$0_attack} CHARACTERNAME is the name of the character on the sheet $0, $1, $2... is just their numerical position in the repeating list, counting from zero, because JavaScript. The advantage to using the IDs is that they are absolute references. They will continue to work even if you change the name of the character or re-order the items on the list. You can get the attribute ID by dragging the roll button for that item to the macro bar. It will create a macro button with the ID in the name, or you can use the Inspector in your browser. You can also mix and match, using a character id, but a numeric attribute reference. The Token Action Maker API gives you the option to use charactername instead of character_id, since certain types of exporting/importing can change the id.
1603243142

Edited 1603243162
Step 1) Top right corner of the screen is a cog wheel, next to it is the "Collection Tab". Open Collection tab. You will see Macros and a check box that states "Show macro quick bar?" Step 2) Check that box. Step 3) Open character sheet under "Tools proficiency & Custom Skill" you should see your thieves tool (assuming you drag n dropped it from compendium) Step 4) Drag thieves tool to the macro bar in the bottom of your screen. Right click to rename it.   I hope this was what you were looking for.
Thanks Keith and Nover. Looks like the answers will get me to a resolution. Off to test!
1603251574
Oosh
Sheet Author
API Scripter
If you have any further trouble, be sure to post the code you're trying to run so we can see what's going wrong.