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

Can you change a rollable table's values with a macro ? I'm out of ideas.

Hello! So one of my players has a characters that can change armors and weapons really quickly in a fight, now comes the problems. The thing is, what i did is to give him multiples character sheets. But now it's getting a bit too much. He has 5 sheets to take care of etc. So i wanted to do something, creating a macro that could take care of that. I though of modifying the code of the character sheet, but i don't know anything about HTML or Javascript. So what i'm left with is to find a way to quickly call for the stats of his armors, and give him a simple way to update them, hence, my question. {TL;DR} I want to know if there is any way i could change a rollable table's values with a macro ? Or is it possible to have variables within the macro that is saved after use ? I know it might not be clear what i want, sorry about that ^^
1559569396
GiGs
Pro
Sheet Author
API Scripter
You cant select specific values on a rollable table, and you cant change the items on a table either, with a macro. You also cant create variables to reuse with a macro. Since you're a pro user, you could do it with the chatSetAttrs script, which allows macros to change attributes on a character sheet. You would create a a macro that presents a dropdown, letting the player select which armour to use. Then for each option, you'd have the list of attributes that would need changing, and their new values. You might keep those attributes and new values in the macro, or in attributes on a character sheet. (I often have a GM character sheet, for storing data.) A second alternative would be a custom script, but it might be overkill if the above does the trick. What attributes would change when the player changes their armour, and how much?
On the character sheet i'm using, (Le Donjon De Naheulbeuk), armors only have an armor value field. And some armors i gave to my players increases their mains stats like strengh, dexterity or charisma.  I actually use that script a lot, never thought of using it here. I'll check that out. Thanks !
1559641728

Edited 1559641772
Alright , i got around and actually did it.  I added attribute for each armor he has and added it to his total stats when rolling for strength etc... And also used Chatsetattrs to allow him to modify his values when he needs to without my help. Thanks pointing it out, i didn't think about it x)
1559642229
GiGs
Pro
Sheet Author
API Scripter
Great!