Recall to recall
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Recall to recall
Can someone provide the code for moving ogres from the recall list to the recall list of side 3. Thanks.
rmj
Re: Recall to recall
Code: Select all
[store_unit]
[filter]
side=1
x,y=recall,recall
race=ogre
[/filter]
variable=recall_store
mode=always_clear
kill=yes
[/store_unit]
[for]
array=recall_store
reverse=yes
[do]
{VARIABLE recall_store[$i].side 3}
[unstore_unit]
variable=recall_store[$i]
x,y=recall,recall
[/unstore_unit]
[/do]
[/for]
{CLEAR_VARIABLE recall_store}
Re: Recall to recall
Wiki says [modify_unit] should work as well.
Try both of them and see which works best for you.
Try both of them and see which works best for you.
Code: Select all
[modify_unit]
[filter]
side=1
x,y=recall,recall
race=ogre
[/filter]
side=3
[/modify_unit]
Re: Recall to recall
The first worked. The shorter code made ogres side 3, but left them in the side 1 recall list.
Thanks.
Thanks.
rmj
Re: Recall to recall
Interesting. I wonder if that makes it a wesnoth bug.