alexkurowski / solo-toolkit

MIT License
10 stars 1 forks source link

(new feature) Adding a way for template to generate combination results #1

Open thertemis opened 1 month ago

thertemis commented 1 month ago

I love this plugin so far, and I think it can grow better. I was thinking something like: in template file:

tablename: "table"
combination: "{{adjective}} {{noun}}"  or "{{adjective}} and {{adjective}}" 
adjective: big, large, small, tiny
nouns: house, sword, thing

And so on for adverbs, verbs…

And if it was possible to add weights to terms to alter probabilities (e.g., small::0.5) it would be awesome.

alexkurowski commented 1 month ago

That's a great suggestion, thank you so much!

I've added a template feature in 0.2.9, usage described here: https://github.com/alexkurowski/solo-toolkit?tab=readme-ov-file#custom-table-templates

I'm not sure how to add weight in the way that would be intuitive though. I'd like the user to have full control of the output formatting. For now you can duplicate the heavier words to make them appear more often. I know it's not ideal, especially for something like 2d6 tables. I'll see if I can come up with something better.

thertemis commented 1 month ago

Thank you, this awesome ! Duplication of words instead of weight is still a very good way to achieve the same goal !