元編程參考文件

場景

7 個節點

本頁內容 7

新增場景

函數

A story with a scene added, as a label of the scene's name.

簽名
新增場景(故事: Story, 場景: Scene) -> Story
Story AddScene(Story story, SceneDefinition scene)

參數

名稱型別預設值說明
故事Story—
場景Scene—

返回

故事Story
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
場景
所屬包
Novella 視覺小說

分支到場景

函數

The story goes to one scene or another depending on a condition.

簽名
分支到場景 -> Scene Ending
    條件: Condition
    則: 文字
    否則: 文字
SceneEnding BranchToScene(
    Condition condition,
    string then,
    string otherwise)

參數

名稱型別預設值說明
條件Condition—
則文字—
否則文字—

返回

結局Scene Ending
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
場景
所屬包
Novella 視覺小說

選擇場景

函數

The player chooses which scene comes next.

簽名
選擇場景 -> Scene Ending
    標題: 文字
    第一個: Scene Choice
    第二個: Scene Choice
    第三個: Scene Choice
    第四個: Scene Choice
SceneEnding ChooseScene(
    string caption,
    SceneChoice first,
    SceneChoice second,
    SceneChoice third,
    SceneChoice fourth)

參數

名稱型別預設值說明
標題文字—A line shown with the choices; may be empty.
第一個Scene Choice—The first choice.
第二個Scene Choice—The second choice.
第三個Scene Choice—A third choice, if any.
第四個Scene Choice—A fourth choice, if any.

返回

結局Scene Ending
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
場景
所屬包
Novella 視覺小說

結束遊戲

函數

The game ends.

簽名
結束遊戲() -> Scene Ending
SceneEnding EndGame()

返回

結局Scene Ending
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
場景
所屬包
Novella 視覺小說

前往場景

函數

The story goes on to another scene.

簽名
前往場景(場景: 文字) -> Scene Ending
SceneEnding GoToScene(string scene)

參數

名稱型別預設值說明
場景文字—The scene.

返回

結局Scene Ending
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
場景
所屬包
Novella 視覺小說

建立場景

函數

A scene.

簽名
建立場景 -> Scene
    名稱: 文字
    行: Sequence
    結局: Scene Ending
    背景: 文字
    轉場: 文字
    音樂: 文字
SceneDefinition MakeScene(
    string name,
    Sequence lines,
    SceneEnding ending,
    string background = "",
    string transition = "fade",
    string music = "")

參數

名稱型別預設值說明
名稱文字—Its name, which other scenes go to; start for the first.
行Sequence—What happens in it: a sequence of Say, Show and the other Story Writing nodes.
結局Scene Ending—Where the story goes after it: Go To Scene, Choose Scene, Branch To Scene or End Game. Left empty, the game ends.
背景文字—Its background, such as bg plum_garden; empty keeps the stage.
轉場文字fadeHow the background comes in, such as fade or dissolve.
音樂文字—Music for the scene; empty keeps what plays.

返回

場景Scene
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
場景
所屬包
Novella 視覺小說

場景選項

函數

A choice that leads to a scene.

簽名
場景選項 -> Scene Choice
    文字: 文字
    場景: 文字
    條件: Condition
    效果: Effect
SceneChoice MakeSceneChoice(
    string text,
    string scene,
    Condition when,
    Effect effect)

參數

名稱型別預設值說明
文字文字—What the button says.
場景文字—The scene it leads to.
條件Condition—Offered only when this holds; empty always offers it.
效果Effect—What taking it changes, such as Add To Variable; may be empty.

返回

選項Scene Choice
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
場景
所屬包
Novella 視覺小說