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

link sheet macro roll to external macro roll

1633604802

Edited 1633605627
Hi there, I am currently using the  DH2 sheet for my current game. In the equipement section with ahve a button to roll for hitting and one for damages. I am trying to make an external macro which roll a button from the sheet. The macro behind this button is pretty complex: <button title="Agility" name="sheet-AGI" type="roll" class="sheet-clear sheet-full_width sheet-characteristics_button sheet-stats_grid_5 btn ui-draggable" value="@{to-gm}&{template:mythic}     {{character= @{character_name}}}     {{roll-name=Agility}}     {{dos=[[[[1+floor(abs([[         {{ {@{agiTotal}+@{fatigued}+@{inlinemod-toggle}},         {@{agiTotal}-@{limiter}}}kh1, {@{agiTotal}+@{limiter}}}kl1]]-[[1d100]])/10)]]+ceil(@{AGI_unnat}/2)]]}}     {{target= $[[0]]}}     {{roll= $[[1]]}}     {{dof= $[[2]]}}"> "Agi |" <input name="attr_AGI_total" value="@{agiTotal}+@{fatigued}" class="sheet-input_background sheet-input_char_background" disabled="" data-formula="@{agiTotal}+@{fatigued}"> </button> I am trying to link this macro to the external macro bar but can't seem to get it right because most of the variables are not exported to the Attributes & ability of the sheet I can copy the macro for some part and use the @{selected|ability name} but i can't for all the formula. I was wondering if there is a way to link the button name to the external macro Thanks in advance
1633611617
.Hell
Sheet Author
You can check if the roll has a name and then call the macro via name. If this is not the case and you cannot access all the variables this might be tough luck. Did you try clicking the button and use up arrow in chat? Mostly you get everything out of there
1633635952
Andreas J.
Forum Champion
Sheet Author
Translator
The sheet code you're showing doesn't seem to match up with neither the  Dark Heresy 2nd Edition or Dark Heresy: 2nd Edition (Advanced API) which are in the sheet dropdown. Can you specify the exact name of the sheet you're using? Can you show where you took that sheet code from? That roll button can't be referenced in a macro, because the roll button have a faulty name . If that's the real sheet code, someone need to fix all roll buttons on the sheet to be like this: <button title="Agility" name=" roll_AGI " type="roll"