tworld icon indicating copy to clipboard operation
tworld copied to clipboard

A way to make gentext deterministic

Open erkyrath opened this issue 11 years ago • 0 comments

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.

erkyrath avatar Nov 24 '13 19:11 erkyrath