New Currencies
Creating a new currency is pretty simple!
Head inside the CurrencyPal → Currencies folder and duplicate any Data Asset.
Ensure that you generate a new GUID for your new currency.
This is crucial for the saving/loading.
Fill in the rest of the details as desired:
GUID
Unique identifier for each different currency. Important for saving/loading, ensure that this is unique for each currency.
CurrencyIcon
Texture/icon of the currency.
CurrentValue
Current amount of a currency.
MaxValue
The maximum amount a currency can reach.
HasSubCurrency
Important bool used for visual purposes.
If you’re going to be creating a currency which has a sub-currency, ensure that this is set to True.
RequiredAmount
RequiredAmount of X currency will result in 1 Y currency, Y being the ParentCurrency.
So in the provided example:
100 Copper gives us 1 Silver.
10 Silver gives us 1 Gold.
10 Gold gives us 1 Diamond.
Note: If you are planning on making interdependent currencies, feel free to take a look at:
“DA_Diamond”
“DA_Gold”
“DA_Silver”
“DA_Copper”