Skip to content

Commit

Permalink
TSG: code refactorings in the first scnenarios
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
sevu committed Sep 12, 2017
1 parent d9f1fea commit 49e15e2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 45 deletions.
Expand Up @@ -407,7 +407,7 @@
[if]
[variable]
name=citadel_secured
not_equals="yes"
boolean_not_equals="yes"
[/variable]
[then]
[message]
Expand All @@ -433,7 +433,7 @@
[if]
[variable]
name=citadel_secured
not_equals="yes"
boolean_not_equals="yes"
[/variable]
[then]
[message]
Expand Down
54 changes: 12 additions & 42 deletions data/campaigns/The_South_Guard/scenarios/04_Vale_of_Tears.cfg
Expand Up @@ -233,11 +233,11 @@
[not]
[variable]
name=undead_defeated
equals=yes
boolean_equals=yes
[/variable]
[variable]
name=bandits_defeated
equals=yes
boolean_equals=yes
[/variable]
[/not]
[/show_if]
Expand All @@ -248,7 +248,7 @@
[show_if]
[variable]
name=mebrin_found
not_equals=yes
boolean_not_equals=yes
[/variable]
[/show_if]
description= _ "Move Ethiliel to Mebrin’s village"
Expand Down Expand Up @@ -501,27 +501,17 @@
[if]
[variable]
name=mebrin_found
equals=yes
boolean_equals=yes
[/variable]
[variable]
name=undead_defeated
equals=yes
boolean_equals=yes
[/variable]
[variable]
name=bandits_defeated
equals=yes
boolean_equals=yes
[/variable]
[then]
# [kill]
# type=Elvish Ranger,Elvish Avenger
# animate=no
# fire_event=no
# [/kill]

{CLEAR_VARIABLE mebrin_found}
{CLEAR_VARIABLE undead_defeated}
{CLEAR_VARIABLE bandits_defeated}

[endlevel]
result=victory
bonus=yes
Expand Down Expand Up @@ -557,27 +547,17 @@
[if]
[variable]
name=mebrin_found
equals=yes
boolean_equals=yes
[/variable]
[variable]
name=undead_defeated
equals=yes
boolean_equals=yes
[/variable]
[variable]
name=bandits_defeated
equals=yes
boolean_equals=yes
[/variable]
[then]
# [kill]
# type=Elvish Ranger,Elvish Avenger
# animate=no
# fire_event=no
# [/kill]

{CLEAR_VARIABLE mebrin_found}
{CLEAR_VARIABLE undead_defeated}
{CLEAR_VARIABLE bandits_defeated}

[endlevel]
result=victory
bonus=yes
Expand Down Expand Up @@ -658,27 +638,17 @@
[if]
[variable]
name=mebrin_found
equals=yes
boolean_equals=yes
[/variable]
[variable]
name=undead_defeated
equals=yes
boolean_equals=yes
[/variable]
[variable]
name=bandits_defeated
equals=yes
boolean_equals=yes
[/variable]
[then]
# [kill]
# type=Elvish Ranger,Elvish Avenger
# animate=no
# fire_event=no
# [/kill]

{CLEAR_VARIABLE mebrin_found}
{CLEAR_VARIABLE undead_defeated}
{CLEAR_VARIABLE bandits_defeated}

[endlevel]
result=victory
bonus=yes
Expand Down
Expand Up @@ -191,7 +191,7 @@
hidden=yes

fog=yes
share_view=yes
share_vision=all

[ai]
recruitment_pattern=fighter,fighter,mixed fighter
Expand Down

1 comment on commit 49e15e2

@sevu
Copy link
Member Author

@sevu sevu commented on 49e15e2 Sep 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case somebody wonders, the variables will be cleared in the victory event.

Please sign in to comment.