Warring Nations

Economy and bounties

Features / Economy

Money moves through a ledger that remembers every request, so a retry is meant never to pay twice. The ledger logic is unit-tested; the Impactor and SG Economy bridges have not been run against the real mods.

Ships in
wn_economy (ledger, treasury bridge), warring_nations (treasury, bounties).
See also
Configuration, Economy commands, Wars and spoils

Article 1The ledger

1.1Every movement is a transfer between two accounts under a request id. Repeat the same id with the same fields and you get the same answer. Reuse it with different fields and it is refused. Money is created only by one system mint account, so total supply is always known.

In game

/wn eco balance
/wn eco pay Alex 50
/wn treasury deposit 500
/wn treasury balance
  • Currency: default code WNC, 0 to 8 decimals.
  • Player payments can be switched off with allowPlayerPayments.
  • Staff grant, take and freeze, and create currencies.

Article 2Use a mod you already have

2.1WN can sit on top of Impactor or SG Economy instead of its own ledger. Because those mods have no request ids, WN keeps a durable journal and recovers interrupted transfers after a crash. Exactly one provider is active, and you choose it with economy.provider in server.toml.

Article 3Nation treasuries

3.1Members deposit from their wallet, and authorised ranks withdraw. By default each nation has its own reserve account. In pooled mode all nations share one. If a nation disbands, its reserve is paid back to depositors pro rata (or elsewhere, via disbandDestination). Money is never deleted.

Article 4Bounties

4.1Place a bounty on a player, list open ones, or cancel yours. A minimum amount applies, and nations do not collect bounties for their own members unless you allow it, because that lets friends move treasury money with staged kills.

In game

/wn bounty place Alex 250
/wn bounty list

Type at least two letters. Esc closes.