Skip to content

Commit

Permalink
Liberty S1: Filter event by condition instead of using an
Browse files Browse the repository at this point in the history
if-then clause

(cherry-picked from commit cbe2bce)
  • Loading branch information
DisherProject authored and sigurdfdragon committed Oct 7, 2018
1 parent f119270 commit 8eebc4b
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions data/campaigns/Liberty/scenarios/01_The_Raid.cfg
Expand Up @@ -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= _ "They’re getting closer to our village! What about the town guards, can they help us?"
[/message]
[message]
speaker=Baldras
message= _ "They’ll come out when they see those riders, or us, approaching, but there aren’t many of them... I wouldn’t count on them being able to protect the village alone for long."
[/message]
[/then]
)}
[message]
speaker=Harper
message= _ "They’re getting closer to our village! What about the town guards, can they help us?"
[/message]
[message]
speaker=Baldras
message= _ "They’ll come out when they see those riders, or us, approaching, but there aren’t many of them... I wouldn’t count on them being able to protect the village alone for long."
[/message]
[/event]

[event]
Expand Down

0 comments on commit 8eebc4b

Please sign in to comment.