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

Power Cards not properly calling Token-Mod

March 02 (1 month ago)

I have several old macros that I have not moved over to script cards from power cards because they were working fine until recently. Is anyone else having issues with token-mod not working when called with a power card? For me it seems to be effecting anything I try to do with token bars. This is happening in both the Jumpgate and original platform.

March 02 (1 month ago)
The Aaron
Roll20 Production Team
API Scripter

Hmm. Can you post one of the ones that isn't working?  Also, what character sheet(s) are you using?

March 03 (1 month ago)

Edited March 03 (1 month ago)

Hey Aaron. Thanks for any help you can provide here.

I am using the 5e OLG sheet

Here is a watered down version of the macro that is not working in Jumpgate

!power {{

--name|RECHARGE ROLL FOR ABILITY
--RECHARGE ROLL:| [[ [$Roll] 1d6 + ?{Any Modifiers To The Roll|0} ]]
--?? $Roll < 5 ??ABILITY DID NOT RECHARGE:| Unable to use the ability this round
--?? $Roll >= 5 ??ABILITY RECHARGED:| Able to use the ability this round
--?? $Roll >= 5 ??api_token-mod|_current-page _ids @{selected|token_id} _set bar3_value|1
}}

Also seems to have trouble even apply statusmarkers to tokens when called through power cards

The rest of the macro works fine, just not calling token-mod for some reason.

Token-mod works fine if not inside the power card (ex: !token-mod --current-page --ids @{selected|token_id} --set bar3_value|1) works fine

It does not crash the API Sandbox just does not call token-mod.

I have other macros that call different scripts, like chatsetattr, and they seem to work when called.

March 03 (1 month ago)

Edited March 03 (1 month ago)

OMG. I can't believe that I did this. So the problem was the way I was typing in current-page. It should be current_page. I know that the other way was working before. Guess I have to go back and change all the macros.

Just curious when this change happened. I know that typing it with a "dash" has worked for a long time and only recently stopped working. In fact you are able to type it either way when not nesting it in a power card and it works. 

And I have tried this on both the original format and the Jumpgate format and is the same for both.