Remove some redundant conditions

This commit is contained in:
Simon Forsyth 2012-07-09 00:04:47 +00:00
parent 65025e1f4f
commit d9a6cc94ed

View File

@ -1103,17 +1103,22 @@
[/if]
[/event]
# Macro: defeat both leaders, now have to take keys back to citadel door
# Defeat both leaders, now have to take keys back to citadel door
[event]
name=found_both_keys_and_door
#define ELOH_MACRO
[filter_condition]
[variable]
name=num_keys_found
numerical_equals=2
[/variable]
[if]
[variable]
name=found_door
boolean_equals=yes
[/variable]
[/filter_condition]
[then]
[message]
speaker=Kaleh
message= _ "Weve found both keys. Now we just have to take them and open the door to the black citadel. I tire of all this bloodshed. Wherever Yechnagoth hides, we will find her and make her pay for all she has done."
@ -1140,10 +1145,7 @@
note={NO_GOLD_CARRYOVER_NOTE}
[/objectives]
[/then]
[/if]
#enddef
[/event]
# Event 9: Defeat the undead leader
@ -1188,21 +1190,9 @@
{VARIABLE_OP num_keys_found add 1}
[if]
[variable]
name=num_keys_found
numerical_equals=2
[/variable]
[variable]
name=found_door
boolean_equals=yes
[/variable]
[then]
{ELOH_MACRO}
[/then]
[/if]
[fire_event]
name=found_both_keys_and_door
[/fire_event]
[/event]
# Event 10: Defeat the orc leader
@ -1248,21 +1238,9 @@
{VARIABLE_OP num_keys_found add 1}
[if]
[variable]
name=num_keys_found
numerical_equals=2
[/variable]
[variable]
name=found_door
boolean_equals=yes
[/variable]
[then]
{ELOH_MACRO}
[/then]
[/if]
[fire_event]
name=found_both_keys_and_door
[/fire_event]
[/event]
# Event 11: An elf goes to open the doors