Skip to content

Commit

Permalink
TRoW: use [show_if] inside 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 3096f19 commit d2a63b9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 74 deletions.
41 changes: 11 additions & 30 deletions data/campaigns/The_Rise_Of_Wesnoth/scenarios/12_A_Final_Spring.cfg
Expand Up @@ -271,6 +271,15 @@
description= _ "Death of King Addroran IX"
condition=lose
[/objective]
[objective]
description= _ "Death of Lord Typhon"
condition=lose
[show_if]
[have_unit]
id=Lord Typhon
[/have_unit]
[/show_if]
[/objective]

{TURNS_RUN_OUT}

Expand Down Expand Up @@ -402,36 +411,8 @@
side=1
type=Merman Fighter,Merman Hunter
[/allow_recruit]
[objectives]
side=1
[objective]
description= _ "Defeat all enemy leaders"
condition=win
[/objective]
[objective]
description= _ "Death of Prince Haldric"
condition=lose
[/objective]
[objective]
description= _ "Death of Lady Jessene"
condition=lose
[/objective]
[objective]
description= _ "Death of King Addroran IX"
condition=lose
[/objective]
[objective]
description= _ "Death of Lord Typhon"
condition=lose
[/objective]

{TURNS_RUN_OUT}

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

[event]
Expand Down
67 changes: 23 additions & 44 deletions data/campaigns/The_Rise_Of_Wesnoth/scenarios/17d_Cursed_Isle.cfg
Expand Up @@ -169,28 +169,8 @@
message= _ "Get her before she ensorcels us all!"
image=portraits/haldric-mad.png
[/message]
[objectives]
side=1
[objective]
description= _ "Defeat the Vampire Queen"
condition=win
[/objective]
[objective]
description= _ "Death of Prince Haldric"
condition=lose
[/objective]
[objective]
description= _ "Death of Lady Jessene"
condition=lose
[/objective]

{TURNS_RUN_OUT}

[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[show_objectives]
[/show_objectives]
[set_variable]
name=queen_awake
value=1
Expand Down Expand Up @@ -305,6 +285,25 @@
[objective]
description= _ "Defeat all enemy leaders"
condition=win
[show_if]
[not]
[have_unit]
id=Midnight Queen
[/have_unit]
[/not]
[have_unit]
id=Isorfilad,Tinoldor
[/have_unit]
[/show_if]
[/objective]
[objective]
description= _ "Defeat the Vampire Queen"
condition=win
[show_if]
[have_unit]
id=Midnight Queen
[/have_unit]
[/show_if]
[/objective]
[objective]
description= _ "Death of Prince Haldric"
Expand Down Expand Up @@ -456,28 +455,8 @@
speaker=Lady Jessene
message= _ "We still have to defeat that vampire queen!"
[/message]
[objectives]
side=1
[objective]
description= _ "Defeat the Vampire Queen"
condition=win
[/objective]
[objective]
description= _ "Death of Prince Haldric"
condition=lose
[/objective]
[objective]
description= _ "Death of Lady Jessene"
condition=lose
[/objective]

{TURNS_RUN_OUT}

[gold_carryover]
bonus=yes
carryover_percentage=40
[/gold_carryover]
[/objectives]
[show_objectives]
[/show_objectives]
[/then]
[else]
{CLEAR_VARIABLE queen_awake}
Expand Down

0 comments on commit d2a63b9

Please sign in to comment.