TRoW: use [show_if] inside the [objectives] tag

This commit is contained in:
DisherProject 2018-10-15 16:26:18 +02:00 committed by Gregory A Lundberg
parent 3096f19bd7
commit d2a63b9953
No known key found for this signature in database
GPG key ID: 149484078AE8AE9E
2 changed files with 34 additions and 74 deletions

View file

@ -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}
@ -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]

View file

@ -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
@ -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"
@ -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}