Ledger v3 · C# · Godot 4.7 Get started

Fallen

A party's fallen staying where they fell, a cheat death that leaves 1 once, and a raise

✓ 2 plays, 29 steps, all passingFrom the raid, its witnesses fallen.ledger and cheat.ledger
falls at no POOL raising EVENTprevents deathrevive ... athaving Fallen

A party's fallen, a cheat death and a raise, from the raid's two witnesses (its fallen.ledger and cheat.ledger): a hero at no Health falls and stays where it stood, its Died credited to its killer; a guard leaves it at 1, once; a raise brings it back at 30. The fall's tag, Fallen, is the catalog's own once it writes falls: a query or a target clause naming no Fallen passes the fallen over, so neither the hit nor anything else has to say so, and the guard stops the hit after every rule before it, so it needs no order beside them.

content/cookbook/mechanics/fallen.ledgerthe content
1# A party's fallen, a cheat death and a raise, from the raid's two witnesses (its fallen.ledger and cheat.ledger): a
2# hero at no Health falls and stays where it stood, its Died credited to its killer; a guard leaves it at 1, once; a
3# raise brings it back at 30. The fall's tag, Fallen, is the catalog's own once it writes falls: a query or a target
4# clause naming no Fallen passes the fallen over, so neither the hit nor anything else has to say so, and the guard
5# stops the hit after every rule before it, so it needs no order beside them.
6
7rate 60
8stat MaxHealth
9pool Health max MaxHealth
10damage Health
11link team
12allegiance team
13event Died
15effect Downed
16 falls at no Health raising Died
18effect Guarded
19 prevents death
21ability Hit
22 target one enemy
23 deal 60 to target
25ability Raise
26 target one ally having Fallen
27 revive target at 30
29archetype Side
31archetype Hero
32 base MaxHealth 50
33 full Health
34 has Downed
35 grants Hit Raise
content/cookbook/mechanics/fallen.playwhat it must do
1catalog fallen.ledger
2
3# The raid's numbers: heroes of 50 Health, a hit of 60, a raise at 30, and a guard against a hit of 80.
4
5play "a hero at no Health stays fallen, its Died credited to its killer, passed over by the hit; raised at 30"
6 make r Side
7 make b Side
8 make a Hero with team = r
9 make c Hero with team = r
10 make k Hero with team = b
11 act k Hit at a
12 expect done
13 expect a has Fallen
14 expect a alive
15 expect a.Health = 0 from content: the hit's 60 on its 50
16 expect event Died of a credited to k
17 expect k cannot Hit at a BadTarget
18 expect a cannot Hit at k Blocked
19 act c Raise at a
20 expect done
21 expect a lacks Fallen
22 expect a.Health = 30 from content: Raise's revive at 30
23 act a Hit at k
24 expect done
25 expect k.Health = 0 from content: back in play, its hit's 60 on k's 50
26 expect k has Fallen
28play "a killing hit on a guarded hero leaves it at 1, once"
29 make a Hero
30 apply Guarded to a
31 deal 80 to a
32 expect a.Health = 1 from content: Guarded's prevent, one above none
33 expect a lacks Guarded
34 expect a lacks Fallen
35 deal 80 to a
36 expect a has Fallen

Run it yourself

ledger check content/cookbook/mechanics/fallen.ledger content/cookbook/mechanics/fallen.play
ledger play content/cookbook/mechanics/fallen.play