Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions rustedwarfareapicode/src/Map/all.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ outline: deep
</map>
```

&lt;map&gt;中包含了一个&lt;objectgroup&gt;组,它的“name”是“Trigger”(不区分大小写),我们称之它为宾语(触发)。
&lt;map&gt;中包含了一个&lt;objectgroup&gt;组,它的“name”是“Triggers”(不区分大小写),我们称之它为宾语(触发)。

```
<object name="map_info" x="0" y="0" width="20" height="20">
Expand All @@ -31,7 +31,9 @@ outline: deep

这是其中一个元素,它符合文档中“●map_info”(●选项表示值为“name”,否则是“type”)特征。

这样是为了方便描述,文档不需要太复杂,参考此处出现的特征符合文档部分相信你自己理解了格式。
在使用Trigger前,必须定义“map_info”以及“type”。

这样是为了方便描述,文档不需要太复杂,参考此处出现的特征符合文档部分相信你能自己理解格式。

```
<object type="unitAdd" x="-Infinity" y="-Infinity">
Expand Down
44 changes: 22 additions & 22 deletions rustedwarfareapicode/src/Map/trigger.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ outline: deep
- 注:此设置会被房间里的游戏设置覆盖。

- **introText**
- 开局弹出的消息,可使用 `/n` 换行。
- 开局弹出的消息,可使用 `\n` 换行。
- `string`

- **winCondition/loseCondition**
Expand Down Expand Up @@ -128,7 +128,7 @@ outline: deep

- **dir**
- 单位旋转角度。
- `int`
- `float`

### fall

Expand Down Expand Up @@ -289,10 +289,10 @@ outline: deep
- 注:前两位是透明度。
- **textOffsetX**
- 文本横向偏移量。
- `int`
- `float`
- **textOffsetY**
- 文本纵向偏移量。
- `int`
- `float`
- **textSize**
- 文本大小,数字越大字符越大。
- `int`
Expand Down Expand Up @@ -332,7 +332,7 @@ outline: deep

- **globalMessage_delayPerChar**
- 全局消息弹出速度。
- `string`(`slow`)/ `int`
- `string`(`slow`)/ `time`

- **globalMessage_textColor**
- 全局消息颜色。
Expand All @@ -346,15 +346,15 @@ outline: deep

- **warmup**
- 当宾语符合触发条件时,效果将根据设定时间延迟,延迟耗尽时激活。
- `int`
- `time`
- 注:在没有激活源的情况下,`warmup` 和 `delay` 没有太大差别。

- **delay**
- 开局或重置后触发宾语的时间。
- `int`
- `time`

- **activatedBy**
- 检测所连接宾语的名称或 `id`,如果连接来源符合则触发。
- 检测所连接宾语的名称或 `id`,如果连接来源符合则触发。(此语句为瞬发)
- `string`(`object name/id`)
- 例:`activatedBy:1,2`

Expand All @@ -372,20 +372,20 @@ outline: deep

- **repeatDelay**
- 重复延迟。宾语被触发后,再次执行效果的时间(会被 `deactivatedBy` 终止)。
- `int`
- `time`

- **deactivatedBy**
- 检测所连接宾语的名称或 `id`,如果连接来源是激活状态,则禁止触发。
- **deactivatedBy**
- 检测所连接宾语的名称或 `id`,如果连接来源是激活状态,则禁止触发。(此语句为时钟检查)
- `string`(`object name/id`)

- **alsoActivate**
- 在宾语被触发后,触发所连接的宾语。
- 在宾语被触发后,触发所连接的宾语。(该语句是一次性的,建议改用 `activatedBy` 或 `deactivatedBy`)
- `string`(`object name/id`)
- 例:`alsoActivate:3,4`

- **resetActivationAfter**
- 重置宾语的时间间隔。重置后,所有已触发的属性将被清除并等待下一次触发。
- `int`
- `time`

- **activateIds**
- 同 `alsoActivate`。
Expand Down Expand Up @@ -415,7 +415,7 @@ outline: deep

- **spawnChance**
- 单位生成概率。
- `int`(`0-1`)
- `float`(`0-1`)

- **maxSpawnLimit**
- 单位最大生成数量。
Expand Down Expand Up @@ -443,35 +443,35 @@ outline: deep

- **offsetX**
- 单位生成地点偏移度(横轴)。
- `int`
- `float`

- **offsetY**
- 单位生成地点偏移度(纵轴)。
- `int`
- `float`

- **offsetRandomXY**
- 单位生成地点随机偏移度(横纵轴随机偏移)。
- `int`
- `float`
- 注:目前铁锈战争沙盒模式的随机系统有严重问题,建议在普通模式下测试代码效果。

- **offsetRandomX**
- 单位生成地点随机偏移度(横轴偏移)。
- `int`
- `float`
- 注:目前铁锈战争沙盒模式的随机系统有严重问题,建议在普通模式下测试代码效果。

- **offsetRandomY**
- 单位生成地点随机偏移度(纵轴偏移)。
- `int`
- `float`
- 注:目前铁锈战争沙盒模式的随机系统有严重问题,建议在普通模式下测试代码效果。

- **offsetHeight**
- 单位生成高度。
- `int`
- `float`

- **offsetRandomDir**
- 单位生成方向范围随机度。
- `int`
- `float`

- **offsetDir**
- 单位生成方向。
- `int`
- `float`
Loading