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

[5e OGL] Running into a macro issue

March 07 (7 years ago)
Justin M.
KS Backer
Hey guys,

I have a macro setup from the OGL 5e sheet for an NPC character. It's using the simple %{selected|repeating_npcaction_$0_npc_action}. When I run it from the test, it works fine, as shown in the first part of the image below. But if I run it from the token action, as shown below, it does not work.


Pressing up after using the token action, the action is coming out as %{Redbrand Ruffian|New Ability 0} and not functioning properly. Any idea what's happening?
March 07 (7 years ago)
Hi Justin M.,

Just to clarify: does this look like the Ability that you currently have set up?


If so, I would try renaming this Ability from "New Ability 0" to something else, saving the Ability, and seeing if that makes a difference.
March 07 (7 years ago)
Justin M.
KS Backer
Yes, it is. I even copied and pasted it over from one that was functioning correctly. Ultimately, I wound up removing the character altogether and reimporting it from another location and it worked. Still, it would be nice to know why it wasn't working correctly.
Could it be due to the spaces in the ability name? Most of the time if you try to type a space in that field it replaces the space with a dash.
March 07 (7 years ago)
Justin M.
KS Backer

Kyle G. said:

Could it be due to the spaces in the ability name? Most of the time if you try to type a space in that field it replaces the space with a dash.

Not that I can tell. I recreated it with the multi-named under the one that is working and it was fine. Maybe there was just something wrong with the one from the official module. 
March 08 (7 years ago)
That's quite odd, but I'm glad you were able to restore a fully-functionally Character.

If you run into this issue again or are able to determine how to replicate it, please let us know! Thanks!
March 08 (7 years ago)
there's an HTML code for spaces just like there is for {}()[] amongst other things, so keep that in mind if this ever comes up again and try debugging with that as well.