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

Calling a Macro from a Handout.

I was curious if I could call a Macro from a handout...Example a spell card that lists the damage....I could have a link to the macro so anyone pulling up the card could click on the link to run the macro....Is that doable? I was also thinking of using this for simplified character sheets in the BIO section of the Character Journal.
You may find this thread of some use.
1436842851
The Aaron
Pro
API Scripter
Ditto this section of the wiki: <a href="https://wiki.roll20.net/API:Chat#Entering_API_Butt" rel="nofollow">https://wiki.roll20.net/API:Chat#Entering_API_Butt</a>...
Thank you so much! You guys rock!!!!!! You just made my day!
Have fun! :)
1436930903
vÍnce
Pro
Sheet Author
JoeGun said: Thank you so much! You guys rock!!!!!! You just made my day! I would love to see what you come up with JoeGun. Please post back when you have something to show off. Thanks
1439907359
Scaby79
Sheet Author
API Scripter
Hey Guys, I just tried to add a button to a handout that performs a macro as it is described in&nbsp; this thread but sadly it didn't work.&nbsp; I testet it with an apicommand instead of a macro as well by adding the line &lt;a href=„!clearblood"&gt;&lt;img src="<a href="http://somesite.com/image-link-here.ext&quot;&gt;&lt;/img&gt;&lt;/a" rel="nofollow">http://somesite.com/image-link-here.ext"&gt;&lt;/img&gt;&lt;/a</a>&gt; to the handout but unfortunately in both cases when I click the image the browser tries to open an non existing address in the same tab, the game is running. :( Is it no longer possible to perform a macro or apicommand via a button out of a macro or did I just horribly missunderstand something here??? If someone has any thought about this, I am happy to hear about it. Thank you very much in advance.&nbsp; (I posted this question here because&nbsp; this thread is already closed.)
1439917677

Edited 1439917940
It still works. Try one of these: &lt;a href="!clearblood"&gt;&lt;img src="<a href="https://app.roll20.net/images/quantumroll2.png&quot;&gt;&lt;/img&gt;&lt;/a" rel="nofollow">https://app.roll20.net/images/quantumroll2.png"&gt;&lt;/img&gt;&lt;/a</a>&gt; &lt;a href="!&amp;#13;Hello World"&gt;Hello World&lt;/a&gt; Also, note that this will not work if the Use window popouts for Characters is ticked.
1439921366
The Aaron
Roll20 Production Team
API Scripter
It looks like you have some &nbsp;alternate symbol in this: &lt;a href=„!clearblood"&gt;&lt;img src="<a href="http://somesite.com/image-link-here.ext&quot;&gt;&lt;/img&gt;&lt;/a" rel="nofollow">http://somesite.com/image-link-here.ext"&gt;&lt;/img&gt;&lt;/a</a>&gt; Try: &lt;a href="!clearblood"&gt;&lt;img src="<a href="http://somesite.com/image-link-here.ext&quot;&gt;&lt;/a" rel="nofollow">http://somesite.com/image-link-here.ext"&gt;&lt;/a</a>&gt;
1439934236
Scaby79
Sheet Author
API Scripter
Yes! Now it works! Thank you very much!!!