Novella 遊戲
46 個節點
本頁內容 46
選項變數
函數With NovellaGame.HeadlessVariable, the menu choices to make, by position among the options shown and separated by commas (1,0,2); once they run out the first option is chosen. How a document's other routes are played without a desktop.
選項變數() -> 文字
string ChoicesVariable()
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
無介面變數
函數The environment variable that makes NovellaGame.Run play headless: its value is how many interactions to play.
無介面變數() -> 文字
string HeadlessVariable()
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
截圖變數
函數With NovellaGame.HeadlessVariable, a folder to save a described picture of every interaction in, so a document's frames can be looked at as well as its transcript read.
截圖變數() -> 文字
string ScreenshotsVariable()
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
建立 Novella 遊戲
函數Makes a game with a title and a resolution.
建立 Novella 遊戲 -> Novella Game
標題: 文字
寬度: 整數
高度: 整數NovellaGame NovellaGame(
string title = "Novella Game",
int width = 1280,
int height = 720)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 標題 | 文字 | Novella Game | The game's name, shown in the window title and on the main menu. |
| 寬度 | 整數 | 1280 | The resolution everything is laid out at; the window scales it. |
| 高度 | 整數 | 720 | The resolution's height. |
返回
| Novella 遊戲 | Novella Game |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
從定義建立 Novella 遊戲
函數Makes a game from a definition built elsewhere, such as by a functional graph.
從定義建立 Novella 遊戲(定義: Game Definition) -> Novella Game
NovellaGame NovellaGame(GameDefinition definition)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 定義 | Game Definition | — |
返回
| Novella 遊戲 | Novella Game |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
獲得成就
函數Live script: grants an achievement.
獲得成就(Novella Game: Novella Game, 成就: 文字)
void Achieve(NovellaGame Novella Game, string achievement)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 成就 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
新增素材
函數Adds one file from memory, under a path scripts refer to it by.
新增素材
Novella Game: Novella Game
路徑: 文字
資料: 位元組陣列void AddAsset(
NovellaGame Novella Game,
string path,
byte[] data)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 路徑 | 文字 | — | |
| 資料 | 位元組陣列 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
新增素材資料夾
函數Adds a folder of game files: images, audio, video, fonts, scripts.
新增素材資料夾(Novella Game: Novella Game, 資料夾: 文字)
void AddAssetFolder(NovellaGame Novella Game, string folder)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 資料夾 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
新增庫素材
函數Adds the files embedded in this Divooka document's library: its images, sounds, fonts and scripts.
新增庫素材
Novella Game: Novella Game
_library: IDivookaAssetLibraryvoid AddLibraryAssets(
NovellaGame Novella Game,
IDivookaAssetLibrary _library)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| _library | IDivookaAssetLibrary | — | The document's library (supplied automatically). |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
新增場景
函數Adds a scene: a label made from a scene's background, music, lines and ending.
新增場景(Novella Game: Novella Game, 場景: Scene)
void AddScene(NovellaGame Novella Game, SceneDefinition scene)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 場景 | Scene | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
新增故事
函數Adds a story built elsewhere (from nodes or code).
新增故事(Novella Game: Novella Game, 故事: Story)
void AddStory(NovellaGame Novella Game, Story story)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 故事 | Story | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
呼叫標籤
函數Live script: runs a story label to its return, then comes back here.
呼叫標籤(Novella Game: Novella Game, 標籤: 文字)
void CallLabel(NovellaGame Novella Game, string label)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 標籤 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
定義角色
函數Defines a character.
定義角色 -> Character Definition
Novella Game: Novella Game
ID: 文字
名稱: 文字
顏色: 文字
影像: 文字CharacterDefinition DefineCharacter(
NovellaGame Novella Game,
string id,
string name,
string color = "",
string image = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| ID | 文字 | — | The name scripts use for the character. |
| 名稱 | 文字 | — | The name shown when they speak. |
| 顏色 | 文字 | — | The name's colour, such as #c0392b. |
| 影像 | 文字 | — | The character's image tag, so lines can change their expression. |
返回
| 結果 | Character Definition |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
定義影像
函數Defines an image by name from a file among the assets (or a colour such as #000).
定義影像(Novella Game: Novella Game, 名稱: 文字, 檔案: 文字)
void DefineImage(
NovellaGame Novella Game,
string name,
string file)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 名稱 | 文字 | — | |
| 檔案 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
取得數字
函數Reads a story variable as a number.
取得數字(Novella Game: Novella Game, 名稱: 文字) -> 數字
double GetNumber(NovellaGame Novella Game, string name)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 名稱 | 文字 | — |
返回
| 值 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
取得變數
函數Reads a story variable as text.
取得變數(Novella Game: Novella Game, 名稱: 文字) -> 文字
string GetVariable(NovellaGame Novella Game, string name)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 名稱 | 文字 | — |
返回
| 值 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
隱藏
函數Live script: hides an image.
隱藏(Novella Game: Novella Game, 標籤: 文字, 轉場: 文字)
void Hide(
NovellaGame Novella Game,
string tag,
string with = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 標籤 | 文字 | — | |
| 轉場 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
輸入
函數Live script: asks the player to type something and returns it.
輸入 -> 文字
Novella Game: Novella Game
提示詞: 文字
預設文字: 文字string Input(
NovellaGame Novella Game,
string prompt,
string defaultText = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 提示詞 | 文字 | — | |
| 預設文字 | 文字 | — |
返回
| 文字 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
載入指令碼
函數Adds a script, given as text.
載入指令碼(Novella Game: Novella Game, 指令碼: 文字, 名稱: 文字)
void LoadScript(
NovellaGame Novella Game,
string script,
string name = "script.novella")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 指令碼 | 文字 | — | Novella script. |
| 名稱 | 文字 | script.novella | A name for messages, such as the file it came from. |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
載入指令碼檔案
函數Adds a script file from disk.
載入指令碼檔案(Novella Game: Novella Game, 路徑: 文字)
void LoadScriptFile(NovellaGame Novella Game, string path)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 路徑 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
從素材載入指令碼
函數Adds every script (.novella) among the game's files, under a folder or everywhere.
從素材載入指令碼 -> 整數
Novella Game: Novella Game
資料夾: 文字int LoadScriptsFromAssets(
NovellaGame Novella Game,
string folder = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 資料夾 | 文字 | — |
返回
| 數量 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
選單
函數Live script: offers choices and returns the index of the one chosen.
選單 -> 整數
Novella Game: Novella Game
選項: 文字陣列
標題: 文字int Menu(
NovellaGame Novella Game,
string[] choices,
string caption = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 選項 | 文字陣列 | — | The choices' text. |
| 標題 | 文字 | — | An optional line shown with the choices. |
返回
| 選項 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
旁白
函數Live script: narration.
旁白(Novella Game: Novella Game, 文字: 文字)
void Narrate(NovellaGame Novella Game, string text)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 文字 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
通知
函數Live script: shows a notification.
通知(Novella Game: Novella Game, 文字: 文字)
void Notify(NovellaGame Novella Game, string text)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 文字 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
暫停
函數Live script: waits for a time, or for a click when the time is zero.
暫停(Novella Game: Novella Game, 秒數: 數字)
void Pause(NovellaGame Novella Game, double seconds = 0)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 秒數 | 數字 | 0 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
播放
函數Live script: plays a file on a channel (music loops, sound plays once).
播放
Novella Game: Novella Game
聲道: 文字
檔案: 文字
淡入: 數字void Play(
NovellaGame Novella Game,
string channel,
string file,
double fadeIn = 0)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 聲道 | 文字 | — | |
| 檔案 | 文字 | — | |
| 淡入 | 數字 | 0 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
隨機整數
函數A random whole number from the story's own generator, so rolling back and choosing again draws the same one.
隨機整數 -> 整數
Novella Game: Novella Game
最小值: 整數
最大值: 整數int RandomInteger(
NovellaGame Novella Game,
int minimum,
int maximum)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 最小值 | 整數 | — | The smallest number it can be. |
| 最大值 | 整數 | — | The largest number it can be. |
返回
| 數字 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
註冊命令
函數Registers a command that takes no arguments and returns nothing, the shape a Divooka function graph has most often.
註冊命令(Novella Game: Novella Game, 名稱: 文字, 操作: Action)
void RegisterAction(
NovellaGame Novella Game,
string name,
Action action)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 名稱 | 文字 | — | |
| 操作 | Action | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
註冊命令函數
函數Registers a command that takes arguments and answers: a graph given the arguments as text, whose answer the story reads as _return (a number, true or false, or text, as typed).
註冊命令函數
Novella Game: Novella Game
名稱: 文字
處理函數: Func<文字陣列, 文字>void RegisterCommandFunction(
NovellaGame Novella Game,
string name,
Func<string[], string> handler)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 名稱 | 文字 | — | What run names the command by. |
| 處理函數 | Func<文字陣列, 文字> | — | The graph: text in, text out. |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
登錄檔達式函數
函數Registers a function conditions, text and effects can call by name, such as [title_for(trust)]: a graph given the arguments as text, whose answer is read as typed.
登錄檔達式函數
Novella Game: Novella Game
名稱: 文字
函數: Func<文字陣列, 文字>void RegisterExpressionFunction(
NovellaGame Novella Game,
string name,
Func<string[], string> function)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 名稱 | 文字 | — | What expressions call it by. |
| 函數 | Func<文字陣列, 文字> | — | The graph: text in, text out. |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
執行
函數Opens the game in a window and plays until the player quits.
執行(Novella Game: Novella Game)
void Run(NovellaGame Novella Game)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — |
備註
With NovellaGame.HeadlessVariable set to a number, it plays that many interactions headless through the game's real controls instead, choosing the options NovellaGame.ChoicesVariable lists and then the first option of every menu, and prints what was said: how an example document or a build is checked without a desktop.
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
說話
函數Live script: a character says a line, and the call returns when the player continues.
說話(Novella Game: Novella Game, 字元: 文字, 文字: 文字)
void Say(
NovellaGame Novella Game,
string character,
string text)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 字元 | 文字 | — | A character id, or empty for narration. |
| 文字 | 文字 | — | The line, with text tags if wanted. |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
場景
函數Live script: clears the stage and shows a background.
場景(Novella Game: Novella Game, 影像: 文字, 轉場: 文字)
void Scene(
NovellaGame Novella Game,
string image = "",
string with = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 影像 | 文字 | — | |
| 轉場 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
設定配置項
函數Sets a configuration value, as define config.name = value does in a script: text, a number, true or false. A value set here holds over the scripts' own definition of the key.
設定配置項(Novella Game: Novella Game, 鍵: 文字, 值: 文字)
void SetConfig(
NovellaGame Novella Game,
string key,
string value)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 鍵 | 文字 | — | The setting, such as version, text_speed, main_menu_music. |
| 值 | 文字 | — | The value as written: 1.2, true, audio/theme.ogg. |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
設定預設值
函數Sets a variable's initial value, as default does.
設定預設值(Novella Game: Novella Game, 變數: 文字, 值: 文字)
void SetDefault(
NovellaGame Novella Game,
string variable,
string value)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 變數 | 文字 | — | |
| 值 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
設定解析度
函數Sets the resolution the game is laid out at.
設定解析度(Novella Game: Novella Game, 寬度: 整數, 高度: 整數)
void SetResolution(
NovellaGame Novella Game,
int width = 1920,
int height = 1080)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 寬度 | 整數 | 1920 | |
| 高度 | 整數 | 1080 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
設定結果
函數Answers the run command being handled: the story reads this as _return.
設定結果(Novella Game: Novella Game, 值: 文字)
void SetResult(NovellaGame Novella Game, string value)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 值 | 文字 | — | The answer, as written: text, a number, true or false. |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
設定主題
函數Sets a theme value, as define theme.name = value does: a colour, a size, an image file, a font. A value set here holds over the scripts' own definition of the key.
設定主題(Novella Game: Novella Game, 鍵: 文字, 值: 文字)
void SetTheme(
NovellaGame Novella Game,
string key,
string value)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 鍵 | 文字 | — | The setting, such as text_font, accent_color, textbox_image. |
| 值 | 文字 | — | The value as written: #c0392b, 36, gui/textbox.png; a list as [40, 40, 40, 40]. |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
設定標題
函數Sets the game's title.
設定標題(Novella Game: Novella Game, 標題: 文字)
void SetTitle(NovellaGame Novella Game, string title)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 標題 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
設定變數
函數Sets a story variable (in a live script, or from a command).
設定變數(Novella Game: Novella Game, 名稱: 文字, 值: 文字)
void SetVariable(
NovellaGame Novella Game,
string name,
string value)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 名稱 | 文字 | — | |
| 值 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
顯示
函數Live script: shows an image, optionally at a position and with a transition.
顯示
Novella Game: Novella Game
影像: 文字
位置: 文字
轉場: 文字void Show(
NovellaGame Novella Game,
string image,
string at = "",
string with = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 影像 | 文字 | — | An image name: a tag and attributes, such as qinglan smile. |
| 位置 | 文字 | — | A transform: left, center, right, or one the story defines. |
| 轉場 | 文字 | — | A transition: dissolve, fade and so on. |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
停止
函數Live script: stops a channel.
停止(Novella Game: Novella Game, 聲道: 文字, 淡出: 數字)
void Stop(
NovellaGame Novella Game,
string channel,
double fadeOut = 0)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 聲道 | 文字 | — | |
| 淡出 | 數字 | 0 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
轉為文字
函數此節點沒有文件說明。
轉為文字(Novella Game: Novella Game) -> 文字
string ToString(NovellaGame Novella Game)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — |
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
翻譯文字
函數Text in the player's language, through the story's string translations (translate ... strings).
翻譯文字(Novella Game: Novella Game, 文字: 文字) -> 文字
string TranslateText(NovellaGame Novella Game, string text)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 文字 | 文字 | — |
返回
| 文字 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
驗證
函數Checks the story: undefined labels, characters, images, files, commands. Returns the problems found.
驗證(Novella Game: Novella Game) -> 文字陣列
string[] Validate(NovellaGame Novella Game)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — |
返回
| 問題 | 文字陣列 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說
使用轉場
函數Live script: runs a transition over what changed.
使用轉場(Novella Game: Novella Game, 轉場: 文字)
void With(NovellaGame Novella Game, string transition)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Novella Game | Novella Game | — | |
| 轉場 | 文字 | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- Novella 遊戲
- 所屬包
- Novella 視覺小說