Vǫrðr Forge Steam page

Characters and Gameplay

Companions

Companions fight beside the player. They are written in assets/data/party.vfa, one row each, joined with recruit <id> and sent home with dismiss <id>.

Making one

Open Edit > Project Settings and choose Companions under PARTY. Type an id under NEW COMPANION and press Add Companion, then fill in THIS COMPANION:

Name
What the player is shown.
Look
Their body, picked from your character types that wear a model or have a sprite sheet. A type that wears a model gives them its character document (doc in the file).
Class, Level
Their class and the level they join at.
Health, Magic
Their health and mana.
Can be recruited
Untick it and recruit refuses them.
Party control
Who plays their turns in a d20 fight: the project's rule, the AI, or the player.
ATTRIBUTES
One row per attribute your game has.
STARTING GEAR
One row per equipment slot, listing the items that slot takes. They join wearing it.

Every change is written at once. The rows at the top rename the words your players read for Companion, Party and Reserve.

The file

comp member bryn -1 -
field name Bryn
field class warrior
field level 2
field stats 11 11 9 8 8 8
field hp 55
field mp 0
field pvc npc_1.pvc
field spell mend
field gear weapon iron_sword
field item healdraught 3
comp member <id>
Opens a companion.
name, class, level
The name shown, their class and their level.
stats
Their starting scores, one number per attribute in the order attributes.vfa lists them.
hp, mp
Health and mana.
pvc, doc
Their body. pvc is a baked sprite character or a sprite sheet in assets/characters/; doc is a character document, whose model they wear where models are drawn and whose voice they use.
spell
A spell they know. Repeat the field for more.
sound
Their voice, a sound set.
gear <slot> <item>
An item they start wearing on that slot.
item <id> [count]
An item they start with, in their own bag (or your pockets when bags are shared).
recruitable
no keeps recruit from taking them.
control
ai or player; left off, the project's rule decides.

A new companion starts at level 1 with 40 health, 10 mana and 8 in every attribute.

The party and the reserve

Project Settings > Project, under PARTY, sets Party size (you and your active companions, 4 by default) and Roster size (everyone you can keep, the reserve included, 4 by default). A companion recruited when the party is full waits in the reserve. On the party screen, drag a portrait from the party to the reserve, back again, or onto someone in the other group to swap them.

Gear, bags and tactics

The party screen (P in play) shows each member's figure, class, level, gear, attributes, spells and skills. Click a gear slot to pick what goes there. While the member shown has points to spend, each attribute has a +: click it to put one point there. It works for every companion and for the player's own character, in all three layouts, and a point on the attribute that answers health (its role) raises a companion's maximum health as a level does. In the Expedition layout the attributes show as rows, each with its +, until the points are spent. Companions wear gear on your game's equipment slots, and every worn piece counts in a fight.

The party screen on a companion: her gear slots, attributes, bag and tactics.
The party screen on a companion: her gear slots, attributes, bag and tactics.

Companion inventories on Project Settings > Game Screens is Own or Shared. Own, the default: each companion carries a bag of their own and wears from it. Shared: they wear from your pockets. Dismissed companions hand their gear and their bag to your pockets.

Each companion has tactics, set on the party screen, along with who plays their turns. The AI reads them when it plays the companion:

Stance
aggressive (any foe), defensive (the foes near you) or passive (none).
Target
nearest, weakest or strongest.
Heal under
never, 25%, 50% or 75% health. Below it they drink a healing item they carry; in a d20 fight they first try a heal from their own spells.
Range
close in, or keep their distance.

Layout on the same Game Screens page picks the party screen's look: Tactician, Warden or Expedition.

In a fight

On the battle screen and in turn-based fights on the map, every companion takes their own turn. In a d20 fight you can play a companion's turns yourself (see Combat). On the map in real time they follow the player, strike with their weapon, and cast the spells their class, level, book and scores allow. A party is beaten only when everyone is down.

Levels

Companions gain experience when the player does and level up the same way she does: their own learning score, the difficulty, the experience curve, points per level, their class's grants, and health and mana growth. Who gets how much is set in the COMPANION XP rows of the Attributes page (open attributes.vfa in the asset manager and pick Leveling). They are the leveling row's companionxp, share and hook fields. Companions gain picks one of these:

present_standing
Companions who are with her and standing take a share. The default.
alongside
Every companion takes a share.
fixed
No companion gains experience from hers.
custom
A Rûn function decides, per companion (script.Function).

The rows under it, each a whole percent of what she gains (Custom hook (script.Function) names the function):

Share of hers, %
What each standing member of the party takes. 100 by default.
Downed share, %
What each member who is down takes. With present_standing it starts at 0; with alongside, at the Share of hers.
Reserve share, %
What each companion waiting in the reserve takes. 0 by default, so the reserve gains nothing. A reserve member levels up as an active one does.

With fixed nobody takes a share. With custom the function decides for the party, and the reserve takes nothing. In the file they are share, downedshare and reserveshare.

Their level, experience, points, scores, spells, gear, bags and tactics ride the save.

When a companion falls

Project Settings > Consequences decides, in When a companion falls: Up After the Fight, Down Until Healed, or Gone for Good. See Consequences.

From a script

recruit bryn
partyxp bryn 120        grant experience
partylevel bryn 5       raise to a level
partypoints bryn +2     unspent points
partyhp bryn 0          down them
dismiss bryn