FrinshHD / AnturniaQuests

GNU General Public License v3.0
3 stars 0 forks source link

Allow completing npcs in a storyline with ignoring their order #14

Closed FrinshHD closed 5 months ago

FrinshHD commented 5 months ago

Example:

storyline1:
  friendlyName: Nice storyline name
  cooldown: 2
  maxCompletions: 4
  timeToComplete: 43
  npcs:
    - npcID: bob
      friendlyName: Bob
      actions:
        - message: "hi1"
          clickSound:
            sound: ENTITY_EXPERIENCE_ORB_PICKUP
            volume: 50
            pitch: 1
        - message: "hi2"
        - command: "give %player% emerald 1"
          delay: 20 #in ticks (one second is equal to 20 ticks)
    - npcID: bob1
      actions:
        - message: "hi3"
        - message: "hi4"
      group: bob-npc
    - npcID: bob2
      actions:
        - message: "hi5"
        - message: "hi6"
      group: bob-npc
    - npcID: bob3
      actions:
       - message: "hi7"
       - message: "hi8"
      group: bob-npc
    - npcID: jeff
      actions:
        - message: "h5"
          command: "give %player% diamond 2"
        - message: "thx"
    - npcID: bob
      actions:
        - message: "end"