元編程參考文件

條件

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 視覺小說