Homebrew: MetaValueConversions

From 5etools Community Wiki
Jump to: navigation, search

framless
v1.1.0

🍺 _meta ValueConversions

Value Conversion

This is an optional addition to the meta tag, if the economy that your homebrew uses is different from the standard 5e Dungeons and Dragons system this will help to avoid incorrect currency values.

5eTools uses a numerical value based on the amount of copper an item costs and converts between the currencies, hence that is what such a table would be based on.

An Example:

The _Meta is normally included in a full JSON, for this example it has been removed. See the link for how to develop the _meta.

	"currencyConversions": {
		"GiddyCurrency": [
			{
				"coin": "ap",
				"mult": 1
			},
			{
				"coin": "bp",
				"mult": 0.001,
				"isFallback": true
			}
		]
	},
Learn More
In the above block of code:
  • "GiddyCurrency" is an example of the name of the currency conversion system, this is also what all items and similar should refer to using the valueConversion field .
  • The name of the conversion system ("GiddyCurrency" in this example) contains an array of objects.
  • Inside each object is two additional field and value pairs.
  • The "coin" field is a string that is what the name of the currency should be.
  • The "mult" field is a numerical value that describes how much each value is worth.
  • isFallback
"SS": [
	{
		"coin": "gp",
		"mult": 0.0001
	},
	{
		"coin": "sp",
		"mult": 0.01
	},
	{
		"coin": "cp",
		"mult": 1
	}
]

The above example uses a system called the Silver Standard, where 100cp = 1sp (hence 1/100 = 0.01) and 100sp = 1gp (hence 1/10000 = 0.0001).

Field List (Sources)

If you do not include the required fields (denoted with bold text) the JSON may pass JSONLint but will fail upon stitch.

Field Name Data Type Description Required
coin String Coin's Designation True
mult Whole Number Value Ratio relative to 'base' (GP) True
isFallback Boolean Is this currency the default valuation when the resulting ration gives a whole number?
Example
False



πŸ—„οΈ Reference Files:
[[ | πŸ›’οΈ Requirements Specs (Schemata) ]]
[[ | 🧾 Blank Template]]
[[ | πŸ“– Sample JSON]]
[[ | πŸ’Ύ Functional Example]]
[[ | πŸ“š Repository of Other Examples]]


Reference Tag: (how to link to entries within the "entries":)


Example:



Homebrew Support


Known Issues
Looks like its perfect... (Did we miss anything?)


NAME OF THE ISSUE
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Work Around  : Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


FAQ
Nothing's here (Do you have any suggestions?)
Best Practices
None as yet (Do you have any suggestions?)



Related Features



Did that answer your question(s)?

If not please check the under Support; Troubleshooting or the Known Issues page for further guidance, or go to the Discord community and leave a comment in the issues channel.

If you enjoy the project, please follow this link to see how you can contribute and help make it even better.