Liberty S1: Filter event by condition instead of using an

if-then clause
This commit is contained in:
DisherProject 2018-07-14 23:25:31 +02:00 committed by sigurdfdragon
parent 668202ebd2
commit ce2f82698c

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]