SotBE S6: use only one variable to store away the shamans

This commit is contained in:
mattsc 2013-10-06 15:43:02 -07:00
parent 4b13787d9b
commit c76eef0698

View file

@ -195,25 +195,12 @@
speaker="Slowhand"
message= _ "Haha! Our plan is going well, lets surround them on land while our allies attack them from sea!"
[/message]
[store_unit]
[filter]
id=Pirk
id=Pirk,Gork,Vraurk
[/filter]
variable=Pirk_store
kill=yes
[/store_unit]
[store_unit]
[filter]
id=Gork
[/filter]
variable=Gork_store
kill=yes
[/store_unit]
[store_unit]
[filter]
id=Vraurk
[/filter]
variable=Vraurk_store
variable=stored_shamans
kill=yes
[/store_unit]
[/event]
@ -508,22 +495,13 @@
message= _ "We are victorious at last. Someone go tell the shamans that they can come out now."
[/message]
[unstore_unit]
variable=Pirk_store
find_vacant=yes
[/unstore_unit]
[unstore_unit]
variable=Gork_store
find_vacant=yes
[/unstore_unit]
[unstore_unit]
variable=Vraurk_store
find_vacant=yes
[/unstore_unit]
{CLEAR_VARIABLE Pirk_store}
{CLEAR_VARIABLE Gork_store}
{CLEAR_VARIABLE Vraurk_store}
{FOREACH stored_shamans i}
[unstore_unit]
variable=stored_shamans[$i]
find_vacant=yes
[/unstore_unit]
{NEXT i}
{CLEAR_VARIABLE stored_shamans}
[message]
speaker=Gork