Vǫrðr Forge Steam page

Characters and Gameplay

Items and Equipment

The Catalog page of Edit > Project Settings (under ITEMS) is the catalog: every blade, gun, piece of armour and potion your game can hand out, and the blanks the Loot Forge builds from. It is assets/data/items.vfa in your project, one item row per item. A new project's catalog is empty.

Making an item

  1. Open Edit > Project Settings... and choose Create New under ITEMS.
  2. Under 1. Sprite, pick an icon. The list shows every picture in assets/icons/ and every picture brought in with Import Art, each beside its name.
  3. Open the 2. Type list and pick a type. Each row reads name (slot), such as Sword (Weapon) or Amulet (Trinket). A type with a slot makes the item wearable. Leave it on Untyped for something that is only carried.
  4. Type the item's name in the 3. Name field. Its id is the name in lower case with only letters and digits kept: Herb becomes herb, Iron Sword becomes ironsword. Scripts and replies use the id.
  5. Write a Description if you like: the words the player reads when they point at it. Two lines show; the words wrap.
  6. Fill any of the 4. Stats you want, or leave them for later. Weight and Stack left blank take the type's.
  7. Press Create Item. The window turns to the Catalog with the new item picked.

The Rarity list beside the type sets the item's rank. Its rungs are the rarity ladder on ITEMS > Rarity, which you name and colour (see The Loot Forge).

An item

comp item shortsword -1 -
field name Short Sword
field price 40
field heal 0
field slot Weapon
field damage 3-7
field spd 100
comp item healdraught -1 -
field name Healing Draught
field price 25
field heal 20
field weight 0.5
field stack 10
field desc A bitter green tonic. Restores a little health.
comp item cellarkey -1 -
field name Cellar Key
field price 0
field heal 0
field type questitem
field key 1
comp item emberpistol -1 -
field name Ember Pistol
field price 180
field heal 0
field slot Weapon
field range 420
field pellets 1

The name keeps its spaces as written. Price is a plain number. Heal is a number of points, or a percent of full health written with its sign (field heal 50%). An item with heal above 0 is food or drink: using it heals. The fields can come in any order.

The keys

slot
Weapon, Head, Chest, Legs, Feet or Trinket, or the id of a slot your game adds (see Equipment slots below). Leave it off for things that are not worn.
type
A row of the item types (below); a known type lends its slot, its weight and its stack.
damage
A range such as 3-7. One number means both ends.
dice
NdM or NdM+K, for d20 games.
armor
Flat armour.
spd
Attack speed; 100 is an ordinary hand.
dura
How much use it has before it wears out (when durability is on).
tier, grade, unique yes
Its rank.
icon
A picture in assets/icons/. The catalog's Icon row lists every picture there, and every picture brought in with Import Art, for every kind of item. See Icons below.
usesound, pickupsound, dropsound, breaksound
Sounds in assets/audio/: when it is used, picked up off the ground or from loot, falls to the ground, and when its durability runs out. Each is picked from a list; left off, that moment is silent.
desc
Its description: the words under its name when the player points at it, in the pockets, on a painted item grid and at a shop counter.
weight
A number such as 0.5; 0 is weightless. Left off, the item weighs what its type says.
stack
The most one pocket holds. 0 means no limit. Left off, the type's stack applies, and a type with none has no limit: every item stacks as it always has.
size
Cells across and down in a shaped inventory grid, such as 2x3. Left off, the type's size.
key 1
A key item: it cannot be sold, and using it does not use it up.
use
What using it does, beyond heal (below).
cooldown
Seconds after a use before it can be used again.
cooldownf
The same as a formula in the Run expression language, read at the moment of use. It outranks cooldown.
cdgroup
A word several items share, so using one starts the timer for all of them.
attackcd
For a weapon: seconds between attacks while it is worn. Left off, the swing's own length.
attackcdf
The same as a formula.
actcost
What using it costs in a d20 fight under the actions economy: action, bonus action, reaction or free. Left off, an action.
ilvl, set
The level it rolled at, and the item set it belongs to (see The Loot Forge).
ground, worn, fx
Pictures in assets/icons/ for when it lies on the ground and where worn gear is shown (left off, its icon), and a particle effect it wears on the ground and in hand.
note, notetext, notepic
Makes it a note the player can read: its title, its words (\n breaks a line) and a picture. Notes found are kept in the Notes archive, in the order found.
might 3, health 20 ...
A bonus while worn, to any attribute or bar by key or label. hp and mp also work.

