Trovogration 是什么?
Trovogration 是一款仅客户端的 Minecraft 模组,旨在通过触发游戏内动作的形式,增强 Trovo 主播(自 2.1.2 版本起支持 Twitch 主播)与观众之间的互动。这些动作由观众发送特定的聊天指令来触发。如果你是在服务器上游玩,请记得给你的玩家授予 "/op" 权限;如果是单人游戏,请允许“作弊”模式。
点数:
每个动作都需要消耗点数。目前有两种类型的点数可用。RP(普通点数)是通过在主播频道消费 Trovo Mana 获得的,而 SP(特殊点数)则是通过消费以法术形式存在的 Elixir(或在 Twitch 上为 Bits),或参与订阅/赠送订阅等活动获得的。观众通过在聊天中进行上述操作积累点数,并决定何时发出特定指令。所有 Mana 到 RP 以及 Elixir 到 SP 的汇率均可通过配置文件进行自定义设置。
动作:
当观众发起某个动作时,该动作所需的点数将从观众的账户中扣除。如果动作的成本未指定具体的点数类型,则优先扣除 RP。如果可用点数不足,动作将不会被触发。
冷却时间:
成功激活后,动作需要经历冷却期才能再次使用。动作的价格会被加入“热量池”,其中 20%(可配置)会被存入“银行”。当热量池满时,动作进入冷却阶段。在此期间,无法执行负面动作(可配置为在冷却期间完全禁止任何动作)。
如果玩家死亡,还将开始另一段冷却时间。因为让玩家刚重生就立即死亡是不公平的。
此外,从游戏中连接 Trovo 后还有一段短暂的冷却时间,这是为了预热观众气氛。
安全区:
一旦主播因最友好的观众而多次死亡,他们都会希望在自己的基地里有一个安全区。因此,有一个命令 /tg safe 可以设置“安全区”——一个以发出命令的方块为中心、半径为 32 格(可配置)的球体。一旦主播发出该命令,设置安全区的冷却时间将开始(默认 300 秒)。在冷却结束前,玩家不得离开该球体,且不能死亡!如果发生上述任一情况,安全区的创建将被取消。此命令仅在没有任何活跃冷却时间时可用。
奖励:
如果有观众成功击杀了主播,“银行”中的点数将转入该观众的 SP 余额中,并将“银行”清零。
如何使用?
当你首次运行带有该模组的游戏时,它会创建两个必要的文件:config/trovogration-client.toml 和 trovogration.json。
进入任意已保存的世界时,你会看到“按 ALT + t”的提示。这正是你需要做的以连接到 Trovo。但等等,让我们先配置动作。打开 config/trovogration-client.toml 文件,可以使用 Notepad++ 等编辑器。
这里有大量带注释的选项供你探索和调整,但最底部的名为“Actions”的部分最为重要。 它包含一系列观众可以执行的可能动作列表。里面有几个示例,你可以保留它们不动,但提供你自己的动作会更有趣。你的限制仅在于想象力(当然还有各种 Minecraft 命令)。那么,动作的格式是什么样的呢? 动作是一个用方括号括起来的逗号分隔的双引号参数列表。从左到右各参数的含义如下:
"command" - 观众必须在 Trovo 聊天中发送的词(以井号 # 开头)以执行该动作
"is action negative?" - 如果动作以任何方式伤害玩家,则为 "true";如果动作对玩家有益,则为 "false"。
"minimum day" - Minecraft 中必须经过多少天,此动作才变为可用。仅计算在游戏内度过的天数。在服务器上游玩时非常有用。
"allowed dimension list" - 动作可用的 Minecraft 维度列表(以分号 ; 分隔)。在列表前添加单个减号 (-) 可将其转换为黑名单。如果维度无关紧要,请留空此参数。
"cost" - 动作消耗的点数
"only accept SP?" - 如果动作要求使用 SP,无论观众拥有多少 RP 都不会被触发,则为 "true"。 "false" - 任何点数都可以用来支付费用。RP 会优先消耗。
"cooldown (in seconds)" - 动作再次可用之前需要经过的时间(秒)。
"command list divided by semicolon" - 单个动作在激活时可以执行多个命令。只需将它们用分号 (;) 分隔即可
顺便提一下,如果列表中的命令以 "/summon" 开头,则会附加一个特殊子句,以指定召唤生物的观众名字。
示例:
假设列表中有一个这样的动作: "skeleton", "true", "1", "-minecraft:the_nether", "300", "false", "300", "/summon minecraft:skeleton"
要执行此动作,观众必须在聊天中发送 "#skeleton"。 此动作绝对是负面的 动作可以从第 1 天开始触发 玩家在下界时无法触发此动作 此动作的费用是 300 点 不一定非要为此花费 SP。RP 也可以。 成功召唤后需经过 300 秒才能再次发出此动作 当动作触发时,"/summon minecraft:skeleton" 命令将被发送到 Minecraft 控制台
另一个示例:
"tools", "false", "10", "minecraft:overworld", "100", "true", "600", "/give @s minecraft:stone_pickaxe;/give @s minecraft:stone_shovel;/give @s minecraft:stone_axe"
要执行此操作,观众需要在聊天框中输入 "#tools"。 此操作为正向操作。它将向玩家提供石镐、石铲和石斧!太棒了! 该操作从第 10 天起可触发 该操作仅能在玩家处于主世界时触发 价格为固定的一百积分 但石制工具套装既昂贵又实用,因此只能使用 SP(生存积分)进行支付 每 10 分钟仅可赠送一套 激活后将向 Minecraft 控制台发送三条指令
内置 Trovo/Twitch 聊天命令:
存在一些始终可用的特殊命令:
#cp [nickname] - 可用于获取用户账户余额信息(并可附加“昵称”以查询特定观众的信息。仅限版主使用)。 #addrp|#addpp <viewer_name> <amount> - 默认情况下仅限超级版主使用的命令,用于向指定观众添加一定数量的 RP(资源点数) #addsp <viewer_name> <amount> - 默认情况下仅限超级版主使用的命令,用于向指定观众添加一定数量的 SP(生存积分)
#addrpx|#addppx <multiplier> <viewer_name> <amount> - 默认情况下仅限超级版主使用的命令,用于向指定观众添加按乘数计算的 RP(资源点数) #addspx <multiplier> <viewer_name> <amount> - 默认情况下仅限超级版主使用的命令,用于向指定观众添加按乘数计算的 SP(生存积分)
#days|#gs - 在聊天框中显示当前主播的生存天数
#trovo|#twitch|#goodgame <nickname> - 将游戏内账户与平台账户关联,以便从任何平台使用余额。
#check - 显示当前已关联的账户
#unlink <twitch|trovo|goodgame> - 将当前账户与指定平台解绑。
游戏内命令:
/tg add_action <command> <isNegative?> <min_day> "<dimensions>" <price> <spOnly?> <cooldown> "<command_list>"
允许在游戏内快速添加操作。有关参数的更多信息,请参阅“如何使用?”。请注意:dimensions 和 command_list 参数必须使用双引号括起来!
/tg overwrite_action <command> <newCommandName> <isNegative?> <min_day> "<dimensions>" <price> <spOnly?> <cooldown> "<command_list>"
允许在游戏内编辑现有操作。有关参数的更多信息,请参阅“如何使用?”。newCommandName 允许重命名该操作。请注意:dimensions 和 command_list 参数必须使用双引号括起来!
/tg get_action <command>
获取指定操作的所有信息,包括当前的冷却时间
/tg remove_action <command> <really?>
移除指定的操作。以防万一,删除确认参数应为 "true"。
/tg safe
开始创建安全区,如果已存在安全区,则取消当前安全区。
/tg instasafe
立即设置安全区。不理会当前的冷却时间。
/tg set_cooldown
设置当前的冷却时间
/tg set_head
设置当前的累积热量
/tg set_reward
设置当前的银行奖励
/tg days
显示当前生存天数
/tg gui
打开命令配置 GUI。
What's Trovogration?
Trovogration is a client-only minecraft mod which offers more interaction between Trovo Streamer (and/or Twitch Streamer since 2.1.2) and viewers in a form of in-game actions triggered by sending certain chat commands. Don't forget to give an "/op" permission to your player if you're playing on a server, or allow "Cheats" in a single-player.
Points:
Every Action costs points. There are two types of points available. RP (Regular Points) are points obtained by spending Trovo Mana on streamer's channel, while SP (Special Points) are points which obtained by spending Elixir in a form of Spells (or Bits in Twitch) or events such as Subscription/Gift subscription. Viewers accumulate points by these actions in chat and decide when to issue a certain command. All possible exchange rates for Mana to RP and Elixir to SP are configurable via config.
Actions:
When viewer issues certain Action, the amount on points will be deducted from viewer's account. If the Action's cost doesn't specify exact points type, RP will be deducted first. If there are not enough points available, Action won't be triggered.
Cooldowns:
After successful activation, Action will need to cool down before become available again. And the price of Action will be added to "Heat pool" and 20% (configurable) will be added to "Bank". When Heat pool will become full, Action cooldown phase will be started. During this period, no negative action can be performed (configurable to allow no actions at all during cooldown phase).
Another cooldown will begin if player dies. Because sometimes it's not fair to kill the player right after respawn.
And there is a short cooldown right after connecting to Trovo from game. This one is made to heat up the audience.
Safe Zone:
Every streamer will be wishing for a safe zone inside his/her base once they will die a couple of times from most kind viewers. So, there's a command /tg safe which sets a "Safe Zone" - a 32-block radius sphere (configurable) centered around a block where the command has been issued. Once the streamer fires the command, a cooldown for setting a Safe Zone will be started (300 seconds by default). Player must not leave a sphere until the cooldown passes and must not die! If either of these events happened, Safe Zone creation will be cancelled. Command available only when there are no active cooldowns.
Reward:
If someone from viewers manages to kill streamer, "Bank" will be given to viewer's SP balance and zeroed.
How to use?
When you'll run the game with the mod for the first time, it will create two necessary files: config/trovogration-client.toml and trovogration.json. Upon entering any saved world, you'll be welcomed with "Press ALT + t" message. That's exactly what you'll need to do to connect to Trovo. But wait. Let's configure Actions first. Go ahead, and open config/trovogration-client.toml file with something like Notepad++.
There are a plenty of options with comments for you to explore and tweak to your likings, but the very bottom section called "Actions" is the most important one. It consist of a list of possible actions for your viewers to perform. There are a couple of examples in there, and it's okay to leave them there, but it's much more interesting to offer your own actions as well. You're limited only by your imagination (and a variety of minecraft commands of course). So, what's the format of an Action? Action is a comma-separated list of double-quotted arguments enclosed in a square brackets. First to last arguments meaning are:
"command" - what word (prepended by hash sign #) viewer has to send in Trovo chat to perform the Action
"is action negative?" - "true" if the Action mean to harm the player in any way, "false" if the Action is doing something kind to player.
"minimum day" - how many days has to pass in Minecraft for this Action to become available. Only days spent in game are counted. Useful when playing on servers.
"allowed dimension list" - list of Minecraft dimensions (separated by semicolon ;) where the Action will be available. Prepend the list with a single minus sign (-) to turn the list into blacklist instead. Leave this argument blank if dimension doesn't matter.
"cost" - how much points the Action costs
"only accept SP?" - "true" if the Action requires SP, and won't be triggered no matter how much RPs the viewer possesses. "false" - any points can be used to pay the price. RPs will be spent first.
"cooldown (in seconds)" - how much time should pass before the Action will be available again.
"command list divided by semicolon" - single Action can perform several commands on activation. Just separate them by semicolon (;)
By the way, if the command in list starts with "/summon" then special clause will be appended to it to specify viewer's name who summons the mob for player.
Example:
Let's say, we have such Action available in list: "skeleton", "true", "1", "-minecraft:the_nether", "300", "false", "300", "/summon minecraft:skeleton"
To perform this action, viewer must send "#skeleton" in chat. This Action is definitely negative Action can be triggered since Day 1 Action cannot be triggered while player is in the Nether Cost for the Action is 300 points And it isn't necessary to spend SP for it. RPs are fine. 300 seconds should pass after successful summon to issue this Action again /summon minecraft:skeleton command will be sent to Minecraft console upon Action triggering
Another example:
"tools", "false", "10", "minecraft:overworld", "100", "true", "600", "/give @s minecraft:stone_pickaxe;/give @s minecraft:stone_shovel;/give @s minecraft:stone_axe"
To perform this action, viewer should type "#tools" in chat. This Action is positive. It will give stone pickaxe, stone shovel and stone axe to player! Yeah! Action can be triggered since Day 10 Action can be triggered while player is in the Overworld only Price is a solid hundred points But stone tool set is expensive and useful, so only SPs can be spent One set can be gifted per 10 minutes only Three commands will be sent to Minecraft console upon activation
Built-in Trovo/Twitch-chat commands:
There are special commands which are always available:
#cp [nickname] - can be used to get the information about user account balance (and be postponed with "nickname" to get the information about specific viewer. Available for moderators only). #addrp|#addpp <viewer_name> <amount> - command available to use only by super-mods (by default) which adds a certain amount of RP to the specified viewer #addsp <viewer_name> <amount> - command available to use only by super-mods (by default) which adds a certain amount of SP to the specified viewer
#addrpx|#addppx <multiplier> <viewer_name> <amount> - command available to use only by super-mods (by default) which adds a certain amount of RP multiplied by multiplier to the specified viewer #addspx <multiplier> <viewer_name> <amount> - command available to use only by super-mods (by default) which adds a certain amount of SP multiplied by multiplier to the specified viewer
#days|#gs - displays current streamer Survival Day in chat
#trovo|#twitch|#goodgame <nickname> - link in-game account with platform accounts, so the balance can be used from any platform.
#check - displays currently linked accounts
#unlink <twitch|trovo|goodgame> - unlink current account from specified platform.
In-Game commands:
/tg add_action <command> <isNegative?> <min_day> "<dimensions>" <price> <spOnly?> <cooldown> "<command_list>"
Allows quick adding action while in-game. Refer to "How to use?" for more information about arguments. Please note: dimensions and command_list argument must be double-quotted!
/tg overwrite_action <command> <newCommandName> <isNegative?> <min_day> "<dimensions>" <price> <spOnly?> <cooldown> "<command_list>"
Allows edition of existing action while in-game. Refer to "How to use?" for more information about arguments. newCommandName allows to rename the action. Please note: dimensions and command_list argument must be double-quotted!
/tg get_action <command>
Gets all the information about specified action, including current cooldown
/tg remove_action <command> <really?>
Removes specified action. Just in case there's another argument for confirmation of deletion - is should be "true".
/tg safe
Starts a Safe Zone creation, or cancels current Safe Zone if there's one exists already.
/tg instasafe
Sets a Safe Zone immediately. Doesn't care about current cooldown.
/tg set_cooldown
Sets current Cooldown
/tg set_head
Sets current Accumulated Heat
/tg set_reward
Sets current Bank Reward
/tg days
Displays current Days Survived
/tg gui
Opens commands config GUI.
下载 Trovogration
下载 Trovogration
下载 Trovogration
下载 Trovogration
下载 Trovogration
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Trovogration
下载 Trovogration
下载 Trovogration
下载 Trovogration
下载 Trovogration
#check 命令已添加, #unlink 命令已添加。 /tg rollback 游戏内回复修复 更改 #add* 命令以查找任何链接的昵称,无论平台如何调用
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
Minecraft 中的表情符号
模组
? 主菜单上的闪屏文本将在可配置的延迟后持续变化。
模组
恢复所有账户的游戏聊天访问权限
模组
使聊天消息以平滑的动画效果显示。
模组
Music Maker 为游戏添加了乐谱、乐器以及其他设备,用于创作和演奏音乐。
模组
一个完整经济模组:玩家余额、动态定价商店、玩家市场、买入订单、货币物品以及网页仪表盘。
评论 0
登录后参与评分
还没有评论,来抢沙发吧