-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
This one's important and kind of simple, just need to be able to roll dice. I would prefer format [1d6+2], [1d20+12], [2d6+2d6+2d6+9], etc. If the user enters a string surrounded by [], parse it for dice syntax, and when the result is displayed in the ChatBox it should have the [] value replaced with the roll. This comes from the player who entered it and of course should be transmitted over the network as a normal chat message (so all players see the same result)
For example:
D.Mentia types "attack [1d20+1]"
Chatbox shows "D.Mentia: attack [1d20+1 = 12 + 1 = 13]"
If dice syntax is invalid, for example they are trying to spoof the dice roll, it should reject. It may need some validation to make sure players can't cheat
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed