removing a unit from the recall list
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.
removing a unit from the recall list
How do I remove a unit from the recall list using WML? When I use store/unstore unit for my leader, I can recall myself.
thanks, and more help?
Thanks, kill=yes worked. You mentioned storing a unit in one scenario and unstoring it in another scenario. How do you do that? I tried to do that, but it didn't work. Could it have anything to do with me unstoring the unit in a scenario in which my leader wasn't there?
Re: thanks, and more help?
Was there a defeat message? If the leader is not present in a scenario you automatically lose...troodon wrote:Could it have anything to do with me unstoring the unit in a scenario in which my leader wasn't there?
Dacyn wrote
No, there was no defeat message. There was a leader with the same team name as my leader. The unit was supposed to fight for the new leader in this scenario, since the main leader wasn't there. The scenario works fine except that I can't get that unit into the scenario, and if I use [unit], some one might find that their level 3 unit has turned back into a level 2 unit...Was there a defeat message? If the leader is not present in a scenario you automatically lose..
coordinates
I did:
[store_unit]
[filter]
description=unitname
[/filter]
variable=unitname_store
kill=yes
[/store_unit]
two scenarios later, I used [unstore_unit]. I don't remember how I indicated the variable to unstore, but I entered the coordinates like this:x,y=14,15. The next line was [/unstore_unit]
It didn't work. I read the wiki, but it didn't explain the format in terms I can understand.
[store_unit]
[filter]
description=unitname
[/filter]
variable=unitname_store
kill=yes
[/store_unit]
two scenarios later, I used [unstore_unit]. I don't remember how I indicated the variable to unstore, but I entered the coordinates like this:x,y=14,15. The next line was [/unstore_unit]
It didn't work. I read the wiki, but it didn't explain the format in terms I can understand.
Try this:
Code: Select all
[set_variable]
name=unitname_store.x
value=14
[/set_variable]
[set_variable]
name=unitname_store.y
value=15
[/set_variable]
[unstore_unit]
variable=unitname_store
[/unstore_unit]