Made the ANL guardians unable to move also in shallow water.

This commit is contained in:
Lari Nieminen 2010-09-16 06:07:08 +00:00
parent 13cadba5c2
commit b603839822
2 changed files with 15 additions and 36 deletions

View file

@ -361,42 +361,6 @@
{ANL_PLACE_GUARDIAN 8 "Walking Corpse" 47 29}
[/event]
[event]
name=start
# Restricting movement of AI guardians
[store_unit]
[filter]
role=guardian
[/filter]
kill=no
variable=stored_guardians
[/store_unit]
{FOREACH stored_guardians i}
[object]
silent=yes
duration=forever
[filter]
x=$stored_guardians[$i].x
y=$stored_guardians[$i].y
[/filter]
[effect]
apply_to=movement_costs
replace=true
[movement_costs]
flat={UNREACHABLE}
sand={UNREACHABLE}
[/movement_costs]
[/effect]
[/object]
{NEXT i}
{CLEAR_VARIABLE stored_guardians}
[/event]
# Setting leader names
[event]

View file

@ -200,6 +200,21 @@
role=guardian
x={X}
y={Y}
[modifications]
[object]
silent=yes
duration=forever
[effect]
apply_to=movement_costs
replace=true
[movement_costs]
flat={UNREACHABLE}
sand={UNREACHABLE}
shallow_water={UNREACHABLE}
[/movement_costs]
[/effect]
[/object]
[/modifications]
[/unit]
#enddef