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

[SCRIPT] PurseStrings - Manage currency and more

Ravenknight said: Ben L. said: I just pushed an update that more aggressively processes the GM Notes to remove HTML formatting. Give it a try and let me know if it solves your issues. Hi Ben, then copy/paste seems to work better but now I get a wierd API error whenever I try to buy stuff. I just pushed a little tweak. I made it even more aggressive on sanitizing the Notes. Let me know if the issue persists.
keithcurtis said: Thanks Ben! Here's the inevitable feature creep request: For goods (not services), would it be possible to have the name of the item purchased added to the equipment line of the buyer? I know for things that have compendium drop interaction, this is not possible to reproduce. I.e. a sword added will not add an attack. But it would be nice to buy rations or rope and have them added. Perhaps a query ("Add item to Equipment? Y/N")? I had considered using a combination of Customizable Roll Listener and ChatSetAttr to do this, but that approach sounds rather wonky and prone to error. I have written two scripts ( PotionManager and GearManager ) that I use for my Shaped sheet game that puts potions and certain adventuring gear and wondrous items under utilities or offense so you can actually use them like you want. They're very specific because of the variety of configurations. But adding random items without the full complement of variables (uses, attacks, etc.) may just make things difficult. Hard-coding things in would be extremely difficult and time consuming, and you would not be able to sell random, home-brew items on the fly without a complex way to include them in the database. However, I could look at adding purchased items to a notes field of the character sheet. On the Shaped sheet, there are 2 Miscellaneous Notes fields down by the Appearance and Backstory fields. The OGL sheet has a Treasure field. It wouldn't be difficult to throw a simple list of purchased items in there. That way you can keep track of them until you can add them appropriately. Would that work for you?
1569792378
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If it appends them to the existing treasure field (which I add to with other automation), that would work. I was just thinking of adding a line to the Equipment list and only filling in name and qty, not requiring any of the actual statistics that a compendium drag would get you (for the reasons you outline above). Potion Manager and Gear Manager look cool, but I handle them with my Deal script (potions as cards), and the Universal Chat Menu for equipment. I just took a look and your repository, and you've got some neat stuff there. Loot Generator may bear looking at.
keithcurtis said: Potion Manager and Gear Manager look cool, but I handle them with my Deal script (potions as cards), and the Universal Chat Menu for equipment. I just took a look and your repository, and you've got some neat stuff there. Loot Generator may bear looking at. They're definitely one solution among many. I couldn't get into the decks so I just ignore them. I have a lot of stuff I just haven't shared here in the forums yet. I wrote most of them for personal use because I saw a need (PurseStrings, LootGenerator, RemoveTheCorpse), but after a while they became so essential to my game I realized other people might need the same thing. I wrote the first version of PurseStrings over a year ago and I'm just now posting it! BTW I already have the functionality of putting a list of purchased items in the Miscellaneous Notes/Treasure field almost done. Seems I didn't have anything better to do today...
Update: I added the option to record purchased items into the character sheet. For the 5e Shaped sheet it gets written into the Miscellaneous Notes field near the bottom of the sheet, and for the 5th Edition OGL sheet it's the Treasure field in the Bio tab. The script will ignore everything else you already have in the field and you can type whatever you want above it or below it. So now you can have a record of your buying spree for adding into the appropriate locations at a later time. :)
1569853238
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Thank you, sir!
Ben L. said: Ravenknight said: Ben L. said: I just pushed an update that more aggressively processes the GM Notes to remove HTML formatting. Give it a try and let me know if it solves your issues. Hi Ben, then copy/paste seems to work better but now I get a wierd API error whenever I try to buy stuff. I just pushed a little tweak. I made it even more aggressive on sanitizing the Notes. Let me know if the issue persists. Hi Ben, still got this problem when trying to buy stuff even with the latest version. The inventory is shown in chat without any issues though.
Ravenknight said: Hi Ben, still got this problem when trying to buy stuff even with the latest version. The inventory is shown in chat without any issues though. Can you add me to your game and make me GM? I would need to know the merchant and which characters are trying to buy (unless it's all of them).
Sure thing! I will send you a PM.
I too am still having issues the merchant_id error. I'm pasting the example into notepad before I paste to roll20. I have one character sheet and one token both with the same name. And the inventory is saved in the gm notes of the token. Not sure if there is something else that I'm missing here? 
1570387968

Edited 1570388000
Uneek said: I too am still having issues the merchant_id error. I'm pasting the example into notepad before I paste to roll20. I have one character sheet and one token both with the same name. And the inventory is saved in the gm notes of the token. Not sure if there is something else that I'm missing here?  PM me with the specifics and I'll take a look. Also, make sure you are using the latest version. ;)
Sent you a PM.
1572616906

Edited 1572617673
Having issues with give command. I keep receiving a  Transaction Error The following errors were encountered: Buyer character was not found. I was using the following Test Macro !ps --give  --giver|-Ls8Sfbry6-tib0B444D_xyT9r  --taker|-LeZ_JUWVFmAGGuuqE_a --amt|1g This is what I was originally trying to use but I backed off to troubleshoot, but still received the same error: !ps --give  --giver|@{selected|character_id}  --taker|@{target|character_id} --amt|?{Amount - Use pp gp sp or cp in any order  - i.e. 3cp 1pp 10 gp} I know that I must be doing something incredibly stupid, and any assistance would be greatly appreciated. I love the merchant capability and the interaction with LootGenerator.  Probably should  in a different thread, but I was curious if lootGen could send and write items to a selected character treasure  section using 5E OGL sheet. Please disregard.. I figured it out. I should  have used token ID. Works fine now Thanks
Haldrin said: [deleted content]  ...curious if lootGen could send and write items to a selected character treasure  section using 5E OGL sheet. Funny you should mention that! An update for just that functionality is coming later this weekend. ;) I'll be posting the script to its own thread though, so be on the lookout for it.
I keep getting an inventory error that says not a valid token. Still pretty new here and I put the name of my merchant as the merchant I’d. What am I doing wrong?
1573150734

Edited 1573150786
How do I remove someone from the Party Loot? We had a PC death and I am trying to remove his old PC. And is there a way to see a list of active party members for the script?
Anthony V. said: How do I remove someone from the Party Loot? We had a PC death and I am trying to remove his old PC. And is there a way to see a list of active party members for the script? Figured it out :) I was looking in the help section but upon looking in the Github I figured it out
Zachary M. said: I keep getting an inventory error that says not a valid token. Still pretty new here and I put the name of my merchant as the merchant I’d. What am I doing wrong? The merchant name is not the ID. You must send the ID of the merchant token. Your chat command or macro will be something like this, assuming that you have your merchant token selected: !ps --invlist @{selected|token_id}
has anybody made any useful macros or standard merchant lists for this they'd like to share? I'm curious how ya'll streamline this in game
1574703394
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I use the Map Pins stupid trick on my campaign city map. Since I use the API GM Notes version, the GM notes field is already used. So each merchant has a tiny icon next to them to hold their pursestrings inventory.