故事變數
12 個節點
本頁內容 12
新增
函數Adds to a number.
簽名
新增(Story Variables: Story Variables, 名稱: 文字, 量: 數字)
void Add(
StoryVariables Story Variables,
string name,
double amount)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | |
| 量 | 數字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
標誌
函數Whether a variable holds: true, non-zero, non-empty.
簽名
標誌(Story Variables: Story Variables, 名稱: 文字) -> 真否
bool Flag(StoryVariables Story Variables, string name)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | The variable. |
返回
| 標誌 | 真否 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
整數
函數A number variable's value as a whole number.
簽名
整數(Story Variables: Story Variables, 名稱: 文字) -> 整數
int Integer(StoryVariables Story Variables, string name)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | The variable. |
返回
| 整數 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
列表
函數A list variable's items.
簽名
列表 -> IReadOnlyList<Value>
Story Variables: Story Variables
名稱: 文字IReadOnlyList<Value> List(
StoryVariables Story Variables,
string name)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | The variable. |
返回
| 列表 | IReadOnlyList<Value> |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
列表包含
函數Whether a list variable holds a value, compared as text.
簽名
列表包含 -> 真否
Story Variables: Story Variables
名稱: 文字
項: 文字bool ListContains(
StoryVariables Story Variables,
string name,
string item)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | The variable. |
| 項 | 文字 | — | The value looked for. |
返回
| 包含 | 真否 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
數字
函數A number variable's value; unset reads as 0.
簽名
數字(Story Variables: Story Variables, 名稱: 文字) -> 數字
double Number(StoryVariables Story Variables, string name)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | The variable. |
返回
| 數字 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
隨機
函數A whole number from Minimum to Maximum, both included, from the story's own generator, so rolling back and choosing again draws the same. It advances the generator, so it is not const.
簽名
隨機 -> 整數
Story Variables: Story Variables
最小值: 整數
最大值: 整數int Random(
StoryVariables Story Variables,
int minimum,
int maximum)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 最小值 | 整數 | — | |
| 最大值 | 整數 | — |
返回
| 結果 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
設定標誌
函數Sets a flag.
簽名
設定標誌(Story Variables: Story Variables, 名稱: 文字, 值: 真否)
void SetFlag(
StoryVariables Story Variables,
string name,
bool value)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | |
| 值 | 真否 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
設定數字
函數Sets a number.
簽名
設定數字(Story Variables: Story Variables, 名稱: 文字, 值: 數字)
void SetNumber(
StoryVariables Story Variables,
string name,
double value)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | |
| 值 | 數字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
設定文字
函數Sets text.
簽名
設定文字(Story Variables: Story Variables, 名稱: 文字, 值: 文字)
void SetText(
StoryVariables Story Variables,
string name,
string value)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | |
| 值 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
文字
函數A text variable's value; unset reads as empty.
簽名
文字(Story Variables: Story Variables, 名稱: 文字) -> 文字
string Text(StoryVariables Story Variables, string name)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 名稱 | 文字 | — | The variable. |
返回
| 文字 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說
已存取
函數Whether a label has been entered in this playthrough.
簽名
已存取(Story Variables: Story Variables, 標籤: 文字) -> 真否
bool Visited(StoryVariables Story Variables, string label)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Story Variables | Story Variables | — | |
| 標籤 | 文字 | — | The label. |
返回
| 已存取 | 真否 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 故事變數
- 所屬包
- Novella 視覺小說