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

Gambling macro help request in subtracting off of a rollable table or similar

Hello All, I am working on a script to automate a gambling experience for my players.   I begin with the script: "!setattr --sel --modb --sp|-[[1]]" which subtracts a silver piece for their bet.  I then use a rollable table to determine the outcome of a win.  What I am hoping is possible, is to be able to automate adding their winnings to the character sheet.  In other words, if the table says that they win 25 silver pieces, it will add this to the sheet.  Is there a way of doing this? Thank you! Barry
1579540664

Edited 1579540901
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Depending on what sheet you are using, Ben L's Purse Strings might be a more focussed script. It's written with D&D 5e by Roll20 and Shaped in mind. He also recently submitted Versus , a competition/betting script.