Chatette icon indicating copy to clipboard operation
Chatette copied to clipboard

Define certain probability for categorical choice.

Open mschnyde opened this issue 4 years ago • 1 comments

Hello everyone,

If I define:

~[greet]
      ooh [hi|hello?/70] chatette community !

It will eather generate:

"ooh chatette community" with 50% chance "ooh hello chatette community" with 50% * 70% chance "ooh hi chatette community" with 50% * 30% chance

My question is the following: Can I unbalance the probability of a categorical choice without having to use the "?" ?

I would want to specify something like this:

~[greet]
      ooh [hi|hello/70] chatette community !

mschnyde avatar Jun 03 '20 06:06 mschnyde

Hello :)

You are absolutely correct about your percentages there.

It is not possible at the moment to change the probability of generating each category in a choice, though as you pointed out, it is possible to approach such a feature using a random generation modifier. As you imply this is not a perfect solution, since you might want the choice to always generate something, but still tune the probabilities. Plus, this workaround would be very ugly for a choice with more than 2 categories (you'd need to embed a choice into another I presume).

I'll write that down as a nice feature to add in an upcoming version, but at the moment this remains unsupported. I'll notify you when this feature is implemented and close this issue.

Cheers!

SimGus avatar Jun 03 '20 19:06 SimGus