Dodge
A dash with a moment of invulnerability, ahead of the shield
stages Ward SoakpreventMoveSpeed xA dash with a moment of invulnerability, lifted from the shooter slice's content\player.ledger (Dash and Dashing) and the shield it must beat from content\arena.ledger (ShieldSoak). For a quarter second the player moves three and a half times as fast and nothing lands on it. Its prevent stands at the stage Ward, before the shield's Soak: unstaged, the shield would soak the hit before the dash prevented it. The game drives the body at the dash's pace.
1
# A dash with a moment of invulnerability, lifted from the shooter slice's content\player.ledger (Dash and Dashing) and2
# the shield it must beat from content\arena.ledger (ShieldSoak). For a quarter second the player moves three and a3
# half times as fast and nothing lands on it. Its prevent stands at the stage Ward, before the shield's Soak: unstaged,4
# the shield would soak the hit before the dash prevented it. The game drives the body at the dash's pace.6
rate 607
stat MaxHealth8
stat MaxShield9
stat MoveSpeed10
pool Health max MaxHealth11
pool Shield max MaxShield12
damage Health13
stages Ward Soak14
tags Dash16
effect ShieldSoak17
before Damage of holder at Soak when holder.Shield > 018
absorb into Shield20
ability Dash21
tags Dash22
cooldown 1s23
apply Dashing to holder25
effect Dashing26
tags Dash27
stack refresh28
lasts 0.25s29
MoveSpeed x 3.530
before Damage of holder at Ward31
prevent33
archetype Player34
base MaxHealth 10035
base MaxShield 5036
base MoveSpeed 637
full Health Shield38
has ShieldSoak39
grants Dash41
archetype Dummy42
base MaxHealth 100043
full Health1
catalog dodge.ledger3
# The dash's numbers, from Dash (1 s cooldown) and Dashing (0.25 s, MoveSpeed x 3.5); the Player's 100 Health, 50 shield4
# and MoveSpeed 6.6
play "dashing: 0.25 s at three and a half times the pace, nothing landing, the shield untouched; again only after its 1 s"7
make h Player at 08
make d Dummy at 109
act h Dash10
expect done11
expect h.MoveSpeed = 21 from content: the Player's 6, Dashing's x 3.512
deal 50 to h from d13
expect refused Prevented14
expect h.Shield = 50 from content: the Player's MaxShield 50, nothing landed15
expect h.Health = 100 from content: the Player's MaxHealth 10016
save17
advance 0.25s18
expect h lacks Dashing19
expect h.MoveSpeed = 6 from content: the Player's 620
deal 10 to h from d21
expect done22
expect h.Shield = 40 from content: 50 less 10 soaked by the shield23
act h Dash24
expect refused OnCooldown25
advance 0.75s26
act h Dash27
expect doneWhat a change to Health meets
Every rule in this recipe a change to Health passes through, in order. Each line is a link to the rule.
Health: a change to it meets 2 rules, in this order before, at Ward Dashing: Damage of holder at Ward (content/cookbook/mechanics/dodge.ledger:30) prevents it, stops the phase: no rule after it runs; applied by Dash before, at Soak ShieldSoak: Damage of holder at Soak when holder.Shield > 0 (content/cookbook/mechanics/dodge.ledger:17) absorbs from it into Shield; held by Player no archetype lacks a layer its like hold
Run it yourself
ledger check content/cookbook/mechanics/dodge.ledger content/cookbook/mechanics/dodge.play
ledger play content/cookbook/mechanics/dodge.play
ledger pipeline content/cookbook/mechanics/dodge.ledger Health