Sub topic 3
Sources: Where Currency Enters the Game
Assume you understand a game’s core loop and can read short Python examples. This chapter uses currency for a spendable value such as gold, credits, or crafting materials. A source, also called a faucet, is any game action that creates currency or gives it to a player.
Map the sources
Start by listing every way currency enters the game. Include direct rewards and less obvious sources, such as selling items to a shop or receiving a daily login bonus.
| Source | Trigger | Typical player | Rate to measure |
|---|---|---|---|
| Quest reward | Quest completion | All quest players | Currency per quest |
| Enemy drop | Enemy defeat | Combat players | Currency per encounter |
| Daily bonus | Login | Regular players | Currency per day |
| Item sale | Player sells an item | Collectors and traders | Currency per sale |
For each source, record four properties:
- Trigger: the event that grants the currency.
- Amount: the reward for one event.
- Frequency: how often a player can repeat the event.
- Eligibility: which players or conditions qualify.
These properties determine the source’s effective rate. A reward of 100 gold is small if it can be claimed every minute, but large if it can be claimed only once per week.
Distinguish controlled and variable sources
A controlled source has a predictable output. A daily bonus or a fixed quest reward is easy to calculate. A variable source depends on player behavior, chance, or market activity. Random drops and item sales are variable sources.
Controlled sources are useful for pacing because designers can estimate a player’s income. Variable sources can make play feel rewarding, but they can also create unexpected currency growth. Measure both the intended rate and the observed rate.
A source can also be:
- Active: the player must complete an action, such as a quest.
- Passive: the player receives currency over time or from ownership.
- Finite: it can be claimed only a limited number of times.
- Repeatable: it can be used indefinitely.
Calculate the expected income
Use an expected income rate rather than the largest possible reward. If a player completes 4 quests per hour and each quest gives 120 gold, the planned quest income is 480 gold per hour.
def hourly_income(events_per_hour, reward_per_event):
if events_per_hour < 0 or reward_per_event < 0:
raise ValueError("rates cannot be negative")
return events_per_hour * reward_per_event
print(hourly_income(4, 120)) # 480For random rewards, multiply the probability of each result by its value, then add the results. Also test skilled, average, and new players separately. A highly efficient player may activate a source several times faster than the average player.
Record source telemetry
Track each grant with a reason label and a timestamp. Useful measures include currency created per active player, income by source, claims per player, and the share earned by the top players. Compare these measures with your planned rates. Large differences often reveal an exploit, an overly efficient activity, or a source that players ignore.
Exercise
A quest gives 200 gold, and an average player completes 3 quests per hour. What is the planned hourly income from this source?
Show answer
600 gold per hour. Multiply 200 gold by 3 quests.