I've created a script that lets me add and subtract coins for my players, and everything works great except for the subtraction of coins. I am having a hard time working the logic to account for all scenarios. I make a general check to make sure they have enough overall for the transaction by comparing cp equivalents, and if they have enough coinage downstream (in smaller denominations) it makes change just fine. It's when they don't have enough downstream but they do upstream that I can't figure out. For instance, if a player has enough cp and sp to cover change for the gp they are spending it works great. However, if the player has 0 cp, 0 sp, and 5 gp and they want to buy something that costs 10 sp, so all I'll get is a negative cp covering the expense and never touch the gp. I need to figure out how to know to look upstream for coins to convert. Anyone ever figure this out? I'm banging my head against the wall. Maybe that's why... ¯\_(ツ)_/¯ Thanks! BTW I'm trying to leave coins as they are as much as possible so it is up to my players to convert their coins when they get too many.