For the complete documentation index, see llms.txt. This page is also available as Markdown.

Basic Rolling

Basic dice rolling in HKTRPG.

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.

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)

Math

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

kh | kl | dh | dl

Common in DND and PF.

k = keep, d = drop, h = highest, l = lowest Example: 3d6kh — keep the highest one die 3D6dl2 — drop the lowest two dice

Last updated