Vǫrðr Forge Steam page

Characters and Gameplay

Money

What the player carries to spend. Every project starts with one currency, gold, and it behaves as it always has: 100 at New Game, no limit, written "gold" and "g", with the coin picture. Edit > Project Settings > MONEY > Currencies renames it, sets its start and its cap, gives it a picture, and adds more currencies.

The Currencies page

One row per currency. Every change is saved to assets/data/inventory.vfa as it is made.

Id
The word scripts and saves use. It is made from the name when the currency is added, and it stays the same when the currency is renamed.
Name
What the player reads: "12 gold", "Sold the cloak, 12 gold.", "Found: 12 gold". Inside a sentence its first letter is lowered, unless the name has another capital (GP stays GP).
Short
The short form beside a price on the shop counter: "12 g". Empty uses the name.
Icon
The picture this currency's coin wears where it lies on the ground. The main currency's also sits beside the purse on the game screens. Coin is the built-in coin; the rest of the list is the pictures in the project's assets/icons folder.
Start
What New Game hands the player. A test in the editor starts with it too.
Cap
The most the player can hold. Every gain stops there. Blank (shown as none) is no limit.
Lost on death
The share lost at a fall: 0, 10, 25, 50 or 100 percent. With Dropped where she fell on (Consequences), it lies where the player fell, to be picked up again.

Add currency opens a name box under the last row: type the name and press Enter. The bin at the end of a row deletes that currency, after asking. The first row cannot be deleted.

The main currency's name and short form also sit in the WORDS rows of ITEMS > Inventory, and every currency's on the Economy page (Tools > Economy...). All of them edit the same rows.

The main currency

The first row is the main currency. Shops price in it, loot tables and fallen enemies drop it, and the gold verb, the gold reading, Player.gold and the save's gold line all speak for it, whatever it is called. Its Lost on death is the same setting as Consequences > Gold lost: change it on either page and the other shows it.

Renaming Gold to Crowns changes the shop counter, the found-loot line, a merchant's "has only" line and the Saga journal ("Traded crowns for a cloak."). A HUD label bound to the gold reading whose caption is the built-in word Gold shows the new name too. While the main currency is called Gold, a shop still says "Not enough coin." as it always has.

More currencies

A second currency (tokens, faction scrip, soul shards) is one more row. It starts at its own Start, stops at its own Cap and loses its own share at a fall. The game screens' top bar shows the main currency by its coin picture, then every other currency the player holds by name. A merchant can price a ware in it: see Shops.

Prices can also change from place to place. Regions, their supply and the trade routes between them are on Shops too.

Scripts reach a currency by its id:

currency <id> [amount]
Add to a currency; a negative amount takes it. It never goes below 0 or past the cap. With no amount it says how much the player holds. Example: currency tokens 5
currency(<id>)
The amount the player holds, in any condition: a dialog reply's if, a quest's needs, an event's conditions. Example: if currency(tokens) >= 3
{currency(<id>)}
The amount, inside a say line. Example: say You have {currency(tokens)} tokens.
Player.Currency(id), Player.AddCurrency(id, amount)
The same from Rûn.

currency(gold) and currency gold 5 work on the main currency too. The gold verb keeps its old rule: taking more than the player has is refused and takes nothing.

Money on a screen

In The UI Editor, a label's Shows row offers Gold (the main currency, under its own name) and Currency (by index): index 0 is the main currency, 1 the second row, and so on. A label can also name one currency by id: currency.tokens.

Saves

The main currency is the save's gold line, as it has always been, so a save from an older build loads with the same gold. Each other currency is a cur <id>=<amount> line, which an older build skips. A save made before a currency existed loads it at its Start; a currency that has since been deleted is dropped when the save loads.

The file

assets/data/inventory.vfa, one currency <id> row each, the main currency first:

VordrAsset { AssetType = InventoryDatabase }
comp currency gold -1 -
field name Crowns
field short cr
field start 250
field cap 9999
comp currency tokens -1 -
field name Tokens
field short tk
field icon token.png
field start 0
field deathloss 25

The first row has no deathloss: its share is deathgold in game.vdc. A project with no inventory.vfa has the gold row alone. The same file will hold the inventory's own tables, so rows the Currencies page does not know are kept when it saves.