元编程参考文档

场景

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 视觉小说