{
  "format_version": "1.17.20",
  "minecraft:npc_dialogue": {
    "scenes": [
      {
        "scene_tag": "hemasda_intro",
        "npc_name": "Director of §l Q.U.IN.X.",
        "text": "§o\"I have to do this, that, and- oh. Hey. How long have you been standing there? Do you need help?\"\n\nAn ominous man who display a tone of what betrays their appearance, an approachable individual. He speaks with smile yet his face is tainted with a past he could never stay silent of.",
        "on_open_commands": [],
        "on_close_commands": [],
        "buttons": [
          {
            "name": "Registry",
            "commands": [
              "/execute as @initiator at @s run tellraw @s[scores={qnxQuest=0},hasitem={item=item:letter,location=slot.weapon.mainhand}] {\"rawtext\":[{\"text\":\"<Director of QUINX> \"Oh. Let me see. Hm. Alright. Welcome to Quinx, Mister/Miss...<@initiator>\"\"}]}",
              "/replaceitem entity @s[scores={qnxQuest=0},hasitem={item=item:letter,location=slot.weapon.mainhand}] slot.weapon.mainhand 0 item:license 1 0 {\"minecraft:item_lock\":{\"mode\":\"lock_in_inventory\"}}",
              "/scoreboard players set @s[scores={qnxQuest=0},hasitem={item=item:letter,location=slot.weapon.mainhand}] qnxQuest 1"
            ]
          },
          {
            "name": "Grade Up",
            "commands": [
              "/scriptevent qnx_quest:gradeup"
            ]
          }
        ]
      }
    ]
  }
}