--- title: speak summary: X4 接口参考。类型只在明确说明的范围内得到确认。 section: reference kind: api status: reference updated: 2026-10-26 tags: ["API","X4"] sources: ["https://wiki.egosoft.com/X4%20Foundations%20Wiki/Modding%20Support/","https://www.lua.org/manual/5.1/manual.html","https://luajit.org/ext_ffi_api.html"] --- ## 说明 X4 接口参考。类型只在明确说明的范围内得到确认。 ## 返回值 | 类型 | 含义 | | --- | --- | | [`none`](wiki:type-results) (MD行动) | 类型描述了声明的界面,而不是证明成功的游戏效果. | [类型与方法](wiki:types) ## XML 属性 [方案类型的运行方式](wiki:schema-types) `libraries/common.xsd` | 属性 | 架构类型 | 要求 | 默认 / 固定 | | --- | --- | --- | --- | | `chance` | [`expression`](wiki:schema-expression-b8bc0e4f) | 没有 | 没有申报 | | `weight` | [`expression`](wiki:schema-expression-b8bc0e4f) | 没有 | 没有申报 | | `comment` | [`comment`](wiki:schema-comment-c44bb2fd) | 没有 | 没有申报 | | `actor` | [`actor`](wiki:schema-actor-50c9c4ae) | 没有 | 没有申报 | | `page` | [`pagewithdefault`](wiki:schema-pagewithdefault-be89c8f0) | 没有 | 没有申报 | | `line` | [`lineorlist`](wiki:schema-lineorlist-2a45a3b1) | 没有 | 没有申报 | | `delay` | [`speakdelay`](wiki:schema-speakdelay-a0ed6203) | 没有 | 没有申报 | | `emotion` | [`speakemotion`](wiki:schema-speakemotion-15f0a2c7) | 没有 | 没有申报 | | `timer` | [`speaktimer`](wiki:schema-speaktimer-0e8e4601) | 没有 | 没有申报 | | `interruptontimer` | [`speakinterruptontimer`](wiki:schema-speakinterruptontimer-07169dc0) | 没有 | 没有申报 | | `priority` | [`expression`](wiki:schema-expression-b8bc0e4f) | 没有 | 没有申报 | | `caninterrupt` | [`booleanexpression`](wiki:schema-booleanexpression-1c6e91c7) | 没有 | 没有申报 | | `recipient` | [`expression`](wiki:schema-expression-b8bc0e4f) | 没有 | 没有申报 | | `topic` | [`expression`](wiki:schema-expression-b8bc0e4f) | 没有 | 没有申报 | | `backgroundcomm` | [`booleanexpression`](wiki:schema-booleanexpression-1c6e91c7) | 没有 | 没有申报 | | `broadcast` | [`booleanexpression`](wiki:schema-booleanexpression-1c6e91c7) | 没有 | 没有申报 | | `voiceover` | [`booleanexpression`](wiki:schema-booleanexpression-1c6e91c7) | 没有 | 没有申报 | | `check` | [`boolean`](wiki:schema-boolean-bf84d3d6) | 没有 | 没有申报 | `libraries/voicesequences.xsd` | 属性 | 架构类型 | 要求 | 默认 / 固定 | | --- | --- | --- | --- | | `page` | [`xs:positiveInteger`](wiki:schema-xs-positiveinteger-0be8dd28) | 没有 | 没有申报 | | `line` | [`xs:positiveInteger`](wiki:schema-xs-positiveinteger-0be8dd28) | 没有 | 没有申报 | | `priority` | [`xs:integer`](wiki:schema-xs-integer-5c99925f) | 没有 | 没有申报 | | `nosubtitles` | [`xs:boolean`](wiki:schema-xs-boolean-f099f6dc) | 没有 | 没有申报 | | `filter` | [`xs:string`](wiki:schema-xs-string-d5652e9b) | 没有 | 没有申报 | MD 操作可以写入命名变量或改变游戏世界。这不是 Lua 返回值。输出变量取决于操作及其属性。 ## 示例与上下文 看到 [语言基础](wiki:x4-code-basics), [类型和方法](wiki:types) 和 [Lua / MD事件](wiki:md-lua-bridge). 其他独立学习的例子. 没有项目源文件或私人实施碎片被分配到此引用.