UtBS 12: Remove num_keys_found variable
This commit is contained in:
parent
dfecd58b6b
commit
0e1da6449b
1 changed files with 15 additions and 25 deletions
|
@ -329,7 +329,6 @@
|
|||
#initialize starting variables
|
||||
|
||||
{VARIABLE found_door no}
|
||||
{VARIABLE num_keys_found 0}
|
||||
|
||||
# set starting scenario objectives
|
||||
|
||||
|
@ -859,22 +858,17 @@
|
|||
[/message]
|
||||
|
||||
[if]
|
||||
[variable]
|
||||
name=num_keys_found
|
||||
numerical_equals=2
|
||||
[/variable]
|
||||
[have_unit]
|
||||
canrecruit=yes
|
||||
side=3,4
|
||||
count=0
|
||||
[/have_unit]
|
||||
|
||||
[then]
|
||||
[message]
|
||||
speaker=Kaleh
|
||||
message= _ "Hey, what about the two keys that we found on the bodies of the undead and orc leaders?"
|
||||
[/message]
|
||||
|
||||
[endlevel]
|
||||
result=victory
|
||||
bonus=no
|
||||
{NEW_GOLD_CARRYOVER 0}
|
||||
[/endlevel]
|
||||
[/then]
|
||||
|
||||
[else]
|
||||
|
@ -915,10 +909,11 @@
|
|||
name=found_both_keys_and_door
|
||||
|
||||
[filter_condition]
|
||||
[variable]
|
||||
name=num_keys_found
|
||||
numerical_equals=2
|
||||
[/variable]
|
||||
[have_unit]
|
||||
canrecruit=yes
|
||||
side=3,4
|
||||
count=0
|
||||
[/have_unit]
|
||||
|
||||
[variable]
|
||||
name=found_door
|
||||
|
@ -995,8 +990,6 @@
|
|||
[/else]
|
||||
[/if]
|
||||
|
||||
{VARIABLE_OP num_keys_found add 1}
|
||||
|
||||
[fire_event]
|
||||
name=found_both_keys_and_door
|
||||
[/fire_event]
|
||||
|
@ -1043,8 +1036,6 @@
|
|||
[/else]
|
||||
[/if]
|
||||
|
||||
{VARIABLE_OP num_keys_found add 1}
|
||||
|
||||
[fire_event]
|
||||
name=found_both_keys_and_door
|
||||
[/fire_event]
|
||||
|
@ -1054,7 +1045,6 @@
|
|||
|
||||
[event]
|
||||
name=moveto
|
||||
first_time_only=no
|
||||
|
||||
[filter]
|
||||
side=1
|
||||
|
@ -1063,10 +1053,11 @@
|
|||
[/filter]
|
||||
|
||||
[filter_condition]
|
||||
[variable]
|
||||
name=num_keys_found
|
||||
numerical_equals=2
|
||||
[/variable]
|
||||
[have_unit]
|
||||
canrecruit=yes
|
||||
side=3,4
|
||||
count=0
|
||||
[/have_unit]
|
||||
[/filter_condition]
|
||||
|
||||
[endlevel]
|
||||
|
@ -1414,7 +1405,6 @@
|
|||
)}
|
||||
|
||||
{CLEAR_VARIABLE found_door}
|
||||
{CLEAR_VARIABLE num_keys_found}
|
||||
[/event]
|
||||
|
||||
# create bats at dusk function
|
||||
|
|
Loading…
Add table
Reference in a new issue