Skip to content

Commit

Permalink
SotBE: Add [show_if] to the objectives tag
Browse files Browse the repository at this point in the history
  • Loading branch information
DisherProject authored and GregoryLundberg committed Oct 18, 2018
1 parent b66da77 commit 483690c
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 97 deletions.
89 changes: 44 additions & 45 deletions data/campaigns/Son_Of_The_Black_Eye/scenarios/02_The_Human_Army.cfg
Expand Up @@ -21,6 +21,39 @@
[objective]
description= _ "Defeat Lanbec’h"
condition=win
[show_if]
{VARIABLE_CONDITIONAL prepare_retreat boolean_equals no}
{VARIABLE_CONDITIONAL retreat boolean_equals no}
[/show_if]
[/objective]
[objective]
#ifdef EASY
description= _ "Resist until your people are ready to go (turn 12)"
#endif
#ifdef NORMAL
description= _ "Resist until your people are ready to go (turn 13)"
#endif
#ifdef HARD
description= _ "Resist until your people are ready to go (turn 14)"
#endif
condition=win
[show_if]
{VARIABLE_CONDITIONAL prepare_retreat boolean_equals yes}
[/show_if]
[/objective]
[objective]
description= _ "Then move Kapou’e to the signpost in the northeast"
condition=win
[show_if]
{VARIABLE_CONDITIONAL prepare_retreat boolean_equals yes}
[/show_if]
[/objective]
[objective]
description= _ "Move Kapou’e to the signpost in the northeast"
condition=win
[show_if]
{VARIABLE_CONDITIONAL retreat boolean_equals yes}
[/show_if]
[/objective]
[objective]
description= _ "Death of Kapou’e"
Expand Down Expand Up @@ -197,34 +230,10 @@

{PLACE_IMAGE scenery/signpost.png 28 1}

[objectives]
side=1
[objective]
#ifdef EASY
description= _ "Resist until your people are ready to go (Turn 12)"
#endif
#ifdef NORMAL
description= _ "Resist until your people are ready to go (Turn 13)"
#endif
#ifdef HARD
description= _ "Resist until your people are ready to go (Turn 14)"
#endif
condition=win
[/objective]
[objective]
description= _ "Then move Kapou’e to the signpost in the Northeast"
condition=win
[/objective]
[objective]
description= _ "Death of Kapou’e"
condition=lose
[/objective]
{VARIABLE prepare_retreat yes}

[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
[show_objectives]
[/show_objectives]
[/event]

[event]
Expand Down Expand Up @@ -265,24 +274,8 @@
message= _ "Took you long enough. Let’s go!"
[/message]

[objectives]
side=1
[objective]
description= _ "Move Kapou’e to the signpost in the Northeast"
condition=win
[/objective]
[objective]
description= _ "Death of Kapou’e"
condition=lose
[/objective]

{TURNS_RUN_OUT}

[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
{CLEAR_VARIABLE prepare_retreat}
{VARIABLE retreat yes}

[if]
[have_unit]
Expand All @@ -296,6 +289,10 @@
name=Kapoue_leaves
[/fire_event]
[/then]
[else]
[show_objectives]
[/show_objectives]
[/else]
[/if]

[event]
Expand Down Expand Up @@ -332,6 +329,8 @@
image=portraits/kapoue-angry.png
[/message]

{CLEAR_VARIABLE retreat}

[endlevel]
result=victory
bonus=no
Expand Down
Expand Up @@ -35,12 +35,29 @@
condition=lose
description=_ "Death of Kapou’e"
[/objective]
[objective]
condition=lose
description=_ "Death of Grüü"
[show_if]
[have_unit]
id=Grüü
[/have_unit]
[/show_if]
[/objective]

{TURNS_RUN_OUT}

[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "In this scenario, you may ask Grüü to move to any hex by right-clicking on that hex."
[show_if]
[have_unit]
id=Grüü
[/have_unit]
[/show_if]
[/note]
[/objectives]
[/event]

Expand Down Expand Up @@ -298,34 +315,8 @@
message= _ "Right, my son. We help our orcish friends. But you take care... I would be desperate if something happened to you."
[/message]

[objectives]
side=1
[objective]
condition=win
description=_ "Move Kapou’e to the end of the mountains or"
[/objective]
[objective]
condition=win
description= _ "Defeat the enemy leader"+{EARLY_FINISH_BONUS_FOOTNOTE}
[/objective]
[objective]
condition=lose
description=_ "Death of Kapou’e"
[/objective]
[objective]
condition=lose
description=_ "Death of Grüü"
[/objective]

{TURNS_RUN_OUT}

[gold_carryover]
carryover_percentage=40
[/gold_carryover]
[note]
description= _ "In this scenario, you may ask Grüü to move to any hex by right-clicking on that hex."
[/note]
[/objectives]
[show_objectives]
[/show_objectives]
[/event]

[event]
Expand Down
47 changes: 23 additions & 24 deletions data/campaigns/Son_Of_The_Black_Eye/scenarios/15_Civil_War.cfg
Expand Up @@ -22,10 +22,31 @@
[objective]
condition=win
description=_ "Defeat all rebel leaders and..."
[show_if]
[have_unit]
id=Braga, Meato, Ragvan, Kergai
[/have_unit]
[/show_if]
[/objective]
[objective]
condition=win
description=_ "Then move Kapou’e to the signpost in the southwest"
[show_if]
[have_unit]
id=Braga, Meato, Ragvan, Kergai
[/have_unit]
[/show_if]
[/objective]
[objective]
condition=win
description=_ "Move Kapou’e to the signpost in the southwest"
[show_if]
[not]
[have_unit]
id=Braga, Meato, Ragvan, Kergai
[/have_unit]
[/not]
[/show_if]
[/objective]
[objective]
condition=lose
Expand Down Expand Up @@ -385,30 +406,8 @@
message= _ "Now let’s get going, we have an appointment with Shan Taum."
[/message]

[objectives]
side=1
[objective]
condition=win
description=_ "Move Kapou’e to the signpost in the southwest"
[/objective]
[objective]
condition=lose
description=_ "Death of Kapou’e"
[/objective]
[objective]
condition=lose
description= _ "Death of Grüü"
[/objective]

{TURNS_RUN_OUT}

[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]

{GREAT_HORDE_NOTE}
[/objectives]
[show_objectives]
[/show_objectives]
[/then]
[/if]

Expand Down

0 comments on commit 483690c

Please sign in to comment.