SotBE: Add [show_if] to the objectives tag

This commit is contained in:
DisherProject 2018-10-18 17:37:36 +02:00 committed by Gregory A Lundberg
parent b66da77752
commit 483690c63d
No known key found for this signature in database
GPG key ID: 149484078AE8AE9E
3 changed files with 86 additions and 97 deletions

View file

@ -21,6 +21,39 @@
[objective]
description= _ "Defeat Lanbech"
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 Kapoue to the signpost in the northeast"
condition=win
[show_if]
{VARIABLE_CONDITIONAL prepare_retreat boolean_equals yes}
[/show_if]
[/objective]
[objective]
description= _ "Move Kapoue to the signpost in the northeast"
condition=win
[show_if]
{VARIABLE_CONDITIONAL retreat boolean_equals yes}
[/show_if]
[/objective]
[objective]
description= _ "Death of Kapoue"
@ -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 Kapoue to the signpost in the Northeast"
condition=win
[/objective]
[objective]
description= _ "Death of Kapoue"
condition=lose
[/objective]
{VARIABLE prepare_retreat yes}
[gold_carryover]
bonus=no
carryover_percentage=40
[/gold_carryover]
[/objectives]
[show_objectives]
[/show_objectives]
[/event]
[event]
@ -265,24 +274,8 @@
message= _ "Took you long enough. Lets go!"
[/message]
[objectives]
side=1
[objective]
description= _ "Move Kapoue to the signpost in the Northeast"
condition=win
[/objective]
[objective]
description= _ "Death of Kapoue"
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]
@ -296,6 +289,10 @@
name=Kapoue_leaves
[/fire_event]
[/then]
[else]
[show_objectives]
[/show_objectives]
[/else]
[/if]
[event]
@ -332,6 +329,8 @@
image=portraits/kapoue-angry.png
[/message]
{CLEAR_VARIABLE retreat}
[endlevel]
result=victory
bonus=no

View file

@ -35,12 +35,29 @@
condition=lose
description=_ "Death of Kapoue"
[/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]
@ -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 Kapoue 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 Kapoue"
[/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]

View file

@ -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 Kapoue 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 Kapoue 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
@ -385,30 +406,8 @@
message= _ "Now lets get going, we have an appointment with Shan Taum."
[/message]
[objectives]
side=1
[objective]
condition=win
description=_ "Move Kapoue to the signpost in the southwest"
[/objective]
[objective]
condition=lose
description=_ "Death of Kapoue"
[/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]