Liberty S1: Filter event by condition instead of using an

if-then clause

(cherry-picked from commit cbe2bcef6b)
This commit is contained in:
DisherProject 2018-07-14 23:25:31 +02:00 committed by Jeffrey 'Sigurd' Westcoat
parent f1192706a9
commit 8eebc4b202

View file

@ -355,19 +355,21 @@
radius=12
[/filter_location]
[/filter]
[filter_condition]
[variable]
name=town_guards_awakened
not_equals=yes
[/variable]
[/filter_condition]
{IF_VAR town_guards_awakened not_equals yes (
[then]
[message]
speaker=Harper
message= _ "Theyre getting closer to our village! What about the town guards, can they help us?"
[/message]
[message]
speaker=Baldras
message= _ "Theyll come out when they see those riders, or us, approaching, but there arent many of them... I wouldnt count on them being able to protect the village alone for long."
[/message]
[/then]
)}
[message]
speaker=Harper
message= _ "Theyre getting closer to our village! What about the town guards, can they help us?"
[/message]
[message]
speaker=Baldras
message= _ "Theyll come out when they see those riders, or us, approaching, but there arent many of them... I wouldnt count on them being able to protect the village alone for long."
[/message]
[/event]
[event]