And even
\define roll() 6
{{{ 1 2 +[matchthen[red]] }}}
{{{ 3 4 5 +[matchthen[blue]] }}}
{{{ 6 +[matchthen[green]] }}}
{{{ 7 8 9 10 +[matchthen[white]] }}}
Regards
Tony
On Saturday, April 18, 2020 at 8:50:00 AM UTC+10, Jalen MichalsLevy wrote:
>
> Joshua Macy made a really cool functionality
Even
{{{ [] +[match[1]then[red]] +[match[2]then[red]] +[match[3]then[blue]]
}}}
Regards
Tony
On Sunday, April 19, 2020 at 9:36:15 AM UTC+10, TonyM wrote:
>
> So Here is a quick partial experiment
>
> \define roll() 3
> {{{ [match[1]then[red]] [match[2]then[red]] [match[3]
> then[blue]] }}}
>
>
So Here is a quick partial experiment
\define roll() 3
{{{ [match[1]then[red]] [match[2]then[red]] [match[3]then[
blue]] }}}
But there is a new compare operator in the latest release that could do
this even more elegantly.
Regards
Tony
On Sunday, April 19, 2020 at 3:42:19 AM UTC+10, Jalen
Jalen
I was not aware of the weighting as a requirement. So its not different sided
dice you are emulating. Perhaps you can make a data tiddler with the range of
numbers and the values? Allowing duplicate values.
Alternativly after generating the random number a set of tests for each number
Thanks for the reply.
I would love more details if you got them! I have MK Lauber's shuffle
plugin which adds a "Shuffle" filter operator which gives a number of
random items in a list and is close to what you describe. Unfortunately I
do not know how to make some of those titles weighted,
5 matches
Mail list logo