Closed r4dh4l closed 11 months ago
This could be done using a bot instead of a client command. For example, ivar2 has a roll
module that lets you generate a random number. Having the rolling done by a bot would also ensure that you don't "cheat" by just typing /me rolls 1 6-sided die and the result is 4
It'd be nice to have this for casual use without having to invite a bot, especially in encrypted rooms where bot setup is a little more involved.
But by having it done by the client what is to stop a person cheating and sending a message which looks like a dice throw but is in their favour?
But by having it done by the client what is to stop a person cheating and sending a message which looks like a dice throw but is in their favour?
Nothing. If it's a more serious roll with consequences, then use a DiceBot. Otherwise a quick RNG generator on the client could be useful/fun/playful.
I'm using maubot for rolling virtual dice but actually this feels somehow oversized. What about a Matrix integretation for rolling dice? This wouldn't force people to host a maubot instance but would solve the problem of cheating as well.
I'm afraid I think it's unlikely this is a feature that we're going to build into any of the Element clients.
I'm afraid I think it's unlikely this is a feature that we're going to build into any of the Element clients. richvdh closed this as completed
In other words: "Alea iacta est!" :D
Is your suggestion related to a problem? Please describe. Sometimes I would like to have the option to roll some virtual dice or to flip a virtual coin, for example to decide something in a small group by chance casting for the highest pips (btw: Even though I'm not a role player this would make Matrix/Riot an ideal communication platform for RPGs / Role Playing Games maybe?).
Describe the solution you'd like If someone types
/XdY
(whileX
is the amount of dice andY
the amount of pips of each die) the chat output would be* r4dh4l rolls X dice and the result is Z
(whileZ
is the sum of the casted dice). If someone types/coin
the output would be* r4dh4l flips a coin and and <heads or tails> is shown
.Examples:
/2d6
would cause:* r4dh4l rolls 2 6-sided dice and the result is <something between 2 and 12>
/1d6
would cause:* r4dh4l rolls 1 6-sided die and the result is <something between 1 and 6>
/2d10
would cause:* r4dh4l rolls 2 10-sided dice and the result is <something between 2 and 20>
/coin
would cause:* r4dh4l flips a coin and <heads or tails> is shown
Describe alternatives you've considered Flipping a real coin or rolling real dices while recording a video and uploading this to a room. ;)