元编程参考文档

选项

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)

参数

名称类型默认值说明
ChoiceChoice—

返回

结果Sequence
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
选项
所属包
Novella 视觉小说

获取条件

函数

此节点没有文档说明。

签名
获取条件(Choice: Choice) -> Condition
Condition Condition(ChoiceOption Choice)

参数

名称类型默认值说明
ChoiceChoice—

返回

结果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)

参数

名称类型默认值说明
ChoiceChoice—

返回

结果文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
选项
所属包
Novella 视觉小说

获取文本

函数

此节点没有文档说明。

签名
获取文本(Choice: Choice) -> 文本
string Text(ChoiceOption Choice)

参数

名称类型默认值说明
ChoiceChoice—

返回

结果文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
选项
所属包
Novella 视觉小说

转为文本

函数

此节点没有文档说明。

签名
转为文本(Choice: Choice) -> 文本
string ToString(ChoiceOption Choice)

参数

名称类型默认值说明
ChoiceChoice—

返回

结果文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 例程 状态机状态
声明于
选项
所属包
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)

参数

名称类型默认值说明
ChoiceChoice—
ID文本—The id.

返回

选项Choice
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
事件 例程 状态机状态
声明于
选项
所属包
Novella 视觉小说