Replies: 1 comment
-
Q: 为什么不设立一个统一的set:bgm/se/xxx而应该设计复述的对应的指令 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
目的
优化脚本编写体验,为可视化编辑预设铺路
新增指令
以下以BGM为例:
我们在这行指令中完成了从[name]到[path/to/file]的映射,并预设了volume为90%
只要将像这样类似的指令集中到同一个文件,就构成了一个抽象的文件数据预设系统
再使用时可以传入name而不是path
与以往不同的调用方式,只传递name就可以播放BGM,无形中优化剧本阅读的理解成本
并且这里展示了一个新的参数
notunlock
,代表这次播放不会unlock对应名称的BGM这也大大简化了【播放并解锁对应名称的BGM】这一操作的输入效率,因为只要复用传入的name就可以直接进行解锁,而想要不解锁(我始终觉得这是非常少见的场景)就使用-notunlock即可
扩展延伸
同理,上述操作可以扩展到bg,se,figure等等指令中
极大地简化脚本编写体验以及只想看剧本时的阅读体验
Beta Was this translation helpful? Give feedback.
All reactions