Sub topic 8
Soft and hard currencies
This chapter assumes you know what a source and a sink are, and that you can read short Python snippets. It also assumes you have seen how a single currency drifts toward inflation or deflation when inflow and outflow differ. Here you will learn how splitting a currency in two changes those flows, and what each currency is for.
Two currencies, two jobs
A soft currency is earned mainly through play. Gold, coins, and credits are typical examples. Players expect to collect it constantly and spend it constantly. A hard currency is scarce, and players usually get most of it by paying real money. Gems, diamonds, and premium points are typical. Some games also hand out a small amount of it for free.
The split exists because the two currencies have different design jobs.
- Soft currency carries the core loop. It sets the pace of progress and has to flow in and out in large volumes. Its sources and sinks follow the balancing rules from the earlier chapters.
- Hard currency carries the things you want to keep rare, such as premium cosmetics, time skips, extra slots, and special items. Its supply is deliberately small, so each unit stays meaningful.
Keeping the two apart lets you inflate or tune one without breaking the other. If you gave players a generous reward in a single combined currency, you would also be discounting your premium items. Two currencies let you be generous with gold while premium prices stay stable.
| Property | Soft currency | Hard currency |
|---|---|---|
| Main source | Gameplay (quests, drops, sales) | Real-money purchase, plus small capped free grants |
| Typical volume | Thousands or millions per player | Tens or hundreds per player |
| Typical sinks | Repairs, upgrades, consumables, fees | Premium items, convenience, cosmetics |
| Inflation risk | High, so it needs strong sinks | Low, because supply is controlled |
| Main design concern | Pacing and sink acceptance | Fairness and perceived value |
How the flows differ
Soft currency follows the stock and flow model you already know. Income per hour is predictable, and you tune sinks so the balance does not run away.
Hard currency inflow is different. It is gated by purchases and by explicit grants, so you control it directly instead of tuning it through a rate. That gives you three consequences.
- Inflow is a policy decision. You pick how much is free and how much is paid. Each free grant is a source with a number you set and can cap.
- Sinks are mostly one-time purchases. A player spends gems on an item and does not get it back. Because amounts are small, you rarely need a proportional drain.
- The free supply is a design lever. A game with no free hard currency feels stingy. A game with too much undermines the reason to buy it. A common middle path is a small, capped trickle that lets a free player eventually afford one premium item, but slowly.
The diagram shows both currencies side by side, with the points where they touch.
The dashed arrow is the bridge between the two currencies. Whether it exists, and in which direction, is a major design choice. Exchange rates and their risks get their own chapter, so here we only note the consequences.
The one-way bridge
Most games let hard currency buy soft currency or time, and never allow the reverse. This is a one-way bridge. It works for two reasons.
- Players who pay can speed up progress, which is the core promise of many premium offers.
- Soft currency can never be turned into hard currency, so grinding cannot flood the premium economy.
If you allow soft-to-hard conversion, you effectively turn every soft source into a hard source. Any inflation in gold then leaks into gems. A two-way bridge can still be valid, for example in games built around a player market, but you must then treat both currencies as one economy and model them together.
Controlling free hard currency in code
Because free hard currency is a policy source, it should have a cap that the code enforces. The wallet below tracks two currencies, labels every change with a reason, and limits free gems per week. Purchases are not capped, because they are paid for.
from collections import defaultdict
class TwoCurrencyWallet:
FREE_GEMS_WEEKLY_CAP = 50
def __init__(self):
self.balance = {"gold": 0, "gems": 0}
self.free_gems_this_week = 0
self.earned = defaultdict(int)
self.spent = defaultdict(int)
def _check(self, currency, amount):
if currency not in self.balance:
raise ValueError(f"unknown currency: {currency}")
if amount <= 0:
raise ValueError("amount must be positive")
def earn(self, currency, reason, amount):
self._check(currency, amount)
self.balance[currency] += amount
self.earned[(currency, reason)] += amount
def spend(self, currency, reason, amount):
self._check(currency, amount)
if amount > self.balance[currency]:
raise ValueError("insufficient funds")
self.balance[currency] -= amount
self.spent[(currency, reason)] += amount
def grant_free_gems(self, reason, amount):
"""Give free gems up to the weekly cap. Return how many were granted."""
self._check("gems", amount)
room = self.FREE_GEMS_WEEKLY_CAP - self.free_gems_this_week
granted = min(amount, max(room, 0))
if granted > 0:
self.free_gems_this_week += granted
self.earn("gems", reason, granted)
return granted
def new_week(self):
self.free_gems_this_week = 0
wallet = TwoCurrencyWallet()
wallet.earn("gold", "quest_reward", 500)
wallet.spend("gold", "weapon_repair", 120)
print(wallet.grant_free_gems("daily_login", 30)) # 30
print(wallet.grant_free_gems("event_reward", 30)) # 20, the cap leaves room for only 20
wallet.earn("gems", "store_purchase", 100)
print(wallet.balance) # {'gold': 380, 'gems': 150}Note that grant_free_gems returns how many gems were actually granted. Callers should show that number to the player, not the amount they asked for.
Common errors
- Letting hard currency drop from normal play. If gems appear as ordinary loot, players do the arithmetic and treat them as common. Their value to buyers falls. Keep drops rare, capped, or tied to milestones.
- Pricing premium items without a soft-currency reference. A player compares a 300-gem item to what 300 gems would buy in time. If premium prices ignore the pacing of the soft economy, the offers look arbitrary.
- Creating a hidden two-way bridge. A market, trade system, or gift feature can move value from soft to hard indirectly. For example, players may sell items for gold and then buy gems from other players. Audit every path where one currency can be exchanged for goods that carry the other.
- Using hard currency as the only sink for hard currency. If the only way to spend gems is to buy more gold, players buy gold and the premium catalog is ignored. Offer a range of items that gems alone can buy.
- Forgetting refunds and chargebacks. Paid gems come from payment systems, which can reverse a transaction. Your ledger must be able to reverse a grant or mark a negative balance, otherwise a chargeback leaves free currency in the player's account.
Deciding whether you need two currencies
Two currencies add complexity: more telemetry, more sinks to tune, and more things for players to learn. Use them when at least one of these holds.
- You sell something for real money and want to keep its price stable against changes in gameplay rewards.
- You need a rare reward tier that must not be farmed.
- You want a currency that you can freeze, audit, or restrict for legal or platform reasons.
A game with no real-money sales and no scarce premium tier often works better with one currency, and you can add a second one later for events or prestige. Adding a currency after launch is easier than merging two that players already hold.
Summary
Soft currency drives the loop and needs sinks to stay healthy. Hard currency is scarce, mostly paid, and controlled by policy, with free grants capped in code. A one-way bridge from hard to soft keeps the premium supply from being farmed. Later chapters cover conversion rates in detail and how to keep this split fair to players.
Exercise
Your game lets players sell crafted items to a shop for gold, and lets them buy gems from other players with gold in a player market. Explain how this affects the soft and hard currency split, and name one safeguard.
Show answer
The market is a soft-to-hard bridge. Every gold source, such as crafting and selling, becomes an indirect source of gems, because players can convert gold into gems from other players. Gold inflation then leaks into the gem economy, and the scarcity of gems erodes. One safeguard is to remove gems from the market and make them non-tradable. Another is to cap the amount of gems that can move through trades per player per week and log every trade in the ledger.
Exercise
Using the TwoCurrencyWallet above, a player has received 45 free gems this week and an event grants 30 more. How many are granted, and what is the player's weekly free total afterwards?
Show answer
Room is 50 - 45 = 5, so min(30, 5) = 5 gems are granted. The weekly free total becomes 50, and any further grant returns 0 until new_week() is called.