Guns and bows

A weapon with a range fires instead of swinging.

range
Reach in world pixels.
pellets, spread
More than one pellet is a shotgun; spread is the scatter in degrees.
arc
A lob, as a percent of range.
splash
A blast radius.
shotspeed
World pixels per second. 0 is instant.
muzzle
How high the barrel sits.
aimstat
The attribute that steadies it (might by default).
sound, muzzlefx, trailfx, impactfx, shell
Its report, its particle effects, and a picture for the shot in flight. A shell that is a frame strip (see Animation) plays its frames as it flies; the catalog calls it Shot Animation.
shoticon
A picture in assets/icons/ for the shot or its ammunition.

A field the catalog does not know is kept on the row and written back as it was, because a file may carry keys from a project whose attributes are named differently. The itemdef verb is stricter and says when a key is mistyped.

Icons

An icon is a PNG. Its transparent pixels stay transparent wherever the interface draws it: the inventory's cells and the worn slots, the hotbar and the action bar, a shop's rows and pictures, a container's rows, the item card, the picture under the pointer while it is dragged, the battle screen's rows and the editor's own Items list. A half-clear pixel mixes with the panel behind it. A picture with no alpha channel is drawn whole.

Every icon list in the editor (the Items page, Create New, and the asset manager's Items table and data documents) offers the pictures in assets/icons/ and the pictures brought in with Import Art, each with its picture. Picking one that is not in assets/icons/ yet copies it there.

A skill's and a spell's icon, the purse's coin and a note's picture are drawn the same way.

On the map an item that lies on the ground is drawn by the world's rule: a solid pixel hides what is behind it and a half-clear pixel blends with it.

In a project made before 0.7.3.1, an icon whose file kept a colour under its clear pixels showed as a solid square. It now shows its shape.

Item types

Project Settings > ITEMS > Item Types is the list of kinds of item. Every project starts with 30 built-in types: Sword, Axe, Mace, Dagger, Spear, Staff, Wand, Bow, Crossbow, Pistol, Rifle, Shotgun, SMG and Launcher (Weapon); Helm, Hood and Mask (Head); Chestplate, Robe and Jacket (Chest); Leggings and Pants (Legs); Boots and Shoes (Feet); Ring, Amulet and Charm (Trinket); and Consumable, Material and Quest Item, which are carried, not worn.

Each row has:

Type
Its name, as the type lists show it.
Slot
Where its items are worn, or Carried. Changing it moves the items of that type that wore the old slot.
Default weight
The weight of its items that name none.
Default stack
The most one pocket holds of its items that name no stack. Unlimited is no limit.
Hands
1 or 2. Saved with the type; nothing in the game reads it yet.
Size
The cells its items take in a shaped inventory grid, when they name none.

Under the table, the picked type's Icon, Ground and Effect are picked from lists: what its items wear when they name none.

Add makes a new type; type its name and press Enter. Rename changes the name the lists show; its id, which items use, stays. Delete hides a type from every list. Hidden types stay at the bottom of the table, dimmed: pick one and Restore brings it back, and a hidden type you made yourself can be removed for good with Remove. A built-in type can be hidden but never removed.

Every change is written at once to assets/data/itemtypes.vfa, with every type in it, the built-ins included, so adding a type never loses the others.

comp type arrow -1 -
field name Arrow
field slot None
field weight 0.1
field stack 50
comp type greatsword -1 -
field name Greatsword
field slot Weapon
field hands 2
comp type mask -1 -
field name Mask
field slot Head
field hidden 1

Stacks

An item with a stack limit fills the stacks the player already has up to the limit, then starts new ones in empty pockets: twelve arrows with a stack of 5 take three pockets, 5, 5 and 2. When the pockets cannot hold all of a pickup, none of it is taken and the player is told how many would fit. A save made before a limit was set loads with its stacks split to the limit when there is room, and kept whole when there is not.

Key items

A key item (the Key item box in the catalog, or key 1) wears a gold corner in the pockets and says "key item" when pointed at. A merchant will not buy it, and using it, in the field or in a fight, does not use it up. A script can still take it with take, which is how a quest collects a key.

Pockets

A new project gives the player 20 pockets. ITEMS > Inventory sets another number, along with how the pockets are drawn, a weight limit, a default stack and whether gear stacks; Inventory tells each. The number is one line in assets/game.vdc:

pockets 30

Any number from 1 to 512 works. A game that does not say has 20.

A save that holds more stacks than the game has pockets, such as one made before the number was lowered, loads every stack: the pockets grow by as many as it needs until the next New Game.

Equipment slots

A new project wears gear in six slots: Weapon, Head, Chest, Legs, Feet and Trinket. ITEMS > Equipment Slots adds, renames and deletes slots and sets what each takes (Inventory). The page writes them as slot rows in assets/data/inventory.vfa, the same file that holds the currencies, and the rows can be written by hand too. With no slot rows, a project has the six. With any slot rows, it has exactly those rows in their order, so a game that wants a second ring writes the six and then the ring:

comp slot weapon -1 -
comp slot head -1 -
comp slot chest -1 -
comp slot legs -1 -
comp slot feet -1 -
comp slot trinket -1 -
comp slot ring2 -1 -
field label Second Ring
field accepts ring

Each row has:

id
The word after slot: letters, digits, _ and -. Items and item types name a slot by its id, and saves record it. The classic ids are weapon, head, chest, legs, feet and trinket, so slot Weapon on an item still means the weapon row.
label
The name the player reads on the character screen. Left off, a classic id reads as its classic name (Weapon, Head...) and any other id reads as itself.
accepts
Item types this row also takes, besides the items whose own slot it is. A word can also be another slot's id, which takes everything that slot takes. Separate the words with spaces or commas.
role
weapon, armor or none. Combat swings and fires whatever is worn in the first weapon row, wherever it sits in the list. The painted HUD's armour name and icon show the chest row, else the first armor row. Left off, a classic id keeps its classic role (weapon for weapon; armor for head, chest, legs and feet; none for trinket) and any other id has none.

Clicking a wearable item in the pockets puts it on its own slot if that is free, else on the first free row that takes it, else it swaps with whatever its own slot holds. With the ring2 row above, a second ring goes on Second Ring while the first stays on Trinket. Every worn piece adds its damage, armour and bonuses, whatever its role, and when the character is hit one worn piece outside the weapon rows takes the wear.

A save records worn gear two ways: worn <number> <item> for the six classic slots, which every build of Vordr reads, and wear <slot>:<item> for every slot by its id. When a save has wear lines they are what loads; a save made before them puts its gear back on the classic slots by number. A piece saved on a slot the game no longer has goes on another row that takes it, else into the pockets, and the Run console says which.

Using an item

Clicking an item that heals or has a use list uses it, once its cooldown is ready. The use field is a list of steps split by ;:

heal <n>
Health back, in points.
heal <n>%
Health back, as a percent of full health. heal 100% mends the player whole.
bar <bar> <n>
A bar back: health or mana, by the bar's key or label, or hp and mp.
effect <id> [rounds] [secs]
A condition from effects.vfa put on. Bare, it lasts 3 rounds in a fight and as many rounds' seconds on the map.
effect <id> off
A condition taken off.
cure <id|kind|all> [another]
Conditions taken off: one by id, every one of a kind (dot, stun ...), or all. See Conditions.
need <need> <points>
A need given back: hunger, thirst, tiredness, cold or heat. need hunger 40 is bread.
learn <id>
A spell learned, or else a skill given.
run <script> [section]
A Run script, from its [use] section unless another is named.
refuel <n>
Fuel into the tank of the vehicle she drives, up to its type's Fuel. While she drives none the item is kept and Not in a vehicle shows.
stat <attribute or bar> <n>
An attribute raised for good, or lowered with a minus: stat might 1. The attribute is named by its key or its label, with the spaces left out or written as _ (stat attack_power 1). It is her own score, so it shows on the character screen and the save keeps it. A bar named instead (its key or label, or hp and mp) has its maximum raised for good and fills by as much: stat health 10 is a seed that raises maximum health by 10.
hurt <n> [raw]
Damage to the one who uses it. Bare, it is an enemy's blow: her armour takes some off, her save may halve it, and at least 1 lands. With raw it all comes straight off her health. At 0 she falls as from any blow.
kill
She falls, and her death is an ordinary one: the Consequences, death.run and the respawn.
respawn
She is put back at the map's Player Start, standing, with her health, items and conditions as they were and nothing lost. Where Consequences lets her save only at save points, automatically or once, or in a cutscene, the item is kept and Not allowed here shows.
field use heal 20; bar mp 10; effect poisoned off; learn fireball; run lanternlit

The item sheet's Heal box takes the same: 20 or 30%. In an event, heal 20 and heal 50% mend the player the same two ways. A number means what it always meant, so an item written before 0.7.3.1 heals what it did.

The catalog checks a list as it is typed and says what it does not understand.

The item's card in the game shows a line for each stat, heal, hurt, kill and respawn step: stat might 1 reads Permanently increases Might by 1.

The attribute and bar rows of an item (Might, Health and the rest) are what it gives while it is worn. An item no slot takes, such as a Consumable, gives nothing from them, and its card says +1 Might when worn. For a seed that raises an attribute when eaten, leave the row at 0 and write stat might 1 in Use; for one that raises maximum health, stat health 10.

A ready recipe: Unstick

An item the player can use when she is stuck in the world. It puts her back at the map's start with nothing lost. Copy the row into assets/data/items.vfa, or make an item on the Items page and type respawn in its Use row.

comp item unstick -1 -
field name Unstick
field type consumable
field price 0
field key 1
field use respawn
field desc Back to the start of the map.

key 1 keeps it in the pockets after a use. For the same thing in the pause menu, turn on Respawn in the pause menu in Consequences.

In battle

On the battle screen, Item opens a list of everything in the pockets that can be used, with how many there are; pointing at one shows its description. Clicking one uses it on whoever is acting, and spends the turn. Clicking back on the command column closes the list.

In a d20 fight on the map, using an item costs the rules' Item AP, which is 0 (free) unless you change it, or its actcost under the actions economy.

In the catalog window

Search, sort and filter the list; the wheel scrolls it. Forged gear appears alongside written items, and a roll you like can be made permanent: it gets an id from its name and joins the file. Duplicate puts a copy beside the original. Deleting asks first; kits and shops that named a deleted item simply lose it. The Type row is a list of the item types; Key item is a box; Description wraps over two rows.

The Asset Manager opens the same catalog as a table, with a column for every key above.

Pickups

Any placed prop can be a pickup: in its Properties, set Interactable > Type to Pickup and choose the Item and Count. The player takes it with the use key, or by touch with Pickup on touch on; it disappears and stays gone, after a save and a load and when she comes back to the map. Full pockets leave it where it lies. A chest or a stash is a container instead.

Respawns, under Interactable, brings a taken pickup back each time she enters the map or a game is loaded, as enemies come back. Off by default.

A pickup is remembered by its Tag (Properties > Object). Outliner > Add… > Pickup gives a new one a tag, and a pickup saved without a tag is given one the first time its map is opened. Names over items on Project Settings > PROJECT shows the item's name over each pickup not yet taken (Names Over Characters).

From a script

give healdraught 2
take ironscrap 3
equip shortsword
useitem healdraught
gold 50

useitem uses one from the pockets as a click does. equip puts an item on as a click does; unequip takes off what a slot holds, by the slot's id or by the item's.