Tutorial S01: Correct dialogue about damage for strong / dextrous elves

Thanks to EarthCake for the implementation.
This commit is contained in:
Steve Cotton 2019-10-14 20:52:43 +02:00
parent 3ed601bb91
commit b408a155b3

View file

@ -905,10 +905,29 @@
name=sword
[/filter_attack]
[message]
speaker=Delfador
message= _ "Your elf used a sword (5×4; or 5 damage on each hit, with 4 attacks), which is a <i>melee</i> attack. The quintain defended with its melee attack (3×5; or 3 damage on each hit, with 5 attacks). The ranged attack (the bow) would have been safer."
[/message]
[if]
[have_unit]
id=$unit.id
trait=strong
[/have_unit]
[then]
[message]
speaker=Delfador
# po: a strong elf, so +1 damage
message= _ "Your elf used a sword (6×4; or 6 damage on each hit, with 4 attacks), which is a <i>melee</i> attack. The quintain defended with its melee attack (3×5; or 3 damage on each hit, with 5 attacks). The ranged attack (the bow) would have been safer."
[/message]
[message]
speaker=Delfador
message= _ "Elvish Fighters normally do 5×4 damage with their swords, but this elf has the <i>strong</i> trait, which increases the damage output of melee attacks."
[/message]
[/then]
[else]
[message]
speaker=Delfador
message= _ "Your elf used a sword (5×4; or 5 damage on each hit, with 4 attacks), which is a <i>melee</i> attack. The quintain defended with its melee attack (3×5; or 3 damage on each hit, with 5 attacks). The ranged attack (the bow) would have been safer."
[/message]
[/else]
[/if]
[/event]
[event]
@ -917,10 +936,29 @@
name=bow
[/filter_attack]
[message]
speaker=Delfador
message= _ "Your elf used a bow, which is a <i>ranged</i> attack (3×3; or 3 damage on each hit, with 3 attacks). The quintain has no ranged attack, only a melee attack, so it could not defend itself."
[/message]
[if]
[have_unit]
id=$unit.id
trait=dextrous
[/have_unit]
[then]
[message]
speaker=Delfador
# po: a dextrous elf, so +1 damage
message= _ "Your elf used a bow, which is a <i>ranged</i> attack (4×3; or 4 damage on each hit, with 3 attacks). The quintain has no ranged attack, only a melee attack, so it could not defend itself."
[/message]
[message]
speaker=Delfador
message= _ "Elvish Fighters normally do 3×3 damage with their bows, but this elf has the <i>dextrous</i> trait, which increases the damage output of ranged attacks."
[/message]
[/then]
[else]
[message]
speaker=Delfador
message= _ "Your elf used a bow, which is a <i>ranged</i> attack (3×3; or 3 damage on each hit, with 3 attacks). The quintain has no ranged attack, only a melee attack, so it could not defend itself."
[/message]
[/else]
[/if]
[/event]
[/event]