tworld
tworld copied to clipboard
A way to make gentext deterministic
If you define a GenText node like
color (GenText property):
('red', 'green', 'blue')
...and then you use it twice:
[color, 'and', color]
...you'll get two different colors. (Well, 2/3 chance.) This is deliberate -- tokens generally should not repeat themselves.
But sometimes you want the same result. For example, you might have two objects that mention ['the', color, 'bird']. Given the same seed, you'd want the same bird to result.
Should be a way to do this.