Killable Characters
A villager is safe from the player unless you say otherwise. Tick Killable and the player's blows, shots and spells reach them.
Turning it on
- Select the placed character and tick Killable in Properties.
- Or tick Killable on their page of the NPC Portfolio.
It is saved with the map, per placed character.
What it does
A Killable character can be killed whether or not it is aggressive and whether or not it runs a shop. An ordinary swing is enough; no extra key is held. A shot or a damage spell reaches them too, and a wall between stops it as it would for an enemy.
When they fall:
- They leave the map.
- Their Drop Stock falls where they stood, and their type's drop list (ENEMIES > Loot) is rolled there too. See Loot Per Enemy.
- The flag
killed_<name>is set, where the name is their tag (killed_smith_bryn). - Their event's
[killed]section runs. - The player wins the experience and the {renown} their type is worth (ENEMIES > Stats), once. A type with none gives none.
- They are counted in the {bestiary} under their type's name.
A character that is not Killable cannot be hurt at all.
When attacked
A calm character can Stay calm, Fight back or Flee when the player attacks it, by the project's choice or its own. Stay calm is the default. See Calm Characters.
A Killable character takes the blow first, and answers if it lives.
Using it
The flag is how the rest of the game finds out. Anything that tests a flag can use it: a script, a quest stage or a dialog reply.
[killed]
say The smith is dead. The forge goes cold.
flag set forge_coldIn a turn-based project, a swing made outside a fight still lands on a Killable character in reach.
An aggressive character
A character made aggressive (the Aggressive box, or npc provoke from a script), and every character of a type whose Category is Creature, fights as an enemy does and keeps its Killable. Its Properties page, the one a placed enemy has, has the Killable box ("takes hits, dies, drops loot"). Ticked, it is struck like an enemy. Unticked, the player's blows, shots and spells do not reach its body, while it still fights. A character placed before this box existed reads ticked.
Spawn zones
A spawn zone has its own Killable box in Properties, ticked by default. Untick it and every body the zone makes, an NPC type's included, takes no harm and does not die. In a script: spawner killable 0 off.