added MAKE_HERO and UNMAKE_HERO macros in macros/image-utils.cfg
This commit is contained in:
parent
a240bb8eb3
commit
d39c43255e
1 changed files with 37 additions and 0 deletions
|
@ -124,3 +124,40 @@
|
|||
[/effect]
|
||||
[/object]
|
||||
#enddef
|
||||
|
||||
#define MAKE_HERO NAME
|
||||
# Give an existing unit a hero overlay
|
||||
[store_unit]
|
||||
[filter]
|
||||
description={NAME}
|
||||
[/filter]
|
||||
variable=hero_store
|
||||
kill=no
|
||||
[/store_unit]
|
||||
[unit_overlay]
|
||||
x=$hero_store.x
|
||||
y=$hero_store.y
|
||||
image=misc/hero-icon.png
|
||||
[/unit_overlay]
|
||||
|
||||
{CLEAR_VARIABLE hero_store}
|
||||
#enddef
|
||||
|
||||
#define UNMAKE_HERO NAME
|
||||
# Remove the hero overlay from a unit
|
||||
[store_unit]
|
||||
[filter]
|
||||
description={NAME}
|
||||
[/filter]
|
||||
variable=hero_store
|
||||
kill=no
|
||||
[/store_unit]
|
||||
[remove_unit_overlay]
|
||||
x=$hero_store.x
|
||||
y=$hero_store.y
|
||||
image=misc/hero-icon.png
|
||||
[/remove_unit_overlay]
|
||||
|
||||
{CLEAR_VARIABLE hero_store}
|
||||
#enddef
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue