Conditions
A condition is something happening to a body over time: poisoned, burning, blessed, stunned, warded. It sits on the player, a companion or an enemy, carries a clock, and either deals damage, heals, or bends a number while it lasts. Spells, items, scripts and the Needs put them on. A burst of sparks is a different thing: see Effects and Particles.
The engine ships 86 conditions in assets/data/effects.vfa. A project's own effects.vfa replaces the list.
The kinds
- dot
- Damage each tick. Amount is the damage, period the seconds between ticks on the map; a fight ticks once a round.
- hot
- Healing each tick, the same way.
- stat
- Bends one of the player's attributes (its stat field) by amount while it lasts.
- armor
- Bends the armour class by amount in a d20 fight. The turn menu and the map do not read it yet.
- stun
- The body loses its turn. On the map an enemy stops moving and thinking.
- tohit
- Bends the chance to land a blow in a fight.
- speed
- Bends initiative: when the body acts in a fight.
- shield
- Soaks damage in the turn menu until its pool (amount) is spent, then falls away.
- dmgmul
- Damage dealt, in percent: 50 is half again, -30 is less.
- takemul
- Damage taken, in percent.
- silence
- No spells may be cast.
- mp
- Magic restored (plus) or drained (minus) each round.
- thorns
- An attacker takes amount back. Nothing reads it yet.
- confuse
- The body may strike the wrong target. Nothing reads it yet.
A recipe
comp effect hollowrot -1 -
field kind dot
field amount 4
field period 2
field label Hollow_Rot
field stack add
field rest cure- kind
- One of the fourteen kinds above.
- amount
- Damage, healing, the bend or the pool.
- stat
- The attribute a stat condition bends.
- period
- Seconds between ticks on the map. 1 when absent.
- label
- The name the player reads. An underscore reads as a space.
- stack
- What a second application of a condition already on does. refresh (the longer of the two clocks; absent is refresh), add (the clocks add), ignore (the clock it has stays), replace (the new clock).
- rest
- cure: a rest seen through to the end takes it off. Absent keeps it.
effectdef <id> <key> <value> sets any of these from a script; savedata effects writes them.
Clocks
A condition counts rounds in a fight and seconds on the map. A fight that ends turns its rounds into seconds (the round_secs tuning). A save carries the conditions on the player and her companions with the time they have left; a load puts them back. A death takes every condition off the one who fell. A map change keeps hers; the enemies of the old map take theirs with them.
On the HUD
While playing, the player's conditions show under the health bar at the top left: a square in the colour of the kind, the label and the seconds or rounds left. Nothing shows while she has none. Project Settings > Project > Show conditions turns the row off (game.vdc showconditions off). A painted screen can also bind Conditions (list) or Condition icon in the UI Editor. The combat log says when a condition is gained and lost.
Cures
- cure <id>
- The run verb takes one condition off the player.
- cure <kind>
- Every condition of that kind:
cure dottakes off every poison, burn and bleed. - cure all
- Every condition.
- cure (an item's use step)
field use cure poisonedon an item; two names may follow:cure poisoned bleeding.effect poisoned offstill works.- rest
- A condition with
rest curecomes off at the end of any rest. A rest row inresting.vfacan name its own:field cures bleeding poisoned(ids, kinds or all). - time
- Every condition runs out on its clock.
A condition the Needs put on is not cured: it goes when the need is met.
Resistance
An enemy type's immune row may name a condition or a kind as well as an element: field immune poisoned stun and a poison or a stun never takes hold on it. A resist row turns away half of the applications, or the percent written after the name: field resist poisoned 75. On the Enemy Types table the Resists and Immune to lists hold the elements, then the kinds, then the conditions.
comp kind bog_wight -1 -
field hp 40
field immune poisoned
field resist dot 50In Rûn
addcondition(body, id, rounds), removecondition(body, id), hascondition(body, id) and conditions(body), where a body is "player", a companion's id, "target" or an enemy's type. Player.Effect(id, rounds [, secs]) puts one on the player.