# 先攻表

{% hint style="info" %}
因為像DND，無限恐怖等系統每次戰鬥都需要重擲一次1D20+先攻值，所以這功能也支援重擲，

可以儲存你的擲骰方法，而不需要再輸入。
{% endhint %}

![](/files/zRbsXYznXgTgTDLHxdVS)

### 使用方法

#### 登記角色

`.in (擲骰或數字) (名字)`

(擲骰或數字)是必填，可以輸入像 `1D20+3`或直接輸入數字`5`

(名字) 是可選選項，如果你不填寫，會直接讀取你在聊天軟件中的名稱，作為先攻表中的名字

假如多次輸入`.in (擲骰或數字) (不同名字)` 即可以在先攻表中新增多個角色

#### 顯示先攻表

`init` - 顯示先攻表，由大到小

`.initn` - 顯示先攻表，由小到大

#### 重擲先攻表

`.in reroll`&#x20;

很多系統的每場戰鬥，都需要重擲一次先攻值，

`使用這指令可以重擲一次先攻中的算式`

#### 其他

* `.in -3+6*3/2.1` - 支援四則運算
* `.in remove` (名字) - 移除該角色
* `.in clear` - 清除整個先攻表

### 功能一覧

`.in (remove clear reroll help)` `.init`

* `.in (擲骰或數字) (名字)`
* `.in 1d20+3 (名字)`
* `.in 1d3` (如沒有輸入, 會用你聊天軟件中的名字)
* `.in 80` - 直接取代先攻值
* `.in -3+6*3/2.1` - 加減
* `.in remove` (名字) - 移除該角色
* `.in reroll` - 根據算式重擲先攻表
* `.in clear` - 清除整個先攻表
* `.init` - 顯示先攻表，由大到小
* `.initn` - 顯示先攻表，由小到大


---

# 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/xian-gong-biao.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.
