element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
72 stars 12 forks source link

Feature request: /2d6 (roll dice) / coin flipping command #1835

Closed r4dh4l closed 11 months ago

r4dh4l commented 5 years ago

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 (while X is the amount of dice and Y the amount of pips of each die) the chat output would be * r4dh4l rolls X dice and the result is Z (while Z 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:

Describe alternatives you've considered Flipping a real coin or rolling real dices while recording a video and uploading this to a room. ;)

uhoreg commented 5 years 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

nik0kin commented 3 years ago

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.

t3chguy commented 3 years ago

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?

nik0kin commented 3 years ago

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.

r4dh4l commented 3 years ago

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.

richvdh commented 11 months ago

I'm afraid I think it's unlikely this is a feature that we're going to build into any of the Element clients.

r4dh4l commented 11 months ago

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