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

Need help tracking status effects automatically.

September 06 (6 years ago)

Edited September 06 (6 years ago)

Hi, friends!

I played my first game of D&D 4e on roll20 a few days ago. I wrote some cool macros for my abilities that show the ability description in a 4th edition-style power card, using the &{template:dnd4epower} tag. As someone who's a dabbling programmer, I've had an absolute blast figuring out all of the macro syntax, linking my macros to my character sheet, and how to completely automate anything and everything I possibly could. 


But my party and I were getting frustrated with trying to keep track of status effects. I mean, yeah, you could have the GM throw up an icon on the affected token, and you could have the GM put a custom item in the initiative tracker to keep track of when the effect expires, but that just seems like too much for a GM to have to juggle when he's busy worrying about the NPC's, and it seems like there should easily be a way to automate the process with the click of a button. 

I've experimented with trackerjacker and initiative_tracker APIs, but my issue with trackerjacker is that it expects you to manually pick an icon every single time you use an ability, which hurts my brain. Why can't I include my icon selection in my macro, so I don't have to pick the icon manually every single time? Initiative_tracker automates the icon-selection process, but I don't think it allows players to apply effects to tokens they don't control. Correct me if I'm wrong about any of this. 

So I was just trying to figure out if there was any way to automate my Warlord's ability, let's say "Warlord's Favor." Warlord's Favor applies an attack bonus buff equal to 1 + Int Modifier to the ally of my choice, against an enemy of my choice until the end of my next turn. In order for a macro I'd create for this ability to work the way I'd like, it would need to pull my character's INT modifier, select an ally that receives the buff, select an enemy to whom the ally receives the buff for, and put an icon on the ally representing the buff that expires at the end of my next turn. 

If I have to, I think I could use initiative_tracker to give myself an effect that merely states "An ally of your choice gains [[1+@{INT}]] to attack rolls against an enemy of your choice," but that's a bit of a stretch of a compromise, especially considering I pay $10/mo for this software. 

Is there anything I can do to automate this ability elegantly, as a player? 

September 06 (6 years ago)
The Aaron
Pro
API Scripter

There are definitely ways this could be automated with the API.  There are some scripts out there that could get you where you want to go with some mild setup.  One is TokenMod, which could let you apply a status marker with a number as part of an ability.  Another is RealizeStatusMarkers, which makes each status marker into an attribute on the character represented by the token.  With that, you could use TokenMod to set your Int modifier on some status marker, and on the character, it could reference the status marker's value attribute as part of some calculation.

!token-mod --set statusmarkers|lightning-helix:@{bob|INT} --ids @{target|token_id}

and

[[1d20 + @{SM_lightning-helix} ]]

etc.