Get rid of another pair of syntactically unbalanced macros.

This commit is contained in:
Eric S. Raymond 2007-06-29 07:34:43 +00:00
parent a3ed36ed2c
commit 92dfa04938
3 changed files with 30 additions and 26 deletions

View file

@ -216,28 +216,6 @@
[/delay]
#enddef
#define IF_UNIT_DEAD DESCRIPTION
[store_unit]
variable=deathTest
[filter]
description={DESCRIPTION}
[/filter]
kill=no
[/store_unit]
[if]
[variable]
name=deathTest.hitpoints
less_than_equal_to=0
[/variable]
[then]
#enddef
#define END_IF_DEAD
[/then]
[/if]
{CLEAR_VARIABLE deathTest}
#enddef
#define IF_VAR VARIABLE VALUE
[if]
[variable]

View file

@ -235,7 +235,19 @@ victory_when_enemies_defeated=no
[filter]
description=Malin Keshar
[/filter]
{IF_UNIT_DEAD (Malin Keshar)}
[store_unit]
variable=deathTest
[filter]
description=Malin Keshar
[/filter]
kill=no
[/store_unit]
[if]
[variable]
name=deathTest.hitpoints
less_than_equal_to=0
[/variable]
[then]
[kill]
description=makeshift altar
[/kill]
@ -314,7 +326,8 @@ victory_when_enemies_defeated=no
ms_after=10000
[/music]
{END_IF_DEAD}
[/then]
[/if]
[/event]
[event]

View file

@ -126,7 +126,19 @@ victory_when_enemies_defeated=yes
[event]
name=attack_end
first_time_only=no
{IF_UNIT_DEAD (Mal Keshar)}
[store_unit]
variable=deathTest
[filter]
description="Mal Keshar"
[/filter]
kill=no
[/store_unit]
[if]
[variable]
name=deathTest.hitpoints
less_than_equal_to=0
[/variable]
[then]
[role]
side=2
[not]
@ -145,7 +157,8 @@ victory_when_enemies_defeated=yes
result=victory
next_scenario=null
[/endlevel]
{END_IF_DEAD}
[/then]
[/if]
[/event]
[/then]
[/if]