Your code means, take one random child, nd if that picked child happens to be a girl, then do stuff.Is it possible to scope to a random daughter?
I tried:
Code:random_child = { if = { limit = { is_female = yes } } }
But if I use this, any code I put after the limit will sometimes not get executed. I guess it scopes to a random child who is male, fails the limit and because of this doesn't execute anything after that. Is it in any way possible to scope to a random daughter?
Thank you in advance
The proper way is any_child = { limit = { is_female = yes } <do stuff }. The limit irectly under the random_* instruxts the game that ensure that the randomly picked object fullfils the restrctions you script in.