Coder Social home page Coder Social logo

blawson69 / pursestrings Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 3.0 155 KB

A Roll20 API script for managing currency in games using the 5E Shaped and 5th Edition OGL sheets.

JavaScript 100.00%
roll20 roll20-scripts roll20-api money coins purse merchant inventory shop menu

pursestrings's People

Contributors

blawson69 avatar

Stargazers

 avatar

Watchers

 avatar

pursestrings's Issues

PurseStrings & ItemDB integration not working for recording purchases in OGL character sheet

Describe the bug
Purchased items are not recorded in equipment section of buyer's OGL character sheet.

To Reproduce
Steps to reproduce the behavior:

  1. Display invlist in chat
  2. Click on item to buy with buyer's token selected
  3. No item added to buyer's character sheet equipment

Expected behavior
Expect to have purchased item recorded in equipment of buyer's character sheet when buy command is used.

Screenshots
Before Buying an Item Before Buying an item
After Buying an Item After Buying an Item
PurseStrings Config (Dagger was added after purchase using another input: !idb add Dagger) PurseStrings config

Desktop (please complete the following information):

  • OS: Windows 10 Home
  • Browser: Google Chrome
  • Version: 120.0.6099.129 (Official Build) (64-bit)

Additional context
-When using !idb add Dagger, that command seems to work fine and adds the item to equipment. It seems to be how PurseStrings uses ItemDB's add command that isn't working.
-PurseStrings config is picking up ItemDB and is set to record purchases in the appropriate section.

!ps --give

I have tried to use the --give feature using the suggested format and it doesn't seem to add coinage to the receiver or remove tokens from the giver. The command I am using is !ps --give --giver| --receive| --amount|.

The case here

case '--give':
case '--buy':
commandBuy(msg);
break;
case '--show':
commandShow(msg);
break;

doesnt seem to include --giver as a parameter. I'm not sure that might help or not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.