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

Help Macroing the APIs stuff.

I tried making a macro with tokenmod but its not working, help please? !token-mod @{selected|token_id} ?{Status|Blue,[[!token-mod --set statusmarkers| !blue]]|Green,[[!token-mod --set statusmarkers| !green]]|Brown,[[!token-mod --set statusmarkers| !brown]]|Purple,[[!token-mod --set statusmarkers| !purple]]|Pink,[[!token-mod --set statusmarkers| !pink]]|Yellow,[[!token-mod --set statusmarkers| !yellow]]|Poison,[[!token-mod --set statusmarkers| !drink-me]]|KOed,[[!token-mod --set statusmarkers| !sleepy]]|Immobilized,[[!token-mod --set statusmarkers| !interdiction]]|Slow,[[!token-mod --set statusmarkers| !snail]]|Restrained,[[!token-mod --set statusmarkers| !fishing-net]]|Grabbed,[[!token-mod --set statusmarkers| !grab]]|Dazed,[[!token-mod --set statusmarkers| !pummeled]]|Blind,[[!token-mod --set statusmarkers| !bleeding-eye]]|Stunned,[[!token-mod --set statusmarkers| !padlock]]|prone,[[!token-mod --set statusmarkers| !back-pain]]|DeathPenalty,[[!token-mod --set statusmarkers| !angel-outfit]]|Weaken,[[!token-mod --set statusmarkers| !edge-crack]]|Defense Penalty,[[!token-mod --set statusmarkers| !broken-shield]]|Attack Penalty,[[!token-mod --set statusmarkers| !all-for-one]]|Invisible,[[!token-mod --set statusmarkers| !ninja-mask]]|
I got help through pm.
There's a whole lotta wrong with that...  but the command doesn't need to be repeated like that and you don't put them in inline rolls. !token-mod @{selected|token_id} --set statusmarkers|?{Status|Blue|Green|Brown|etc.} ... should work. Not tested. I don't use token-mod, just fyi.
Someone fixed it for me. Its !token-mod --set statusmarkers|?{Status marker|marked,!blue|!green|!brown|!purple|!pink|divine sanction,!yellow|!dead|Ongoing,!skull|Koed,!sleepy|immobilized,!interdiction|slowed,!snail|poisoned,!drink-me|weakened,!edge-crack|invisible,!ninja-mask|restrained,!fishing-net|damagebuffed,!strong|attackbuffed,!fist|stunned,!padlock|fly,!fluffy-wing|dazed,!pummeled|prone,!back-pain|blind,!bleeding-eye|defensebuffed,!bolt-shield|defense-penalty,!broken-shield|grab,!grab|attack-penalty,!all-for-one|death-penalty,!angel-outfit|hunters-quarry,!archery-target}
1469072063
The Aaron
Pro
API Scripter
Handy! 
1469211807
vÍnce
Pro
Sheet Author
Stealing this Devlin.  Thanks.  ;-)
Welcome then glad I inadvertently helped someone. :)
1469404903
Gold
Forum Champion
Devlin M. said: Someone fixed it for me. Its !token-mod --set statusmarkers|?{Status marker|marked,!blue|!green|!brown|!purple|!pink|divine sanction,!yellow|!dead|Ongoing,!skull|Koed,!sleepy|immobilized,!interdiction|slowed,!snail|poisoned,!drink-me|weakened,!edge-crack|invisible,!ninja-mask|restrained,!fishing-net|damagebuffed,!strong|attackbuffed,!fist|stunned,!padlock|fly,!fluffy-wing|dazed,!pummeled|prone,!back-pain|blind,!bleeding-eye|defensebuffed,!bolt-shield|defense-penalty,!broken-shield|grab,!grab|attack-penalty,!all-for-one|death-penalty,!angel-outfit|hunters-quarry,!archery-target} What game? Guessing D&D 4E from your profile and the conditions named. Looks like a good useful format and token-mod tool, I will probably copy and rename/modify this for another game system my group plays.
1469406375
Silvyre
Forum Champion
Gold said: What game? Guessing D&D 4E from your profile and the conditions named. Looks like a good useful format and token-mod tool, I will probably copy and rename/modify this for another game system my group plays. In case it's D&D 5E, here's a similar macro I recently put together (contains HTML entities): !token-mod --set statusmarkers#?{Status| Disadvantaged,red| Advantaged,green| Concentrating,blue| Readying,stopwatch| ―, | Prone,back-pain| Restrained,fishing-net| Grappled,grab| ―, | Incapacitated,interdiction| Stunned,pummeled| Unconscious,sleepy| Dying,skull| ―, | Charmed,chained-heart| Frightened,screaming| ―, | Poisoned,half-heart| Blinded,bleeding-eye| Deafened,lightning-helix| Paralyzed,padlock| Petrified,broken-skull| ―, | Dodging,bolt-shield| Cover (half),broken-shield:2| Cover (three-quarters),broken-shield:5| Cover (full),white-tower| Invisible,ninja-mask| ―, } /w gm &{template:default} {{name=?{Status} [–](!token-mod --set statusmarkers#?{Status}:-1)[+](!token-mod --set statusmarkers#?{Status}:+1)[#](!token-mod --set statusmarkers#?{Status}:?{Number|1|2|3|4|5|6|7|8|9|None,-9}) [Toggle](!token-mod --set statusmarkers#!?{Status}) [Clear All](!token-mod --set statusmarkers#=red#-red)}}
Gold said: Devlin M. said: Someone fixed it for me. Its !token-mod --set statusmarkers|?{Status marker|marked,!blue|!green|!brown|!purple|!pink|divine sanction,!yellow|!dead|Ongoing,!skull|Koed,!sleepy|immobilized,!interdiction|slowed,!snail|poisoned,!drink-me|weakened,!edge-crack|invisible,!ninja-mask|restrained,!fishing-net|damagebuffed,!strong|attackbuffed,!fist|stunned,!padlock|fly,!fluffy-wing|dazed,!pummeled|prone,!back-pain|blind,!bleeding-eye|defensebuffed,!bolt-shield|defense-penalty,!broken-shield|grab,!grab|attack-penalty,!all-for-one|death-penalty,!angel-outfit|hunters-quarry,!archery-target} What game? Guessing D&D 4E from your profile and the conditions named. Looks like a good useful format and token-mod tool, I will probably copy and rename/modify this for another game system my group plays. Yes its 4e. I am not sure how it matters much though. The list of status effect names is in the tokentool helpfile, so its easy enough to change things.
Thanks for this, finally something i need