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

Can I trigger a macro from inside the core character sheet?

1597691863

Edited 1597691941
Joel
Pro
Sorry if this is a dumb question, I've search ten different ways and can't find a yes/no answer. I'm using the "D&D 5E by Roll20" sheet, and I'd love to be able to add a link to the core character sheet that either outputs directly to the chat (so I can create whatever kind of messages, rolls, inline rolls, etc that I want), or clicking on this added link would call up a macro directly from the core character sheet. Taking one of the goofy examples from the Dice Reference, can I add a clickable line of text somewhere on the core character sheet so when the player clicks on it, it will output "/em Steve gets slapped with [[ 3d6>[[1+3]] ]] carp!"? Or could the same link trigger a macro called #Carp-Slap instead? I've got plenty of real-life examples about Foraging, rolling Portent, resetting features after a rest, and many other uses, but let's stick with that silly example, because I want to learn how to do this in the abstract rather than have someone suggest something that only works for one specific example. The closest thing I've been able to figure out is to add an Ability in the Attributes/Abilities tab and tick the box to make it a token macro or or add it to the macro bar. But I'd much rather just be able to add it to the Core character sheet someplace if possible.
1597692951
David M.
Pro
API Scripter
Without making a custom sheet, the ability with token action is going to be the closest you can get.
1597695816

Edited 1597695837
Joel
Pro
Thank you. Bummer. It'd be great if we could basically put a # in any field and have it call up a macro. Or something to that effect. Thanks for the info though. I guess I'll just have a lot of token actions.
1597697090
Kraynic
Pro
Sheet Author
Depending on the sheet you use, you may just have to be really creative about where you put things like that.There might be other places to put this that might work better. I don't play 5E, so I'm not real familiar with the sheet.  This is from a testing game.
1597700562
David M.
Pro
API Scripter
I'm sorry. You can create additional "attacks" or "spells" which can fire off clickable events in the chat. In the center of the Core sheet, click the plus sign as shown in screenshot below. Then fill out the entries and click the black gear icon in the upper right of that entry to commit. Then, you can click the name of the entry to fire the event. I apologize, I was confused when you said you wanted a macro fired from the sheet. With this method you are limited to the only the fields that are available in the attack "form", while macros can do all kinds of stuff with various content, templates, etc.   
David M. said: I'm sorry. You can create additional "attacks" or "spells" which can fire off clickable events in the chat. You're good, you understood me correctly. Kraynic may have hit on what I was wanting to do, but yes I tried many ways to add a macro to the damage of an Attack or Spellcasting entry, couldn't get it to work. No worries.
Kraynic said: Depending on the sheet you use, you may just have to be really creative about where you put things like that.There might be other places to put this that might work better. Yeah man that looks like what I mean, I'll try that..... thanks. It might clutter up that column but it looks like exactly what I wanted to accomplish. Don't know why it didn't work for me before I started searching.... maybe I had a typo. ::dolt::
OGL is quite limited for firing off macros when people use their abilities. I used command buttons for things and lots of macros for the two years I used it.  The 5e Shaped sheet has a much better toolset for these types of things tho. Its a beast to swap tho, trust me. lol
That's sick, how did you make use of macros? What macro program even works with roll20?
Oh, sorry, I just read that in the first part. My bad!
You can read about macros in Roll20 here:&nbsp; <a href="https://roll20.zendesk.com/hc/en-us/articles/360037256794-Macros" rel="nofollow">https://roll20.zendesk.com/hc/en-us/articles/360037256794-Macros</a>