> For the complete documentation index, see [llms.txt](https://bothelp.hktrpg.com/guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bothelp.hktrpg.com/guide/en/trpg-features/kai-shi-jin-hang-trpg/ji-ben-zhi-tou.md).

# Basic Rolling

{% hint style="info" %}
**Tip:** In most TRPG and board-game docs, dice are written as xDy — x dice with y sides each.\
Example: the bluffing game Liar’s Dice uses five six-sided dice, i.e. 5D6.
{% endhint %}

### xDy

Roll x dice with y sides each.\
Example: `1D100` rolls one hundred-sided die; the result is 1–100.

Example with flavor text: `1D100 攻撃！`\
Output: `1D100：攻撃！ 38[38] = 38`

\
As above, add a space after the dice expression to attach a message.

### Multiple Rolls

`.5 3D6` — roll 3d6 five times (up to 30 times)\
![](/files/LRulM1752wQ0oNBHWzFd)

### Math

Supports parentheses, + − × ÷, and comparisons (>, <, >=, <=).

![](/files/kOMrIzKaEMG8L0nS3sO2)

### kh | kl | dh | dl

{% hint style="info" %}
Common in DND and PF.
{% endhint %}

k = keep, d = drop, h = highest, l = lowest\
Example: `3d6kh` — keep the highest one die\
![](/files/zRbsXYznXgTgTDLHxdVS)\
\
`3D6dl2` — drop the lowest two dice<br>
