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

First Forum Question, be gentle.. move/copy items under equipment

So, the character sheet I'm using (BFRPG) has what I think is the "repeating equipment tables" functionality? It has code like this: <div class="sheet-inventory-page1"> <input type="text" class="sheet-center sheet-sub-header" name="attr_tabinvtitle1" value="What is being worn or carried on person " disabled="disabled"> <div class="sheet-row sheet-sub-header"> <div class="sheet-col-1-4 sheet-center sheet-small-label sheet-padl">Name</div> <div class="sheet-col-1-12 sheet-center sheet-small-label">Qty</div> <div class="sheet-col-1-12 sheet-center sheet-small-label">Weight</div> <div class="sheet-col-1-2 sheet-center sheet-small-label sheet-padl">Notes</div> </div> <fieldset class="repeating_inventtab1"> <div class="sheet-row"> <div class="sheet-col-1-4 sheet-small-label sheet-left"><input type="text" name="attr_itemname"></div> <div class="sheet-col-1-12 sheet-padl sheet-center"><input type="number" name="attr_itemquantity"></div> <div class="sheet-col-1-12 sheet-padl sheet-center"><input type="number" name="attr_itemwornenc"></div> <div class="sheet-col-1-2 sheet-padl sheet-small-label sheet-left"><input type="text" name="attr_itemdesc"></div> Question: without using the 5e compendium / character sheet, is there a handy way for me to move an item (say, attr_itemname=longsword; attr_itemquantity=1, attr_itemwornenc=4, attr_itemdesc="found in a stone") from character sheet A to character sheet B? Extra credit if I could paste more than once (which is more of a copy than a cut)? Macros, functions, APIs, anything like that? -Tyson
1568837963
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
ChatSetAttr can write to a sheet, and can even write to and create repeating fields if need be. And you can get the data from a simple attribute call, but it would have to be a very carefully-constructed read and write macro. It might be easier from the end-user point of view to create a script. Though much more difficult to write, of course. I have an example of writing to a sheet using ChatSetAttr in this thread .