From [store_unit] 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.
From [store_unit] to [recall]
Hi, due to the nature of the campaign I am building I have had to store units including the player in a variable at certain points in the story, after which I have had to resort to manually storing for the rest of the campaign.
Is this a bug or am I misunderstanding how to retrieve a variable stored unit.
An example would be..
..followed by..
..which works, as opposed to..
..which doesn't appear to do anything.
In the next scenario I have to [unstore] each unit as [recall] doesn't appear to be reacting to the stored variable.
Do I have to list the variable as well as the id, or should [recall] be working in it's basic form?
Thanks for any help
Is this a bug or am I misunderstanding how to retrieve a variable stored unit.
An example would be..
Code: Select all
[store_unit]
id="Arlo Again"
variable=arlo_stored_banditcamp
[/store_unit]
Code: Select all
[unstore_unit]
variable=arlo_stored_banditcamp
x,y=1,2
[/unstore_unit]
Code: Select all
[recall]
id="Arlo Again"
x,y=1,2
[/recall]
In the next scenario I have to [unstore] each unit as [recall] doesn't appear to be reacting to the stored variable.
Do I have to list the variable as well as the id, or should [recall] be working in it's basic form?
Thanks for any help
Re: From [store_unit] to [recall]
Unstore/store and recall have nothing to do with each other.
Re: From [store_unit] to [recall]
Thank you for the reply
So in order for [recall] to work I have to end the level normally, as in, if I have had to store a unit in order for it to go 'off stage', I must unstore the next scenario, but then end that same scenario normally and it should work again?
I have several scenarios where a surviving unit leaves the map before the end of the 'battle', so I have stored the unit, but in the next after but one stage I want it to be able to be recalled again.
This is probably a school boy error that has lingered through out my build so far that I wish to eliminate.
Thanks for any help!
So in order for [recall] to work I have to end the level normally, as in, if I have had to store a unit in order for it to go 'off stage', I must unstore the next scenario, but then end that same scenario normally and it should work again?
I have several scenarios where a surviving unit leaves the map before the end of the 'battle', so I have stored the unit, but in the next after but one stage I want it to be able to be recalled again.
This is probably a school boy error that has lingered through out my build so far that I wish to eliminate.
Thanks for any help!
Re: From [store_unit] to [recall]
You could unstore your units to recall list.
Re: From [store_unit] to [recall]
Aha! That sounds very likely, thank you Ravana, I will take a look 
Re: From [store_unit] to [recall]
Maybe you want [put_to_recall_list]?
- lhybrideur
- Posts: 566
- Joined: July 9th, 2019, 1:46 pm
Re: From [store_unit] to [recall]
I think what Ravana mentions is to use x,y=recall,recall in unstore_unit