Fixed duplicate id's of the elvish bodyguards.

This commit is contained in:
Lari Nieminen 2010-01-24 20:00:02 +00:00
parent 950cdb6b90
commit 2b6787c829
2 changed files with 10 additions and 17 deletions

View File

@ -364,24 +364,25 @@
#endif
[/variable]
[do]
{VARIABLE guard_x 0}
{VARIABLE guard_y 0}
# fallback coordinates, in case no nearby vacant forest is found
{VARIABLE guard_x $ethiliel_loc.x}
{VARIABLE guard_y $ethiliel_loc.y}
[set_variable]
name=guard_x
to_variable=bodyguard_loc[$number].x
value=$bodyguard_loc[$number].x
[/set_variable]
[set_variable]
name=guard_y
to_variable=bodyguard_loc[$number].y
value=$bodyguard_loc[$number].y
[/set_variable]
[unit]
id=Elvish Bodyguard
role=Elvish Bodyguard
name= _ "Elvish Bodyguard"
type=Elvish Ranger
side=1
name=Elvish Bodyguard
x,y=$guard_x,$guard_y
random_traits=yes
[modifications]
@ -394,18 +395,10 @@
[/do]
[/while]
[clear_variable]
name=bodyguard_loc
[/clear_variable]
[clear_variable]
name=ethiliel_loc
[/clear_variable]
[clear_variable]
name=number
[/clear_variable]
{CLEAR_VARIABLE bodyguard_loc,ethiliel_loc,number}
[message]
speaker=Elvish Bodyguard
role=Elvish Bodyguard
message= _ "We stand ready, my lady, to protect you! We shall lead these men of Wesnoth into the fray!"
[/message]
[/event]

View File

@ -135,7 +135,7 @@
[store_unit]
[filter]
side=1
id=Elvish Bodyguard
role=Elvish Bodyguard
[/filter]
kill=yes