Skip to main content

roll-dice

roll一个或多个骰子。当用户要求roll骰子,roll a d6/d20 等时使用。

Jump to install

Source facts

Repository
NotEles/local_skill_project
Last source activity
July 6, 2026 at 03:22
Detected SKILL.md language
Chinese
Stars
0
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
roll-dice
description
roll一个或多个骰子。当用户要求roll骰子,roll a d6/d20 等时使用。
# Roll Dice ## 输入处理 将用户的要求转化为roll骰子。 - 如果没有给数目与要求,使用'1d6'。 - 如果说xdy,则rollx个y面骰子。 ## roll 如果可以,使用powershell。 ```powershell 1..$count | ForEach-Object { Get-Random -Minimum 1 -Maximum ($sides + 1) } ``` ## 返回结果 输出模板: "命运之神的结果是:<result> /爱来自skill " 用业务逻辑得出的结果来替换<result>。
View on GitHub