The roll command: rolls dice and shows the result to the players nearby. Without an
argument it rolls a d20, a number rolls a die with that many sides, the name of a stat
or a skill of the Stats plugin rolls that stat or skill, and anything else is read as a
formula of the Dice library, such as 2d6 + 3 or 4d6kh3. A formula can use the
IDs of stats and skills, which stand for the modifiers of the player, and level, the
level of their character. While the 'roll_versus' config is enabled, rolling while
looking at a nearby player rolls the same thing for both of them in one line. Plugins can
adjust any roll through the PlayerAdjustRoll hook.
Summary
Methods
Methods
Rolls dice and shows the result to nearby players. Looking at a nearby player makes it a versus roll, which rolls the same thing for that player and is shown to the players near either of them. A formula that cannot be rolled is reported to the caller.
Parameters
- actor Player player running the command
- text String optional, defaults to
nilwhat to roll, as it was typed; a pair of double quotes around all of it is left out