元编程参考文档

条件

20 个节点

本页内容 20

全部满足

函数

Every one of the conditions holds.

签名
全部满足 -> Condition
    第一个: Condition
    第二个: Condition
    第三个: Condition
    第四个: Condition
Condition AllOf(
    Condition first,
    Condition second,
    Condition third,
    Condition fourth)

参数

名称类型默认值说明
第一个Condition—
第二个Condition—
第三个Condition—
第四个Condition—

返回

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

始终

函数

A condition that always holds.

签名
始终() -> Condition
Condition Always()

返回

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

任一满足

函数

At least one of the conditions holds.

签名
任一满足 -> Condition
    第一个: Condition
    第二个: Condition
    第三个: Condition
    第四个: Condition
Condition AnyOf(
    Condition first,
    Condition second,
    Condition third,
    Condition fourth)

参数

名称类型默认值说明
第一个Condition—
第二个Condition—
第三个Condition—
第四个Condition—

返回

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

按概率

函数

Holds by chance, with a probability from 0 to 1, drawn so that rolling back draws the same.

签名
按概率(概率: 数字) -> Condition
Condition ByChance(double probability)

参数

名称类型默认值说明
概率数字—

返回

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

比较变量

函数

A variable compared with a value.

签名
比较变量(变量: 文本, 比较方式: 文本, 值: 文本) -> Condition
Condition CompareVariable(
    string variable,
    string comparison = "==",
    string value = "")

参数

名称类型默认值说明
变量文本—The variable, such as gift or persistent.endings_seen.
比较方式文本==One of ==, !=, <, <=, >, >=.
值文本—The value as typed: a number, true, false, or text.

返回

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

比较两个变量

函数

Two variables compared: trust greater than doubt.

签名
比较两个变量 -> Condition
    第一个: 文本
    比较方式: 文本
    第二个: 文本
Condition CompareVariables(
    string first,
    string comparison,
    string second)

参数

名称类型默认值说明
第一个文本—The first variable.
比较方式文本—One of ==, !=, <, <=, >, >=.
第二个文本—The second variable.

返回

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

由函数生成条件

函数

A condition a function decides: a Function graph that takes Story Variables and answers true or false, for tests the other nodes cannot put together.

签名
由函数生成条件 -> Condition
    判断函数: Func<Story Variables, 真否>
    描述: 文本
Condition ConditionFromFunction(
    Func<StoryVariables, bool> test,
    string description = "a condition from a function")

参数

名称类型默认值说明
判断函数Func<Story Variables, 真否>—The function.
描述文本a condition from a functionWhat it tests, in words, for messages and the written-out script.

返回

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

由脚本生成条件

函数

A condition written as script, for anything the other nodes do not say: affection >= 3 and gift == "fan".

签名
由脚本生成条件(表达式: 文本) -> Condition
Condition ConditionFromScript(string expression)

参数

名称类型默认值说明
表达式文本—

返回

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

曾经到达

函数

A label has been reached in any playthrough, as an ending once seen.

签名
曾经到达(标签: 文本) -> Condition
Condition EverReached(string label)

参数

名称类型默认值说明
标签文本—

返回

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

已获得成就

函数

An achievement has been earned.

签名
已获得成就(成就: 文本) -> Condition
Condition HasAchievement(string achievement)

参数

名称类型默认值说明
成就文本—

返回

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

已听过

函数

A piece of audio has been heard in any playthrough.

签名
已听过(文件: 文本) -> Condition
Condition HasHeard(string file)

参数

名称类型默认值说明
文件文本—

返回

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

已看过图像

函数

An image has been seen in any playthrough.

签名
已看过图像(图像: 文本) -> Condition
Condition HasSeenImage(string image)

参数

名称类型默认值说明
图像文本—

返回

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

已访问

函数

A label (or scene) has been reached in this playthrough.

签名
已访问(标签: 文本) -> Condition
Condition HasVisited(string label)

参数

名称类型默认值说明
标签文本—

返回

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

当前语言为

函数

The player reads the game in a language, such as zh-Hans.

签名
当前语言为(语言: 文本) -> Condition
Condition InLanguage(string language)

参数

名称类型默认值说明
语言文本—

返回

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

正在显示

函数

An image with a tag is on the stage now.

签名
正在显示(标签: 文本) -> Condition
Condition IsShowing(string tag)

参数

名称类型默认值说明
标签文本—

返回

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

列表包含

函数

A list variable holds a value, such as a gift among those given.

签名
列表包含(变量: 文本, 值: 文本) -> Condition
Condition ListContains(string variable, string value)

参数

名称类型默认值说明
变量文本—
值文本—

返回

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

非

函数

The condition does not hold.

签名
非(条件: Condition) -> Condition
Condition Not(Condition condition)

参数

名称类型默认值说明
条件Condition—

返回

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

变量至少为

函数

A number variable is at least a value: affection at least 3.

签名
变量至少为(变量: 文本, 值: 数字) -> Condition
Condition VariableAtLeast(string variable, double value)

参数

名称类型默认值说明
变量文本—
值数字—

返回

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

变量已设置

函数

A variable holds: true, non-zero, non-empty.

签名
变量已设置(变量: 文本) -> Condition
Condition VariableIsSet(string variable)

参数

名称类型默认值说明
变量文本—

返回

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

访问次数至少为

函数

A label has been reached at least a number of times in this playthrough: the third visit to the market.

签名
访问次数至少为(标签: 文本, 次数: 整数) -> Condition
Condition VisitedAtLeast(string label, int times)

参数

名称类型默认值说明
标签文本—
次数整数—

返回

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