[tw5] Re: Help: Inline dice rolling

2021-11-02 Thread Charlie Veniot
Hey Baj, If you're into scientific programming / software engineering, you may (for the giggles) interested in the attached code in my Coding Fun: Dice Rolling post. Yeah, my code is a little bit out there, but just to show how TiddlyWiki

[tw5] Re: Help: Inline dice rolling

2021-11-02 Thread baj...@gmail.com
Hmm, I'll have to look into this a little more. Divide by 9, multiply by 6, round to integer gets it close on the random number side. Parsing x*d*y+z formatted rolls without a javascript macro still seems pretty difficult though. On Monday, November 1, 2021 at 1:35:49 AM UTC-5 Mat wrote: >

[tw5] Re: Help: Inline dice rolling

2021-11-02 Thread baj...@gmail.com
Thanks Télumire, I agree, it looks like there is a few parts there I can adapt, and their approach will likely work better than what I was originally thinking. Rather than clicking on the die specification text and having it add a result inline, I can have the results added to a common sidebar

[tw5] Re: Help: Inline dice rolling

2021-10-31 Thread Mat
Baj, I just realized this should even be very simple with TW 5.2. The following gives a random number between 0-9 {{{ [split[]last[]] }}} i.e it is the Now macro and uses the last fraction of a second which, for all practical purposes, is a random digit. Needs to be remade into 1 out of 6 for y

[tw5] Re: Help: Inline dice rolling

2021-10-31 Thread Télumire
This should help (I think) : https://mklauber.github.io/tw5-plugins/#%24%3A%2Fplugins%2FD%26DTools%2FCreatureManager%2FLog Le dimanche 31 octobre 2021 à 12:07:32 UTC+1, Mat a écrit : > This reminded me of some experimenting I did some time back. I found the > below notes on it (paste it in a ti

[tw5] Re: Help: Inline dice rolling

2021-10-31 Thread Mat
This reminded me of some experimenting I did some time back. I found the below notes on it (paste it in a tiddler). It it probably NOT a good solution. <:-) -- https://css-