erkyrath / tworld

A choice-based shared online text environment sandbox
MIT License
71 stars 13 forks source link

A way to make gentext deterministic #148

Open erkyrath opened 10 years ago

erkyrath commented 10 years ago

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.