Try to change the Dwarven Miner's image to the withstuff variant in
the appropriate move_to events. This doesn't break anything but it doesn't work yet either -- needs fixing by a WML expert.
This commit is contained in:
parent
568a808ddb
commit
89eb7a1dff
2 changed files with 36 additions and 0 deletions
|
@ -324,6 +324,8 @@
|
|||
[/not]
|
||||
[/filter]
|
||||
|
||||
{DWARVEN_MINERS_LOAD_UP x,y=$x,$y}
|
||||
|
||||
[message]
|
||||
speaker=unit
|
||||
message= _ "I have all the coal I can carry..."
|
||||
|
@ -359,6 +361,8 @@
|
|||
[/not]
|
||||
[/filter]
|
||||
|
||||
{DWARVEN_MINERS_LOAD_UP x,y=$x,$y}
|
||||
|
||||
[message]
|
||||
speaker=unit
|
||||
message= _ "I have all the coal I can carry..."
|
||||
|
@ -389,6 +393,8 @@
|
|||
[/not]
|
||||
[/filter]
|
||||
|
||||
{DWARVEN_MINERS_LOAD_UP x,y=$x,$y}
|
||||
|
||||
[message]
|
||||
speaker=unit
|
||||
message= _ "Here is the mine of precious gold! Send the miners this way."
|
||||
|
@ -414,6 +420,8 @@
|
|||
[/not]
|
||||
[/filter]
|
||||
|
||||
{DWARVEN_MINERS_LOAD_UP x,y=$x,$y}
|
||||
|
||||
[message]
|
||||
speaker=unit
|
||||
message= _ "I have all the gold I can carry..."
|
||||
|
|
|
@ -60,3 +60,31 @@
|
|||
[/frame]
|
||||
[/attack_anim]
|
||||
[/unit]
|
||||
|
||||
#define DWARVEN_MINERS_LOAD_UP FILTER
|
||||
# Load up all Dwarvish Miners satisfying FILTER; changes unit images.
|
||||
# This is the body of MODIFY_UNIT with some arguments bound.
|
||||
[store_unit]
|
||||
[filter]
|
||||
type=Dwarvish Miner
|
||||
{FILTER}
|
||||
[/filter]
|
||||
|
||||
variable=MODIFY_UNIT_store
|
||||
kill=yes
|
||||
[/store_unit]
|
||||
|
||||
{FOREACH MODIFY_UNIT_store MODIFY_UNIT_i}
|
||||
[set_variable]
|
||||
name=MODIFY_UNIT_store[$MODIFY_UNIT_i].image
|
||||
value=units/dwarves/miner-withstuff.png
|
||||
[/set_variable]
|
||||
|
||||
[unstore_unit]
|
||||
variable=MODIFY_UNIT_store[$MODIFY_UNIT_i]
|
||||
find_vacant=no
|
||||
[/unstore_unit]
|
||||
{NEXT MODIFY_UNIT_i}
|
||||
|
||||
{CLEAR_VARIABLE MODIFY_UNIT_store}
|
||||
#enddef
|
||||
|
|
Loading…
Add table
Reference in a new issue