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

[Request] Sheet mod script

I have an alchemist playing in my pathfinder game who is always taking mutagens that change his Dex and Str. There is also haste and rage and numerous other spells and abilities that change the attributes of a character. My players hate having to open their sheets too much in game to change their attributes every few rounds so I was wondering if there is an API script that will allow myself and my players to change their attributes on their sheets with a macro. I know there is a token mod script, but as far as I can tell, that won't effect the sheet right? I currently use Power cards, Turnmaker, Torch and isGM (many thanks to TheAaron and Honeybadger for their lovely additions to my games) and would like to find something that will work with those scripts. Is this even at all possible? Does this already exist (I did look but couldn't find one)? Any help would be much apprieciated.
1416492068
The Aaron
Roll20 Production Team
API Scripter
It's definitely possible. My Ammo script make modifications to character attributes, and some people use it in a manner similar to what you list. Some folks replace or remove the messages so it makes more sense for their use case. I intend to make a CharMod to match TokenMod, when I get the time. Can you more completely describe how you want to interact with the stats (are you setting to a specific number, adding a number, how will you reset it, etc) and I might be able to make you a one-off for it. Also, I think there is a script Sam wrote that does alter attributes... I'll see if I can find it.
I would like to add to specific stats. For example, my summoner player casts Bull's Strength on her eidolon all the time and that's a +4 strength enhancement. Or my alchemist boosts his strength and dex by +4 and gives him a -2 to int. Two ways I thought this might be done. First, a player hits a pre-made macro for Str and a box would pop up and you put in the modifier. So, with bull strength, the player would hit it, put in +4 and it would change it. At the end of the spell, would hit it again and put in -4. Alternatively, macro's could be made for all of the abilities that we would use. A "bull's strength on" and then another for "bull's strength off". This way would be very macro heavy as I have a lot of players with buffs and the like. However, I think it might be easier to do, scripting-wise.
1416523228
The Aaron
Roll20 Production Team
API Scripter
So, you can certainly handle the mechanical aspects with the Ammo script. The latest version supports inline rolls, so you can get a set operations by doing math, or you can just do +/- adjustments fairly easily. There is a bit of chat spam in that case, and all of it referring to 'ammo.' I made mention of a method to change the name it uses to reflect the attribute's name at the bottom of the Ammo thread, if such interests you.