选项
7 个节点
本页内容 7
创建选项
函数Makes a choice.
签名
创建选项(文本: 文本, 正文: Sequence, 条件: Condition) -> Choice
ChoiceOption ChoiceOption(
string text,
Sequence body,
Condition condition)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 文本 | 文本 | — | What the button says. |
| 正文 | Sequence | — | What happens when it is chosen: a sequence. |
| 条件 | Condition | — | Shown only when this holds, a condition from the Conditions nodes; empty always shows it. |
返回
| 选项 | Choice |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 选项
- 所属包
- Novella 视觉小说
获取正文
函数此节点没有文档说明。
签名
获取正文(Choice: Choice) -> Sequence
Sequence Body(ChoiceOption Choice)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Choice | Choice | — |
返回
| 结果 | Sequence |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 选项
- 所属包
- Novella 视觉小说
获取条件
函数此节点没有文档说明。
签名
获取条件(Choice: Choice) -> Condition
Condition Condition(ChoiceOption Choice)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Choice | Choice | — |
返回
| 结果 | Condition |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 选项
- 所属包
- Novella 视觉小说
ID
函数An id of the author's choosing, or null for one made from the text.
签名
ID(Choice: Choice) -> 文本
string Id(ChoiceOption Choice)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Choice | Choice | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 选项
- 所属包
- Novella 视觉小说
获取文本
函数此节点没有文档说明。
签名
获取文本(Choice: Choice) -> 文本
string Text(ChoiceOption Choice)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Choice | Choice | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 选项
- 所属包
- Novella 视觉小说
转为文本
函数此节点没有文档说明。
签名
转为文本(Choice: Choice) -> 文本
string ToString(ChoiceOption Choice)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Choice | Choice | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 选项
- 所属包
- Novella 视觉小说
带 ID 的选项
函数The same choice under an id of the author's choosing, which keeps it remembered as taken when its text is reworded.
签名
带 ID 的选项(Choice: Choice, ID: 文本) -> Choice
ChoiceOption WithId(ChoiceOption Choice, string id)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Choice | Choice | — | |
| ID | 文本 | — | The id. |
返回
| 选项 | Choice |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 选项
- 所属包
- Novella 视觉小说