PDA

View Full Version : Party Sheet Item Sales Parsing without GP



d1wright
April 28th, 2014, 02:46
Ran into an interesting problem using the Pathfinder Ruleset v3.03 with the Party Sheet.

GM created an item to sell on the party sheet and gave it a value of "1079". When sold and split between 5 party members, everyone received "10 79" or something odd like that.

It seems that the parsing algorithm was expecting a "GP" or some such for the value property and parsed off the "79" as the denomination. Worked fine when the value of the item was put in as "1079GP" or "1079 GP".

Probably don't want to default to "GP" as the denomination if this is a base feature for many rulesets, but maybe just adjust it so that if it doesn't find a denomination, it doesn't try to parse a numeral for it. Then it would just create a new entry with a blank denomination.

GMTroll
April 28th, 2014, 15:17
Fixed in 3.0.4. When an item is sold if the denomination does not already exist in Parcel Coins a the amount will be added as a new coin type with a description matching the new denomination in Parcel Coins. In the case of a missing denomination the description is left blank, and any further items sold with no denomination will be added to that coin value. When you distribute coins to the party any denomination without a description will simply be discarded rather than distributed to the party unless you first assign a description. You can have more than one denomination with the same description in Parcel Coins.

CoreRPG does allow a default denomination / currency to be set using PartyLootManager.setDefaultCurrency(s) (CoreRPG/ps/scripts/manager_ps_loot.lua) but CoreRPG / 3.5 / PFRPG rulesets do not currently set a default.

GMTroll
April 28th, 2014, 15:26
To set the default currency for selling items in 3.5E / PFRPG


PartyLootManager.setDefaultCurrency("GP")

could be inserted into the PartyManager2.onInit() function in 3.5E rulesets ps/scripts/manager_ps2.lua file.

d1wright
April 28th, 2014, 15:47
Thanks. Sounds like a good implementation.