# How do i change the currency of the cost of an upgrade?

**URL:** <https://forums.moddingtree.com/t/how-do-i-change-the-currency-of-the-cost-of-an-upgrade/1236>\
**Category:** Modding Developers\
**Created:** [October 29, 2023, 7:55pm UTC](https://forums.moddingtree.com/t/how-do-i-change-the-currency-of-the-cost-of-an-upgrade/1236 "2023-10-29T19:55:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![frenchbaguettememesi](https://forums.moddingtree.com/user_avatar/forums.moddingtree.com/frenchbaguettememesi/32/851_2.png) [@frenchbaguettememesi](https://forums.moddingtree.com/u/frenchbaguettememesi)\
**Post date:** [October 29, 2023, 7:55pm UTC](https://forums.moddingtree.com/t/how-do-i-change-the-currency-of-the-cost-of-an-upgrade/1236/1 "2023-10-29T19:55:30Z")

</div>

title says it all.

hehehe…

---

<div class="post-metadata">

**Author:** ![thepaperpilot](https://forums.moddingtree.com/user_avatar/forums.moddingtree.com/thepaperpilot/32/74_2.png) [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Post date:** [October 29, 2023, 8:07pm UTC](https://forums.moddingtree.com/t/how-do-i-change-the-currency-of-the-cost-of-an-upgrade/1236/2 "2023-10-29T20:07:06Z")

</div>

Copying the relevant docs from [Upgrades](https://github.com/Acamaeda/The-Modding-Tree/blob/master/docs/upgrades.md):

By default, upgrades use the main prestige currency for the layer. You can include these to change them (but it needs to be a Decimal):

- currencyDisplayName: **optional**. The name to display for the currency for the upgrade.
- currencyInternalName: **optional**. The internal name for that currency.
- currencyLayer: **optional**. The internal name of the layer that currency is stored in. If it’s not in a layer (like Points), omit. If it’s not stored directly in a layer, instead use the next feature.
- currencyLocation: **optional**. If your currency is stored in something inside a layer (e.g. a buyable’s amount), you can access it this way. This is a function returning the object in “player” that contains the value (like `player[this.layer].buyables`)
