TRoW: simplify wml by using [remove_object]
This commit is contained in:
parent
41884fca58
commit
3cc386d0cd
1 changed files with 4 additions and 47 deletions
|
@ -160,53 +160,10 @@
|
|||
id=Commander Aethyr
|
||||
[/recall]
|
||||
|
||||
#OK Get rid of the Ruby of Fire
|
||||
[store_unit]
|
||||
[filter]
|
||||
id=Prince Haldric
|
||||
[/filter]
|
||||
|
||||
kill=yes
|
||||
variable=stored_Haldric
|
||||
[/store_unit]
|
||||
|
||||
[for]
|
||||
array=stored_Haldric.modifications.object
|
||||
[do]
|
||||
[if]
|
||||
[variable]
|
||||
name=stored_Haldric.modifications.object[$i].id
|
||||
equals=ruby_of_fire
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
{CLEAR_VARIABLE stored_Haldric.modifications.object[$i]}
|
||||
[/then]
|
||||
[/if]
|
||||
[/do]
|
||||
[/for]
|
||||
|
||||
[for]
|
||||
array=stored_Haldric.attack
|
||||
[do]
|
||||
[if]
|
||||
[variable]
|
||||
name=stored_Haldric.attack[$i].name
|
||||
equals=ruby of fire
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
{CLEAR_VARIABLE stored_Haldric.attack[$i]}
|
||||
[/then]
|
||||
[/if]
|
||||
[/do]
|
||||
[/for]
|
||||
|
||||
[unstore_unit]
|
||||
variable=stored_Haldric
|
||||
[/unstore_unit]
|
||||
|
||||
{CLEAR_VARIABLE stored_Haldric}
|
||||
[remove_object]
|
||||
id=Prince Haldric
|
||||
object_id=ruby_of_fire
|
||||
[/remove_object]
|
||||
|
||||
[objectives]
|
||||
side=1
|
||||
|
|
Loading…
Add table
Reference in a new issue