本篇教程由作者设定未经允许禁止转载。

该教程针对1.12.2版本的hqm

(hqm都更到1.18了没人发现吗)

如果你有字看不清的情况,平滑字体请


不能自动导路的目录

  1.  所有命令

  2. 配置文件和翻译

  3. 一个hqm的高阶应用



在1.12.2,hqm不再需要从配置文件中手动开编辑模式,你只需要在游戏中输入 /hqm edit 即可开启编辑模式(前提是你需要有作弊权限,如果你不希望玩家通过开启局域网来作弊的话可以试试这个教程

同时,伴随着版本更新的,还有hqm的指令,详见下表

/hqm edit开启任务编辑模式,重复输入开/关(不再是给任务书)
/hqm enable开启极限(和)任务模式(不再能关闭)
/hqm hardcore [enable(开启)/disable(关闭)]开启极限模式(可以关闭)
/hqm help列出hqm所有的指令(也就是这张表甚至还没有这么详细
/hqm lives在聊天栏返回你还剩多少条命
/hqm load按以前的版本(指1.7.10)应该是起一个导入任务的作用(平常很少用到)
/hqm op给一本管理员版的任务手册(可以一键完成任务和清除任务进度的附魔任务书)
/hqm quest开启任务模式(不能再关闭)
/hqm save按老版本(指1.7.10)应该是起一个导出任务的作用(平常很少用到)
/hqm version在聊天栏返回hqm的版本



下面是hqm的配置文件(在.minecraft\config\hardcorequesting.cfg)没什么用 因为基本上不会动它 括号里的为编者加的


# Configuration file


general {

    # Allow every single player in a party to claim the reward for a quest. Setting this to false will give the party one set of rewards to share.

   #允许团队中的每一位玩家领取任务奖励(即单独领取)。将此设置为false将为该团队提供一组可共享的奖励。

    B:"All in party get rewards"=true


    # Enable this to cause the player to be granted a gift on spawning into the world

    #启用此选项可使玩家在出生时获得礼物(即任务书)

    B:"Enable spawn with book"=false


    # Loose the quest book when you die, if set to false it will stay in your inventory

    #当你死后掉落任务书,如果设置为false,它将留在你的背包中

    B:"Lose quest book upon death"=true


    # Use this to specify NBT tags that should be ignored when comparing items with NBT subset

    #使用此选项可指定 在将项目与NBT子集进行比较时 应忽略的NBT标记(也就是说选了匹配nbt数据也会忽略以下的内容,默认看上去是耐久)

    S:"NBT Subset Tags to Filter" <

        RepairCost

     >


    ##########################################################################################################

    # hardcore settings

    #--------------------------------------------------------------------------------------------------------#

    # Settings related to hardcore mode

    #和困难模式相关的设置

    ##########################################################################################################


    "hardcore settings" {

        # How many lives players should start with.

        #玩家一开始应该有多少条命

        # Min: 1

        # Max: 256

        I:"Default lives"=3


        # Set to true to enable the heart rot timer

        #设置为true以启用红心腐烂计时器(即允许红心腐烂)

        B:"Enable rot timer"=false


        # Define in seconds how long the rot timer is.

        #以秒为单位决定腐烂计时器的长度,最小为1,最大为2147483647(设置多久后红心腐烂)

        # Min: 1

        # Max: 2147483647

        I:"Heart Rot Timer in Seconds"=120


        # Use this to set the maximum lives obtainable

        #用这个来设置可获得的最大生命(食用红心能增加的生命上限),最小为0,最大为256

        # Min: 0

        # Max: 256

        I:"Maximum lives obtainable"=20

    }


    ##########################################################################################################

    # server start settings

    #服务器设定

    #--------------------------------------------------------------------------------------------------------#

    # Settings related to server start & modes

    #与服务器启动和模式相关的设置 

##########################################################################################################


    "server start settings" {

        # If set to true, new worlds will automatically activate Hardcore mode

        #如果设置为true,创建新世界时将自动激活困难模式

        B:"Auto-start hardcore mode"=false


        # If set to true, new worlds will automatically activate Questing mode

        #如果设置为true,创建新世界时将自动激活任务模式

        B:"Auto-start questing mode"=true


        # Set to true to enable the sending of quests from the server to all clients that connect to it

        #设置为true可将任务从服务器发送到连接到服务器的所有客户端

        B:"Enable server sync"=false

    }


    ##########################################################################################################

    # loot settings

    #奖励袋设置

    #--------------------------------------------------------------------------------------------------------#

    # Settings related to loot bags and loot tiers

    #与奖励袋和奖励袋等级相关的设置

    ##########################################################################################################


    "loot settings" {

        # Always display the tier name, instead of the individual bag's name, when opening a reward bag.

        #打开奖励袋时,始终显示层名称,而不是单个奖励袋的名称。

        B:"Always use tier name for reward titles"=false


        # Set to true to display an interface with the contents of the reward bag when you open it.

        #设置为true可在打开奖励袋时显示包含奖励袋内容的界面。

        B:"Display reward interface"=true

    }


    ##########################################################################################################

    # interface settings

    #界面设置

    #--------------------------------------------------------------------------------------------------------#

    # Settings related to the interface

    #与界面相关的设置(下面的很难用到了)

    ##########################################################################################################


    "interface settings" {


        ##########################################################################################################

        # quest set colours

        #任务颜色设定

        #--------------------------------------------------------------------------------------------------------#

        # Colour settings for quest set rendering

        #用于任务集渲染的颜色设置

        ##########################################################################################################


        "quest set colours" {

            # Use the HTML format, e.g.: #ffffff

            #使用HTML格式,例如:#ffffff

            S:"Set is complete, unselected"=#10a010


            # Use the HTML format, e.g.: #ffffff

#使用HTML格式,例如:#ffffff

            S:"Set is completed, selected"=#40bb40



            # Use the HTML format, e.g.: #ffffff

            #使用HTML格式,例如:#ffffff

            S:"Set is currently disabled"=#dddddd


            # Use the HTML format, e.g.: #ffffff

            #使用HTML格式,例如:#ffffff

            S:"Set is incomplete, selected"=#aaaaaa


            # Use the HTML format, e.g.: #ffffff

            #使用HTML格式,例如:#ffffff

            S:"Set is incomplete, unselected"=#666666

        }


        ##########################################################################################################

        # quest colours

            #任务颜色

        #--------------------------------------------------------------------------------------------------------#

        # Colour settings for quests

            #任务的颜色设置

        ##########################################################################################################


        "quest colours" {

            # Use the HTML format with alpha, e.g: #55FFFFFF

            #将HTML格式与alpha一起使用,例如:#55FFFFFF

            S:"Quest is available"=#554286f4


            # Use the HTML format with alpha, e.g.: #55FFFFFF

            #将HTML格式与alpha一起使用,例如:#55FFFFFF

            S:"Quest is completed and not repeatable"=#FFFFFFFF


            # Use the HTML format with alpha, e.g.: #55FFFFFF

            #将HTML格式与alpha一起使用,例如:#55FFFFFF

            S:"Quest is completed but repeatable"=#FFFFFFCC


            # Use the HTML format with alpha, e.g.: #55FFFFFF

            #将HTML格式与alpha一起使用,例如:#55FFFFFF

            S:"Quest is not accessible"=#FF888888


            # Set to true to disable the default colour pulse and use the colour specified above

            #设置为true可禁用默认颜色脉冲(?)并使用上面指定的颜色

            B:"Use single colour for available quest"=false

        }


    }


    ##########################################################################################################

    # message settings

    #消息设置

    #--------------------------------------------------------------------------------------------------------#

    # Settings related to messages sent from the server

    #与从服务器发送的信息 相关的设置

    ##########################################################################################################


    "message settings" {

        # Set to false to prevent the 'use /hqm op instead' message when operators use '/hqm edit' instead.

        #设置为false可防止管理员使用“/hqm edit”时出现“use/hqm op instead”信息。

        B:"Enable OP command reminder"=true


        # Set to true to enable sending a status message if Hardcore Questing mode is off

        #如果困难任务模式关闭,则设置为true以启用发送状态信息

        B:"Enable hardcore mode status message"=false

    }


    ##########################################################################################################

    # editing settings

    #编辑设置

    #--------------------------------------------------------------------------------------------------------#

    # Settings related to edit mode

    #与编辑模式相关的设置

    ##########################################################################################################


    "editing settings" {

        # Set to true to automatically enable edit mode when entering worlds in single-player. Has no effect in multiplayer.

        #设置为true可在单人游戏中进入世界时自动启用编辑模式。在多人游戏中没有效果。

        B:"Enable edit mode by default"=false


        # Hotkeys used in the book, one entry per line(Format: [key]:[mode]

        #书中使用的热键,一行一条(格式:[key]:[mode]    (不知道这是什么请不要乱动)

        S:Hotkeys <

            D:delete

            N:create

            M:move

            INSERT:create

            R:rename

            DELETE:delete

            SPACE:normal

            S:swap

            S:swap_select

         >


        # Set to true to save work-in-progress quests in the default folder of the configuration

        #设置为true可将正在进行的任务保存在配置的默认文件夹中(默认文件夹在config\hqm\default.任务名字很好辨别的)

        B:"Save quests in default folder"=true

    }


}


一个hqm的高阶应用

来自https://www.mcbbs.net/thread-1313473-1-1.html,我的自问自答

重编辑了一下,原贴好像有点地方是不清楚的


目标:

有两个任务a1和a2,完成其中一个便可进行任务c,但是需要完成后将另一任务隐藏
(即完成任务a1解锁任务c隐藏任务a2,或者完成任务a2解锁c隐藏a1)

隐藏后任务应不能完成


解决办法:

假设任务a1,a2,b1,b2和c
首先a1,a2是我所需要的前置任务,这两个任务用分支任务连接
后在b1,b2里新建任务“任务完成”,分别选中其前置(a1选b1,a2选b2),用触发任务将两个b任务的触发器属性改为触发任务,这样不需要任何其他新建任务和奖励,甚至可以不要名字,因为会隐藏所以可以放在任何地方比如说全屏后的任务书上面

最后将两个b都与c相连使两个b都成为c的前置任务,使用前置任务数量,将c的前置任务数量改为1即可

为什么要设置两个b?
因为直接与a相连的话会导致继承隐藏属性,完成哪一个任务都不会使后置任务出现


完成状态:(ABC来自开放式方块mod)

如何使用hqm-第1张图片将a1的任务设置为获得一个草方块,a2设置为一个石头,当手上有草方块时:(可能需要手动检测)

如何使用hqm-第2张图片

关闭编辑模式的状态:如何使用hqm-第3张图片

另一边也是同理

依靠这种方法可以实现   当玩家损坏/丢失前置任务物品(用来开启后续任务)时  的补救措施然后就可以整点恶心人的惩罚任务比如说全附魔剑:)