# 自定義骰子

這是根據關鍵字來隨機抽選功能,只要符合內容,以後就會隨機抽選

{% hint style="info" %}
本功能已改版， .rap 轉成個人專用的骰組， \
原全服群組(.rap)變成 .ras \
.ra => random answer (group) \
.rap => random answer personal \
.ras => random answer server
{% endhint %}

### 使用方法

準備骰子內容，及骰子的名字

在群組中輸入`.ra add (骰子名稱) (骰子內容1 2 3 4 5)`\
這時應該新增成功，然後你可以輸入

`.ra (骰子名稱)`來投擲此骰子

### 功能一覧

`.ra(p|s)(次數) (add del show 骰子名稱)`

* 輸入.ra add (`骰子名稱`) (選項1) (選項2) (選項3)即可增加關鍵字&#x20;

&#x20;     重覆輸入，可以增加選項，總共上限2000字

* 輸入.ra show 顯示所有`骰子`及 編號&#x20;
* 輸入.ra show (`骰子名稱`)顯示內容&#x20;
* 輸入.ra del (`骰子名稱`) 即可刪除&#x20;
* 輸入.ra(次數,最多30次) (`骰子名稱`1/編號) (`骰子名稱`2)...(`骰子名稱`n)&#x20;

&#x20;     即可不重覆隨機抽選&#x20;

* 輸入.rra(次數,最多30次) (`骰子名稱`1/編號)(`骰子名稱`2)...(`骰子名稱`n)&#x20;

&#x20;     即可重覆隨機抽選&#x20;

&#x20; `骰子名稱`可用數字代替, 如編號5,可以輪入 .ra 5&#x20;

### 三種模式

* 如使用.ra 是群組版, 供整個群組共用&#x20;
* 如使用.ras 是公開版, 在整個HKTRPG可以看到&#x20;
* 如使用.rap 是個人專用版, 只有自己可以使用
* 例如輸入 .ras10 聖晶石召喚 即可十連抽了

### 代碼

* 亦支援代碼，輸入.ras newType 可以觀看效果
* {br} <--隔一行
* {ran:100} <---隨機1-100
* {random:5-20} <---隨機5-20
* {server.member\_count} <---現在頻道中總人數
* {my.name} <---顯示擲骰者名字

以下需要開啓.level 功能

* {allgp.name} <---隨機全GP其中一人名字
* {allgp.title} <---隨機全GP其中一種稱號
* {my.RankingPer} <---現在排名百分比
* {my.Ranking} <---顯示擲骰者現在排名
* {my.exp} <---顯示擲骰者經驗值
* {my.title} <---顯示擲骰者稱號
* {my.level} <---顯示擲骰者等級


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bothelp.hktrpg.com/hktrpg-guan-fang-shi-yong-jiao-xue/trpg-gong-neng/kai-shi-jin-hang-trpg/zi-ding-yi-tou-zi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
