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 .
×

Fatalities Macro isn't working like it used to be

Greetings all. I created a macro that pulls other macros that I have labeled Fatalities. If I click on it, it gives me a drop down to select from the different specific fatality macros I have created, blood, holy, ice, etc. The issue is that in my new game I copied all of the macros over and it isn't working the same way. The Macros are as follows. Fatalities: ?{Choose Death |Blood,#Fatality-Blood |Fire,#Fatality-Fire |Holy,#Fatality-Holy |Ice,#Fatality-Ice } Fatality-Blood: /fx nova-blood @{selected|token_id} !token-mod --ids @{selected|token_id} --set statusmarkers|dead When I use just a specific fatality (blood for example) it works just fine and as intended, but when I use the dropdown from the fatalities macro it drops down a list of Blood dead Fire dead Holy dead Ice dead -- and this causes the one I choose to not actually set the token marker to "dead" as it seems to have been separated from the macro when it gets pulled to the new one. Anyone have any advice or a fix for this? 
1607398629
Oosh
Sheet Author
API Scripter
The | pipe in the token-mod command is breaking your Query. You can try escaping it to | and see if that works. That macro would never work as written - if it did ever work, it must have had the escaped HTML in it. Collections macros will resolve all your escaped HTML if you ever re-open them - consider storing them on a macro character sheet instead, as Ability macros do not suffer from this issue.
1607421768
Ziechael
Forum Champion
Sheet Author
API Scripter
tokenMod has a handy inbuilt character replacement option that you can use: Update v0.8.13  -- Added # as an alternative to | in commands. This makes some macros easier to write. !token-mod --set ?{Feature|Dead, statusmarkers#dead|Red 3, statusmarkers#red:3} The html replacement should still work but thats a whole extra 5 characters to type...
@Oosh @Ziechael By taking my original Fatalities Macro and changing the | to # worked like a charm. Thank you two for the help!!