roll_command_roll: debug: false type: command name: roll usage: /roll [amount?] description: Rolls a dice, optionally with an amount. permission: roll.command.roll tab completions: 1: <<>amount<>> script: - if != player: - narrate "<&c>Please run this command as a player." - stop - define amount 100 - if >= 1: - define amount - if !<[amount].is_integer>: - narrate "<&c>The amount must be an integer between 2 and 200." - stop - if <[amount]> < 2 || <[amount]> > 200: - narrate "<&c>The amount must be an integer between 2 and 200." - stop - define roll ]> - define final "<&f>]> ]>]> ]> <&6>rolls <&f><[roll]> <&6>out of <&f><[amount]>" - narrate targets: <[final]> - announce to_console <[final]>