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

Macros or API Advice

Hiya! I'm stuck on which direction to go and if anyone could offer advice, I'd be appreciative on their knowledge and view. Current Scenario: I have a campaign that uses a world map, denoted by a single token to represent my players. They cannot interact with this token and it is not linked to their character sheets. I'm designing a crafting system that ties into the travelling system I made! I want the rolls to be easy and fast so I was attempting to use macros on handouts. The macros I've tried don't seem to work (mostly because I don't fully understand macros even after spending multiple hours trying to get 'em right) and without selecting a token, I don't seem to have a way to get this to work.  I've looked through the API's that I can find and I don't see anything that really fits what I am trying to do. Below is an attempt at the handout I was trying to make for my players. I want to keep everything as "one click" for them as possible. The macros I've tried have not yielded the results I had hoped. "`@{character_name} 1d20+@{crafting_machinery}" and stuff hasn't really gotten me anywhere and I get a bit confused on how to use API/HTML stuff to make buttons.  Does anyone have any ideas on what I should do?
A macro will need at least two parts inside the { } : a token identifier, and an attribute reference, which will be separated by a vertical pipe | . @{tokenidentifier|attributereference} The tokenidentifier can be 'selected', 'target', or a token ID. The attributereference can be anything that is listed on a character sheet under Attributes. Will the Crafting System represent the party as a whole, or will each player have different crafting values? (E.g. one player is stronger in Machinery than another player?) If the values are different for each player, you'll have to have them listed as attributes on each character sheet.&nbsp; If the values are for the party as a whole, then you could create a 'Party' character and list the attributes a single time on that 'character'. If you want to make a macro from a handout you need to follow these steps:&nbsp;<a href="https://wiki.roll20.net/Journal#Journal_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Journal#Journal_Command_Buttons</a>
1601062834

Edited 1601065878
Andreas J.
Forum Champion
Sheet Author
Translator
I just compiled a massive guide for all things macros, where all the related pages are linked or outright written, as well as having several less known tricks linked in the relevant sections. It should be somewhat useful and structured for finding info on how the various things work. Complete Guide to Macros &amp; Rolls
It's gonna be per character!&nbsp; I wanted to make a way to have crafting NOT tie into other stats so players could work towards what they wanna make without worrying about if it will fit for their stats per say. When I get home I'm going to be trying to work with it some more. Currently, none of the macros are working (i.e. I'm typing them wrong still) so once I can read over the entire page better I think I'll be able to manage it. You wouldn't happen to recommend any API to look into, would you?
Thank you, Andreas! I'll be lookin' into this ASAP!!
OMG Andreas! This was EXACTLY what I needed!! I cannot express how much I appreciate this.