NR S06a: Fix the filter for Tallin complaining that they're sitting in the caves (#4371)

Now it only triggers if five or less units are outside.

(cherry picked from commit 0be05d06d5593aa0c27c7a765cc14b87cdff5f27)
This commit is contained in:
Steve Cotton 2019-10-03 15:52:53 +02:00
parent 9a4bd1342a
commit a8c96ba1f4

View File

@ -280,40 +280,24 @@
[event]
name=turn 3
# Store starting point coordinates
[store_starting_location]
side=1
variable=starting_point
[/store_starting_location]
# Check every unit belonging to side 1 in a radius of 10 hexes from starting point that are not within radius of
# 5 hexes from starting point.
[if]
[have_unit]
side=1
[filter_location]
x=$starting_point.x
y=$starting_point.y
radius=10
[not]
time_of_day_id=underground
[/not]
[/filter_location]
[not]
[filter_location]
x=$starting_point.x
y=$starting_point.y
radius=5
[/filter_location]
[/not]
count=0-5
[/have_unit]
[then]
# No, Tallin calls for all out charge. "URRAAA!"
# Five or less units are outside, Tallin calls for all out charge. "URRAAA!"
[message]
id=Tallin
message= _ "Come on, why are we just sitting here in these caves?! Have you forgotten already all these orcs have done to us! Let us spill their foul blood on the ground!"
[/message]
[/then]
[/if]
{CLEAR_VARIABLE starting_point}
[/event]
# Player somehow breached bad boss cordon, things are going too well, which means we need to throw an army of wolfriders at him