角色
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. |
| 侧边图像 | 真否 | False | Whether to show the character's image beside their lines. |
| NVL 模式 | 真否 | False | Whether 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 视觉小说