
I've been trying to get this to work for a while and I thought I could figure it out but I've conceded defeat so:
When trying to use TokenMod within Scriptcards to alter a Targeted token, I cannot get the changes to pass through. However, when using a Selected token it works just fine.
Namely, what I'm trying to do is add a check in all my Macros such that if a creature would hit less than 50% hp to tag it with a Red Statusmarker and if 0 hp then remove the Red Statusmarker and add the Dead Statusmarker. I had been using DeathTracker but that seems to only work to set the Statusmarkers based on health if I manually input the change in health values.
The first thing I tried was to try SelectManager, but the problem is that I don't believe using the Targeting feature of Roll20 to Target a token actually Selects that Token, so I see no reason for it to belong to the array of Selected tokens. Regardless, I tried the following to no avail:
--@forselected+|token-mod _ids @{target|token_id} _set statusmarkers dead
The previous command also produces the following error: (From API): No selected tokens to use for that command. Please select some tokens then try again.
Here are some additional variations I've tried:
--@token-mod|_ids @{target|token_id} _set statusmarkers dead
--#targetToken|@{target|token_id} --@token-mod|_ids [*T:token_id] _set statusmarkers dead
One additional point I feel is interesting: these commands also fail if I Target the Selected token, making @{target} and @{selected} the same.
I'm currently using the Latest one-click versions of Scriptcards, TokenMod, and SelectManager.