Use [show_if][variable] instead of [show_if][have_unit]...
...so we don't have ever have Garak's and Zhul's death objectives disappear.
This commit is contained in:
parent
c0f2fd74e5
commit
b9be1742cb
1 changed files with 18 additions and 10 deletions
|
@ -135,20 +135,24 @@
|
|||
description= _ "Death of Garak"
|
||||
condition=lose
|
||||
[show_if]
|
||||
[have_unit]
|
||||
# wmllint: recognize Garak
|
||||
id=Garak
|
||||
[/have_unit]
|
||||
# Yes, we realize we could just use [have_unit] for this and Zhul's, but if Garak
|
||||
# or Zhul dies and if the player checks the objectives, the respective objective
|
||||
# won't be displayed, and disappearing objectives for no good reason would look
|
||||
# buggy.
|
||||
[variable]
|
||||
name=found_garak
|
||||
boolean_equals=yes
|
||||
[/variable]
|
||||
[/show_if]
|
||||
[/objective]
|
||||
[objective]
|
||||
description= _ "Death of Zhul"
|
||||
condition=lose
|
||||
[show_if]
|
||||
[have_unit]
|
||||
# wmllint: recognize Zhul
|
||||
id=Zhul
|
||||
[/have_unit]
|
||||
[variable]
|
||||
name=found_zhul
|
||||
boolean_equals=yes
|
||||
[/variable]
|
||||
[/show_if]
|
||||
[/objective]
|
||||
|
||||
|
@ -564,7 +568,8 @@
|
|||
[/else]
|
||||
[/if]
|
||||
|
||||
# Summon objectives dialog
|
||||
{VARIABLE found_garak yes}
|
||||
|
||||
[show_objectives]
|
||||
[/show_objectives]
|
||||
[/event]
|
||||
|
@ -692,7 +697,8 @@
|
|||
message= _ "All things of this world come to an end, but the power of Eloh endures. A new one shall grow in its place. Come now, let us see to the needs of our people."
|
||||
[/message]
|
||||
|
||||
# Summon objectives dialog
|
||||
{VARIABLE found_zhul yes}
|
||||
|
||||
[show_objectives]
|
||||
[/show_objectives]
|
||||
|
||||
|
@ -1394,6 +1400,8 @@
|
|||
# Clear variables
|
||||
{CLEAR_VARIABLE seen_mudcrawler}
|
||||
{CLEAR_VARIABLE rescued_elves}
|
||||
{CLEAR_VARIABLE found_garak}
|
||||
{CLEAR_VARIABLE found_zhul}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
|
|
Loading…
Add table
Reference in a new issue