此插件允许你为服务器创建“过场动画”:
玩家会被传送至一系列预设的传送点,并可能收到聊天消息,例如告知玩家这片树木农场的外观,以及提醒他在此处种植树木。
场景中包含“场景节点”,每个节点对应世界中的一个位置,可附带可选的消息(发送给玩家)和等待时间,在等待结束后玩家将传送到下一个场景。你还可以为场景添加背景音乐和延迟发送的消息。
因此,你可以为你的服务器制作精美的开场引导序列,从而减轻管理员的工作负担,无需反复向大量用户重复相同的内容。
在过场动画播放期间,玩家无法移动、破坏方块或使用命令(/cutscene 命令除外)。
依赖项
- (可选) VanishNoPacket(如果玩家处于过场动画中,他们将不可见)
命令
用户命令
/cutscene start <场景> 开始过场动画 (cutscene.user.start)
/cutscene stop 停止过场动画 (cutscene.user.stop)
/cutscene reload 重新加载场景节点 (cutscene.admin)
管理员命令
/cse create <场景> 创建一个场景 (cutscene.admin)
/cse add <场景> (场景节点) <延迟> 创建一个场景节点 (cutscene.admin) -> 你的位置将成为目标位置
/cse edit <场景> <场景节点> (延迟) 编辑一个场景节点 (cutscene.admin) -> 你的位置将成为目标位置
/cse move <场景> <场景节点> <before|after> <其他节点> 移动一个场景节点 (cutscene.admin)
/cse setdelay <场景> <场景节点> <延迟> 列出场景/场景节点 (cutscene.admin)
/cse list (场景) 列出场景/场景节点 (cutscene.admin)
/cse addmessage <场景> <场景节点> <时间> <文本 ...> 在给定相对时间的节点添加一条消息 (cutscene.admin)
/cse concatmessage <场景> <场景节点> <消息ID> <文本 ...> 向现有消息添加文本。如果你希望第一个字符是空格,请使用 &s 作为空格 (cutscene.admin)
/cse removemessage <场景> <场景节点> <消息ID> 删除消息 (cutscene.admin)
/cse movemessage <场景> <场景节点> <消息ID> <时间> 将消息移动到某个时间点 (cutscene.admin)
/cse clearmessages <场景> <场景节点> 清除场景节点的所有消息 (cutscene.admin)
/cse listmessages <场景> <场景节点> 列出消息并显示其 ID (cutscene.admin)
/cse setrecord <场景> <场景节点> <唱片> 设置此场景的唱片机音乐 (cutscene.admin)
/cse tp <场景> <场景节点> 传送至场景节点的目标位置 (cutscene.admin)
/cse resume <场景> <场景节点> 从某个场景节点继续播放 (cutscene.admin)
1.1 版本新增:
/cse animation type <场景> <场景节点> <Teleport|MoveLine> 将场景节点的动画类型设置为传送(默认)或线性移动至下一个场景节点的目标点 (cutscene.admin)
/cse animation yawpitch <场景> <场景节点> <开始时间> <结束时间> 设置重新开始调整玩家朝向(即玩家看向的方向)的相对时间;默认值:start: 0 end: 0.2 (cutscene.admin)
1.2 版本新增:
/cse effect 列出效果
/cse effect help <效果> 显示效果帮助
/cse effect add <场景> <节点> <时间> <效果> (效果参数)
/cse effect remove <场景> <节点> <ID> (效果参数)
/cse effect move <场景> <节点> <ID> <时间> (效果参数)
效果: PlayRecord, Trigger, PlaySound, SetBlock, SpawnMob
/cse timeline <场景> (节点) (效果) 显示时间线
/csa who 列出正在观看过场动画的玩家
/csa reload
/csa forcesave
/cutscene start <玩家>
/cutscene stop <玩家>
实用提示: 如果你想编辑大量消息,建议使用 Notepad2 或其他类似工具直接编辑 cutscenes.yml 文件,然后重新加载数据。
教程
一个简单的教程
- 使用的命令集为 /cse
- 创建一个场景:/cse create MyCutscene
- 前往某处并运行 /cse add MyCutscene 5 以将名为 "point0" 的场景节点添加到你的场景中。该节点时长为 5 秒。
- 前往另一处并运行 /cse add MyCutscene hello 10 以添加另一个场景(我们想向玩家显示一段文本)
- 要在场景节点开头添加一行消息,请使用 /cse addmessage MyCutscene hello 0 &4Hello World!
- 要在场景节点开头添加另一行消息,请使用 /cse addmessage MyCutscene hello 0 &aThis is another line!
- 在场景节点中间,我们想显示另一段文本:/cse addmessage MyCutscene hello 0.5 &3I'll be displayed after 5s! (<时间> 参数是相对的,因此:场景节点长度 = 10 -> 10 * 0.5 = 5
-> 在第 5 秒显示)
- 在向用户发送消息后,他们应该飞向另一个点,因此首先我们在 "hello" 位置为动画创建一个起点(你应该在那里,如果没有:/cse tp MyCutscene hello)
- 运行 /cse add MyCutscene animationscene 12 和 /cse animation type MyCutscene animationscene MoveLine 以将 animationscene 设为主动画场景。
- 添加另一个点作为动画场景的终点:/cse add MyCutscene animationend 5
- 说明:如果场景 "animationscene" 开始,玩家将被移动到 "animationend" 的位置,在 12 秒后,玩家将停留在 "animationend" 场景中 5 秒。
- "yawpitch"(设置玩家朝向目标点方向)的默认设置为 0.0 0.2:在 "animationstart" 完成 20% 时,玩家将看向与 "animationend" 相同的方向。如果你希望玩家在动画中间旋转,例如尝试 /cse animation yawpitch MyCutscene animationscene 0.4 0.5 -> 玩家将在 6 秒后旋转。
视频教程:
This plugin make it possible to create "cutscenes" for your server:
The player is teleported to a set of teleport points and may receive chat messages to, e.g. tell the player how the tree farm looks like and that he should farm trees there.
There are "scenes" with "scene nodes", each of them a location in the world with optional messages, sent to the player and a waiting time, until the player will be teleported to the next scene. You can also add music and delayed messages to a scene.
So you can create nice introduction sequences for your sever to make it easier for you moderators to handle large amounts of users (You dont have to tell them always the same thing!).
While being in a cutscene, the player may not move, destroy blocks and use commands (except /cutscene commands).
Dependencies
- (Optional) VanishNoPacket (Players will be invisible if they are in a cutscene)
Commands
User commands
/cutscene start <scene> Start cutscene (cutscene.user.start)
/cutscene stop Stop cutscene (cutscene.user.stop)
/cutscene reload Reload scene nodes (cutscene.admin)
Admin commands
/cse create <scene> Create a scene (cutscene.admin)
/cse add <scene> (scene node) <delay> Create a scene node (cutscene.admin) -> Your position will be the destination position
/cse edit <scene> <scene node> (delay) Edit a scene node (cutscene.admin) -> Your position will be the destination position
/cse move <scene> <scene node> <before|after> <other node> Move a scene node (cutscene.admin)
/cse setdelay <scene> <scene node> <delay> List scenes/scene nodes (cutscene.admin)
/cse list (scene) List scenes/scene nodes (cutscene.admin)
/cse addmessage <scene> <scene node> <time> <text ...> Add a message to the node at the given relative time (cutscene.admin)
/cse concatmessage <scene> <scene node> <message ID> <text ...> Add a text to a existing message. use &s as space if you want a space as first character (cutscene.admin)
/cse removemessage <scene> <scene node> <message ID> Remove message (cutscene.admin)
/cse movemessage <scene> <scene node> <message ID> <time> Move a message to a time (cutscene.admin)
/cse clearmessages <scene> <scene node> Clear all messages of a scene node (cutscene.admin)
/cse listmessages <scene> <scene node> List messages and show their ID (cutscene.admin)
/cse setrecord <scene> <scene node> <record> Set the jukebox music of this scene (cutscene.admin)
/cse tp <scene> <scene node> Teleport to a scene node's destination (cutscene.admin)
/cse resume <scene> <scene node> Resume at a scene node (cutscene.admin)
New in version 1.1:
/cse animation type <scene> <scene node> <Teleport|MoveLine> Set the animation type of scene node to teleporting (default) or a linear moving to the destination point of the next scene node (cutscene.admin)
/cse animation yawpitch <scene> <scene node> <begin time> <end time> Set the relative time to begin reorienting the player (where the player looks) default: start: 0 end: 0.2 (cutscene.admin)
New in version 1.2:
/cse effect List effects
/cse effect help <effect> Show effect help
/cse effect add <scene> <node> <time> <effect> (effect params)
/cse effect remove <scene> <node> <id> (effect params)
/cse effect move <scene> <node> <id> <time> (effect params)
Effects: PlayRecord, Trigger, PlaySound, SetBlock, SpawnMob
/cse timeline <scene> (node) (effect) Show timeline
/csa who List players in cutscenes
/csa reload
/csa forcesave
/cutscene start <player>
/cutscene stop <player>
Useful note: If you want to edit many messages, you should edit cutscenes.yml with Notepad2 or something similar and reload the data.
Tutorial
A little tutorial
- The command set, which is used is /cse
- Create a scene /cse create MyCutscene
- Go somewhere and run /cse add MyCutscene 5 to add the scene node "point0" to your scene. It will be 5s long.
- Go elsewhere and run /cse add MyCutscene hello 10 to add another scene (We want to say a text to the player)
- To add a message line at the beginning of the scene node, use /cse addmessage MyCutscene hello 0 &4Hello World!
- To add another message line at the beginning of the scene node, use /cse addmessage MyCutscene hello 0 &aThis is another line!
- At the middle of the scene node, we want to say another text: /cse addmessage MyCutscene hello 0.5 &3I'll be displayed after 5s! (The <time> arguments are relative, so: lenght of the scene node = 10 -> 10 * 0.5 = 5
-> Display at 5s)
- After the messages are sent to the user, he should fly to another point, so first, we make a start point for the animation at the "hello" position (you should be there, if not: /cse tp MyCutscene hello)
- run /cse add MyCutscene animationscene 12 and /cse animation type MyCutscene animationscene MoveLine to set animationscene as the main animation scene.
- Add another point as end of the animation scene: /cse add MyCutscene animationend 5
- Explanation: If the scene "animationscene" starts, the player will be moved to the point of "animationend" is 12s, then the player will be 5s in the "animationend" scene.
- The default setting of "yawpitch" (Setting the orientation of the player to the destination point's orientation) is 0.0 0.2: The player will look at the same direction of "animationend" after 20% of "animationstart". If you want that the player will rotate e.g at the middle of the animation, try /cse animation yawpitch MyCutscene animationscene 0.4 0.5 -> The player will be rotated after 6s
Video tutorial:
评论 0
登录后参与评分
还没有评论,来抢沙发吧