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