Got rid of the [store_unit] and [clear_variable] steps...

...in MAKE_HERO and UNMAKE_HERO, for [unit_overlay] and
[remove_unit_overlay] can now take id=.
This commit is contained in:
Steven Panek 2011-10-07 00:23:47 +00:00
parent fde55ad620
commit 97e1ceae97

View file

@ -125,38 +125,18 @@
#define MAKE_HERO ID_STRING
# Give an existing unit a hero overlay
[store_unit]
[filter]
id={ID_STRING}
[/filter]
variable=hero_store
kill=no
[/store_unit]
[unit_overlay]
x=$hero_store.x
y=$hero_store.y
id={ID_STRING}
image=misc/hero-icon.png
[/unit_overlay]
{CLEAR_VARIABLE hero_store}
#enddef
#define UNMAKE_HERO ID_STRING
# Remove the hero overlay from a unit
[store_unit]
[filter]
id={ID_STRING}
[/filter]
variable=hero_store
kill=no
[/store_unit]
[remove_unit_overlay]
x=$hero_store.x
y=$hero_store.y
id={ID_STRING}
image=misc/hero-icon.png
[/remove_unit_overlay]
{CLEAR_VARIABLE hero_store}
#enddef
#define ANIMATED_CAMPFIRE X Y