元編程參考文件

選項

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