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

macro for state in warhammer

I will help someone convert this macro which uses api token mod to give state to token. !token-mod ?{Status |Krwawienie, --set statusmarkers#!bleed |Ogłuszenie, --set statusmarkers#!stunned |Oszołomienie, --set statusmarkers#!incapitated |Oślepienie, --set statusmarkers#!dlind |Panika, --set statusmarkers#!frightened |Pochwycenie, --set statusmarkers#!grappled |Podpalenie, --set statusmarkers#!fire |Powalenie, --set statusmarkers#!prone  |Utrata przytomności, --set statusmarkers#!unconcious  |Zaskoczona, --set statusmarkers#!disadvatage  |Zatrucie, --set statusmarkers#!poisoned |zmęczenie, --set statusmarkers#!exhausted |-,  |Niewidzialność, --set statusmarkers#!invisible |Dead, --set statusmarkers#=dead } In addition to the status image, I would like it to add a number on it that determines the level of this state, the height of which could be entered in a separate window, which pops up. in addition, I would like that after selecting this state again, it does not disappear from the character token, but only modifies the level of this state depending on the state value that is entered there
1662301367
David M.
Pro
API Scripter
I think this will do the first part (adding a queried number). However, having the same macro pull double duty for both instantiating and decrementing is likely going to require some crazy html replacements or another solution (like a scriptcard with logic/conditional statements). !token-mod ?{Status |Krwawienie, --set statusmarkers#!bleed:?{Level?|1} |Ogłuszenie, --set statusmarkers#!stunned:?{Level?|1} |Oszołomienie, --set statusmarkers#!incapitated:?{Level?|1} |Oślepienie, --set statusmarkers#!dlind:?{Level?|1} |Panika, --set statusmarkers#!frightened:?{Level?|1} |Pochwycenie, --set statusmarkers#!grappled:?{Level?|1} |Podpalenie, --set statusmarkers#!fire:?{Level?|1} |Powalenie, --set statusmarkers#!prone:?{Level?|1} |Utrata przytomności, --set statusmarkers#!unconcious:?{Level?|1} |Zaskoczona, --set statusmarkers#!disadvatage:?{Level?|1} |Zatrucie, --set statusmarkers#!poisoned:?{Level?|1} |zmęczenie, --set statusmarkers#!exhausted:?{Level?|1} |-, |Niewidzialność, --set statusmarkers#!invisible:?{Level?|1} |Dead, --set statusmarkers#=dead:?{Level?|1} }
thanks for this macro