Tweaked the filtering of the event...

...commenting on the ineffectiveness of pierce damage against skeletons.
This commit is contained in:
Lari Nieminen 2009-06-20 10:32:11 +00:00
parent 344bafdd81
commit 12895decea

View file

@ -249,22 +249,37 @@
[/objectives]
[/event]
#Ineffective Attack
[event]
name=attack
name=attack_end
[filter]
side=1
type=Spearman, Pikeman, Halberdier, Bowman, Longbowman, Master Bowman, Horseman Commander, Lance Commander
[/filter]
[filter_attack]
type=pierce
[/filter_attack]
[filter_second]
type=Skeleton, Revenant, Deathblade, Draug, Skeleton Archer, Bone Shooter, Banebow
[/filter_second]
[message]
speaker=unit
message= _ "Our weapons are useless against these skeletons! They have nothing for our shafts to pierce but air!"
[/message]
# only comment on pierce damage being useless if the player didn't
# actually kill the skeleton with it
[if]
[variable]
name=second_unit.hitpoints
greater_than=0
[/variable]
[then]
[message]
speaker=unit
message= _ "Our weapons are useless against these skeletons! They have nothing for our shafts to pierce but air!"
[/message]
[/then]
[/if]
[message]
speaker=Deoran
message= _ "We must clear out these undead if you are to reach Mebrin's village! What should we do?"