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

Macros not rolling dice from referenced macro

The below macros seem to have stopped working. When I run "Wand-of-MM" the template will show up in chat and I can select the options. When I press Cast it will prompt for the number of charges I want to use as it should. However, both the Cast and Recharge will not roll the dice from their respective macros.

What's confusing me though, if I run the WoMM-Cast or WoMM-Recharge macro itself, they will roll their dice just fine. The issue is only when the are being called from Wand-of-MM.

Can anyone offer some insight as to why it suddenly stopped working? (This macro had worked about 3 weeks ago)


May 22 (3 years ago)
GiGs
Pro
Sheet Author
API Scripter

It looks like you've made the mistake of opening a macro that contains a html entity. There should be a &13; (IIRC) in those buttons after the !


Are you saying the "#" should be replaced with &13; or something else?

Also, not sure why this worked but adding a carriage return before each # fixed the issue. 


May 23 (3 years ago)
GiGs
Pro
Sheet Author
API Scripter

The html entity i described is the HTML entity for a carriage return. The proper code is described here: https://wiki.roll20.net/API:Chat

Since your code is a screenshot, i cant copy it, but you need the html entity before the #.

Does leaving the carriage return in the macro work (after you close it)? You used to need toe HTML entity because normal carriage returns didnt persist, but that might have changed.


Jacob M. said:

Can anyone offer some insight as to why it suddenly stopped working? (This macro had worked about 3 weeks ago)

Certain macros need to have special character encoded the right way, so that they can be read correctly.  The gotcha is once put into the macro correctly, the machine reads it and translates it correctly, but when you read the macro, it may look correct but will not save correctly.

So, you might find a useful macro somewhere, copy it, paste it in the macro window, and save.  It works.  You are happy.  Now you open it and make some tiny change (e.g. change the name of the macro) and click save.  Doing this can cause your macro to stop working.

I am no expert here, but I keep a copy of all my macros in a google doc.  When I need to change something, I change the google doc, then copy/paste into the macro.  Not all macros require this degree of care, but quite a few do.

Because you are using an @{template:whatever} you are running into this problem.  The problem is you need to save things that look like "[command name](!
#macro-name)"