UtBS 3: Remove orc_warning variable

This commit is contained in:
Alarantalara 2014-01-27 17:18:45 -05:00
parent 62ddbd2f81
commit 1d125a0e86

View file

@ -1578,11 +1578,9 @@
[/event]
# Somewhere around turn 8 an orc raiding party makes an entrance.
# Affects variables : $sneak_up
# Internal variables : $ambush_turn, $orc_warning
# Internal variables: $ambush_turn
# Creates orcs on random turn around turn 8
# Creates warning about incoming orcs two turns before they show up
# Creates orcs themselvs on random turn around turn 8
# Creates die event for orcish boss and reward for killing him
[event]
name=prestart
#ifdef EASY
@ -1594,24 +1592,6 @@
#ifdef HARD
{VARIABLE_OP ambush_turn rand 6..8}
#endif
{VARIABLE orc_warning $ambush_turn}
{VARIABLE_OP orc_warning sub 2}
[event]
name=turn_$orc_warning
delayed_variable_substitution=no
{NAMED_UNIT 1 (Desert Scout) 1 1 (Elven Scout) ( _ "Wounded Elven Scout") (upkeep=free)}
[message]
speaker=Elven Scout
message=_"Orcs... Not far behind me... From the hills..."
[/message]
[kill]
id=Elven Scout
animate=yes
fire_event=no
[/kill]
[/event]
[event]
name=turn_$ambush_turn
@ -1676,10 +1656,29 @@
[/message]
[/event]
{CLEAR_VARIABLE orc_warning}
{VARIABLE_OP ambush_turn sub 2}
[event]
name=turn_$ambush_turn
delayed_variable_substitution=no
{NAMED_UNIT 1 (Desert Scout) 1 1 (Elven Scout) ( _ "Wounded Elven Scout") (upkeep=free)}
[message]
speaker=Elven Scout
message=_"Orcs... Not far behind me... From the hills..."
[/message]
[kill]
id=Elven Scout
animate=yes
fire_event=no
[/kill]
[/event]
{CLEAR_VARIABLE ambush_turn}
[/event]
# Die event for orcish boss and reward for killing him
# Affects variables: $sneak_up
[event]
name=last breath
[filter]