元编程参考文档

角色

4 个节点

本页内容 4

角色部位样式

函数

A character whose lines draw a part with a style of the story's: their own window, name tab, name or text.

签名
角色部位样式 -> Character Definition
    字符: Character Definition
    部位: 文本
    样式: 文本
CharacterDefinition CharacterPartStyle(
    CharacterDefinition character,
    string part,
    string style)

参数

名称类型默认值说明
字符Character Definition—The character.
部位文本—window, namebox, who (the name) or what (the line).
样式文本—The style that part draws with.

返回

角色Character Definition
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
角色
所属包
Novella 视觉小说

创建角色

函数

Makes a character.

签名
创建角色 -> Character Definition
    ID: 文本
    名称: 文本
    颜色: 文本
    图像: 文本
    侧边图像: 真否
    NVL 模式: 真否
CharacterDefinition MakeCharacter(
    string id,
    string name,
    string color = "",
    string image = "",
    bool sideImage = false,
    bool nvl = false)

参数

名称类型默认值说明
ID文本—The name the story uses, such as qinglan.
名称文本—The name shown when they speak; may use [variable].
颜色文本—The name's colour, such as #c0392b.
图像文本—The character's image tag, so lines can change the expression; empty for none.
侧边图像真否FalseWhether to show the character's image beside their lines.
NVL 模式真否FalseWhether the character speaks on the full-screen NVL page.

返回

角色Character Definition
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
角色
所属包
Novella 视觉小说

设置角色样式属性

函数

A character with a style property set on a part of their lines for them alone: whatsize40, windowbackground"#200000".

签名
设置角色样式属性 -> Character Definition
    字符: Character Definition
    部位: 文本
    属性: 文本
    值: 文本
CharacterDefinition SetCharacterStyleProperty(
    CharacterDefinition character,
    string part,
    string property,
    string value)

参数

名称类型默认值说明
字符Character Definition—The character.
部位文本—window, namebox, who (the name) or what (the line).
属性文本—The property, as a script names it.
值文本—Its value, as a script writes it.

返回

角色Character Definition
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
角色
所属包
Novella 视觉小说

角色样式

函数

A character with a different text colour, font or quotation marks.

签名
角色样式 -> Character Definition
    字符: Character Definition
    文本颜色: 文本
    字体: 文本
    前缀: 文本
    后缀: 文本
CharacterDefinition StyleCharacter(
    CharacterDefinition character,
    string textColor = "",
    string font = "",
    string prefix = "",
    string suffix = "")

参数

名称类型默认值说明
字符Character Definition—
文本颜色文本—
字体文本—
前缀文本—
后缀文本—

返回

角色Character Definition
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
角色
所属包
Novella 视觉小说