黑暗交易
如果你正在访问此页面,你可能已经看过相关的 YouTube 系列视频,其中解释了本游戏的工作原理。因此,如果你不关心所有具体细节,请直接前往 安装与重要信息 部分以了解如何设置。无论如何,我现在将以极其详尽的方式解释该插件的内部运作机制,因为若缺少如此庞大的信息量,总觉得不太合适。
首先列出一些基本但难以归类的信息:
- 玩家初始拥有 4 条命
- 你可以使用
/givelife 命令给予其他玩家生命,但不能将自己最后一条生命送出
- 名称颜色规则如下:
- 4+ 条命:深绿色
- 3 条命:绿色
- 2 条命:黄色
- 1 条命:红色
- 当你的生命值不为红色时,你正常进行游戏,且不允许煽动攻击
- 当你的生命值变为红色时,你 必须脱离队伍,并被赋予击杀剩余所有玩家的任务
- 你需要信任你的队友,确保他们在身份揭示前不会提前交出生命
- 幽灵状态的玩家无法使用聊天功能
- 将启用“保留物品栏”(Keep inventory)
- 本插件内置了距离聊天功能。在消息前加上“.”即可使其成为距离聊天
- “波吉曼”(Boogeyman)的击杀记录不会显示在聊天中
游戏的核心机制是让玩家在每局开始时获得特殊身份。并非所有玩家都会有特殊身份,部分玩家将分配为“村民”身份。拥有村民身份的玩家在下一次对局中获得其他身份的概率会更高。每个玩家的专属身份描述及具体规则将在对局开始时告知。某些特殊身份具有特定目标需要完成,而另一些则拥有特殊能力。大多数情况下,玩家可以自由向他人透露自己的身份。但是,禁止与梦魇(Boogeyman)合谋,以牺牲受害者来换取生命值。没有任何身份能在变红后保留,尽管除双胞胎外,若玩家获得额外生命值,其身份将会恢复。
枯燥的角色列表详解
以下是按选择优先级排序的所有角色列表。(如果玩家数量不足以覆盖所有角色,列表顶部的角色将优先分配。)
-
梦魇 (The Boogeyman)
只要场上有 5 名或更多处于失去一条生命值状态的玩家,每局就会随机出现两名或三名梦魇,概率各占 50%。每位梦魇都会得知其他梦魇的身份,且每位梦魇都必须在对局结束前完成至少一次击杀,否则所有梦魇都将失去一条生命值。鼓励梦魇们合作以达成目标。如果某位梦魇变红,他将免除梦魇的职责,不再需要完成击杀以确保其他梦魇不损失生命值。当然,如果他重新获得了一条生命值,他将继续作为梦魇参与游戏。之前身为梦魇但现已变红的玩家,不允许告知其他人谁是梦魇。
-
死灵法师 (The Necromancer)
从第一局最终死亡之后开始,每局将指定一名玩家担任此角色。该玩家可以选择将自己的其中一条生命值给予一名已被淘汰的玩家,但被淘汰的玩家复活时不会保留原有物品。被复活的玩家将被传送至复活者所在的位置。
-
受审者 (The Condemned)
从第二局开始,如果剩余玩家数量足够,将在对局开始时选出两名深绿色名称或两名浅绿色名称的玩家作为受审者。这些玩家将在服务器中被公开宣布为受审者。当对局剩余时间约为 30 分钟时,只要两名受审者均未降级为黄色状态,系统将发起投票,得票最多的受审者在对局结束后爆炸。每次爆炸的范围会随着对局进行而增大。求求了,别为了摆脱受审者身份而随意赠送生命值。
-
受害者 (The Victim)
如果本局存在梦魇,则会有且仅有一名受害者。该玩家必须试图让梦魇将自己杀死。如果成功,受害者将获得一条生命值,而不是因被杀而损失一条。杀死受害者的梦魇并不会因此解除诅咒,系统会提示他犯了一个愚蠢的错误(oopsie)。
-
调查员 (The Investigator)
如果本局存在梦魇,则会有且仅有一名调查员。调查员将获得一瓶喷溅型显影药水(称为“沉思宝珠”)。使用“显影”效果后,如果受影响的是梦魇,调查员视野中将显示红色方框;如果不是梦魇,则显示绿色方框;如果是已治愈的梦魇,则显示黄色方框。
-
模仿者 (The Mimic)
该玩家可以使用蹲下 + 手持空右键点击另一名玩家来复制对方的身份一次。如果在对局结束前未成功复制任何身份,将面临一条生命值的惩罚。即使右键点击的是村民,也算作使用了复制机会,但无法复制受审者——因为我懒得写那部分代码。
-
双胞胎 (The Twins)
在对局开始时,将选定两名玩家成为双胞胎,且他们不会被告知对方是谁。这两名玩家的生命上限将为 15 颗心,并在对局开始时设置为该数值。在整个对局期间,他们的生命值和死亡状态将同步绑定。为了防止破坏生命链接机制,这两名玩家在对局期间禁止食用金苹果。如果其中任意一名玩家变红,链接将被断开,因为红色状态下的玩家无法维持特殊身份。由于我比较懒,不想处理重新建立生命链接的问题,因此双胞胎之间不能互相赠送或接受生命值。
-
传送者 (The Transporter)
该玩家可以蹲下 + 手持空右键点击一名玩家来选择目标进行传送。再次选择同一玩家将取消选择,而选择不同玩家则将替换当前选中目标。此技能每局可使用两次,且严禁恶意滥用。
安装与重要信息
如果你是打算下载插件并与好友团队一起游玩,以下是操作方法:
- 创建一个 Spigot 服务器,或使用其他仍保留 Spigot API 的 Spigot 分支。如果你使用的是免费主机,请确保主机允许你安装自定义插件,因为除非该插件变得极其受欢迎,否则我不会尝试将其添加到任何 Aternos 插件仓库中。
- 下载最新版本并将其添加到服务器的
plugins 文件夹中
- 启动你的服务器
- 如果你想要包含死亡音效和自定义物品纹理的资源包,请关闭服务器并在
server.properties 文件中设置以下值:
require-resource-pack=true
resource-pack=https://github.com/Pm7-dev/Shady_Business/raw/refs/heads/main/texturepack.zip
resource-pack-id=
resource-pack-prompt=
resource-pack-sha1=b8a8fac1d6cceeea20a171b6700c0fed57d8d9e0
- 确保你的玩家拥有管理员权限(operator permissions)
- 当所有玩家都上线后,运行
/startsession。这将开始游戏,并在几分钟后为每位在线玩家分配一个角色。在此命令运行后,玩家仍然可以加入,但在下一轮会话开始前,他们将没有角色。
- 如果玩家忘记了自己的角色或忘记了关于角色的某些方面,他们可以运行
/info 来查看其角色的相关信息。
- 如果需要逆转某次死亡,管理员可以运行
/setlife <player> <amount> 来设置玩家的剩余生命值数量。
- 如果鬼魂(boogeyman)通过间接方式获得击杀,他们可以使用
/cure 命令。任何人都可以运行此命令,因此你必须信任你的玩家以保持公平性。
- 如果“被定罪者”(Condemned)角色已被使用,在会话接近尾声时,管理员应运行
/startvote。这将开始投票,没错,就是这么简单。
- 如果玩家不小心清空了聊天窗口,或者在投票开始后刚刚登录,他们可以运行
/votemenu 来查看菜单,而不是点击聊天消息。
- 在会话结束时,运行
/endsession 以检查鬼魂是否成功,以及模仿者(mimic)是否复制了某个角色。
- 如果与其他插件发生冲突导致问题,并且必须使用
/reload 命令,请让所有玩家重新登录以刷新名称颜色显示。
- 如果你发现错误或希望更改插件功能,欢迎 提交 issue,我可能会抽空处理。请注意,本插件是为该系列内容而创建的,在完成之后进行的任何修改仅在我有空闲时间时才会进行。
鸣谢
- _Pm7 负责编写所有代码
- Piffin380 提出了核心创意,灵感来源于 Ultimate Werewolf
- All the Cheap Life 的成员们为打造精彩的赛季做出了贡献(推测如此。这条致谢写在赛季开始之前 :3)
Shady Business
If you are visiting this page, you likely have already seen the YouTube series, which explains how this game works. So if you don't care about all the specific details, go to the Installation and Important Info section to learn how to set this up. Anyway, I will now explain the inner workings of this plugin in excruciating detail because it wouldn't feel right not having this giant amount of information somewhere.
First listing some basic info that doesn’t really fit anywhere
- Players start with 4 lives
- You are able to give other players lives with the /givelife command, however cannot give away your last life
- Name colors go as follows:
-
-
-
-
- When you are not red, you play the game as normal and are not allowed to incite attacks
- When you are red, you must abandon your team and are now tasked with killing any remaining player
- You will have to trust your players to not give away their lives before the role reveal
- Ghost players will not be able to use chat
- Keep inventory will be enabled
- Proximity chat is built into this plugin. Put a "." before a message to make it proximity.
- Boogeyman kills do not show up in chat
The game centers around the idea of giving players special roles at the start of a session. Not every player will have a special role, and will be given the role "Villager." Players with the Villager role will have a larger chance of getting a role in the next session. Role descriptions and specifics will be announced to each player according to their role. Some special roles will have an objective to complete, while others have an ability. Players are for the most part allowed to tell others what role they are. However, you are not allowed to make a plan with a boogeyman as a victim to get a life. There are zero roles that persist on red, although (outside of twins) the roles will come back if you are given a life.
Boring list explaining all the role stuff
This is a list of roles in the order of selection priority (If there are not enough players to fill all the roles, the roles at the top of the list will take priority)
- The Boogeyman
As long as there are 5 or more players that are past one life, There will be either two or three boogeymen each session, with a 50% chance of either number. Each boogeyman is alerted as to who the other boogeymen are, and every boogeyman has to get a kill before the session ends, or all boogeymen lose one life. Boogeymen are encouraged work together to accomplish the goal. If a boogeyman turns red, they will be exempt from boogeyman duties, and will not need to get a kill to ensure the other boogeymen do not lose a life. Of course, if they are given a life back, they rejoin the boogeymen. A red player that was previously a boogey is not allowed to tell the other people who the boogeymen are.
- The Necromancer
One player will be selected to have this role in each session after the first final death. This player is able to give one of their lives to an eliminated player if they choose to, however the eliminated player will not respawn with their items. The revived player will be teleported to the location of the player that revived them.
- The Condemned
Starting onward from session two, either two dark green or two light green names will be selected to be the condemned at the start of the session if enough are remaining. These players will be publicly announced to the server as the condemned. When there are around 30 minutes remaining in the session, as long as neither of the condemned has dropped to yellow, a vote will be cast, and the condemned that has the most votes when voting is finished will explode. The explosion gets larger each session. Pretty please don't give away your lives to get out of being condemned
- The Victim
If there are boogeymen in the session, there will be one victim. This player must try to get themselves killed by a boogeyman. If they succeed, they will gain a life instead of losing one from the boogeyman. The boogeyman that killed the victim will not be cured from this, and will be told that they did an oopsie.
- The Investigator
If there are boogeymen in the session, there will be an investigator. The investigator is given one splash potion of revealing (called the orb of pondering). The “revealing” effect will show the investigator a red box if the affected player is a boogeyman, and a green box if the affected player is not. It will show a yellow box if the affected player is a cured boogeyman.
- The Mimic
This player is able to copy another player’s role once by crouch + right clicking them with an empty hand. There will be a one-life penalty for not copying a role before the end of the session. The copy is still used if a villager is right clicked, but a Condemned can not be copied because I did not want to code that.
- The Twins
Two players are selected to be twins at the start of the session, and they will not be told who the other twin is. These two players will have a maximum of 15 hearts, and will be set to that health at the start of the session. These players will have their health and deaths synced for the entire session. These two players will not be allowed to eat golden apples for the session, because that would break the health link. If either of these two players becomes red, the link will be broken, as roles cannot be maintained on red players. Twins cannot give or receive lives because I am lazy and don't want to deal with reestablishing the health link.
- The Transporter
This player can crouch + right click a player with an empty hand to select them for teleportation. Selecting the same player again will deselect that player, but selecting a different player will swap their place with the already selected player. This can be used 2 times per session, and is NOT allowed to be used maliciously.
Installation and Important Info
If you are here because you want to download the plugin and play it with your friend group, here's how you can do it.
- Create a spigot server or use some other fork of spigot that still has the spigot API. If you are using a free host, make sure the host allows you to install custom plugins, because I will not be trying to add this to any sort of Aternos plugin repo unless this got insanely popular.
- Download the latest release and add it to the plugins folder of your server
- Start your server
- If you want the texture pack with the death sounds and custom item textures, close your server and set the following values in your
server.properties file
require-resource-pack=true
resource-pack=https://github.com/Pm7-dev/Shady_Business/raw/refs/heads/main/texturepack.zip
resource-pack-id=
resource-pack-prompt=
resource-pack-sha1=b8a8fac1d6cceeea20a171b6700c0fed57d8d9e0
- Make sure your player has operator permissions
- When you've gotten all of your players online, run
/startsession. This will start the game, and will give a role to every player that is online after a few minutes. Players can still join after this command is run, but they will not have a role until the next session
- If players forget what their role is, or forget some aspect about it, they can run
/info to view the information about their role.
- If a death should be reversed, an operator can run
/setlife <player> <amount> to set a player's life count.
- If a boogeyman gets a kill via an indirect method, they are allowed to run
/cure. This command can be run by anyone, so you have to trust your players to keep things fair.
- If the Condemned role has been run, towards the end of the session, an operator should run
/startvote. This will start the vote, believe it or not.
- If a player has accidentally cleared their chat, or has just logged in after the vote was started, they can run
/votemenu to see the menu instead of clicking the chat message
- At the end of the session, run
/endsession to check if the boogeymen have succeeded, and if the mimic has copied a role
- If something with a different plugin breaks, and you must use
/reload, get every player to log off and log back on to see the name colors.
- If you find a bug or desire a change in the plugin, feel free to make an issue and I might get around to it. Please do understand that this plugin was created for the series, and any edits done after it is finished will only be made if I happen to have time.
Credits
- _Pm7 for writing all the code
- Piffin380 for creating the central idea, inspired from Ultimate Werewolf
- All the Cheap Life members for contributing towards making a great season (presumably. This credit was written before the season started :3)
评论 0
登录后参与评分
还没有评论,来抢沙发吧