Skip to content

Progress over multiple task IDs #811

@Folas1337

Description

@Folas1337

Description of Feature

I'm creating a quest with tasks that look something like this:

tasks:
  task1:
    type: "smelting"
    amount: 1
    item: REDSTONE
  task2:
    type: "smelting"
    amount: 1
    item: COAL
  task3:
    type: "smelting"
    amount: 1
    item: EMERALD
  task4:
    type: "smelting"
    amount: 1
    item: LAPIS_LAZULI
  task5:
    type: "smelting"
    amount: 1
    item: DIAMOND
  task6:
    type: "smelting"
    amount: 1
    item: QUARTZ
  task7:
    type: "smelting"
    amount: 1
    item: IRON_INGOT
  task8:
    type: "smelting"
    amount: 1
    item: COPPER_INGOT
  task9:
    type: "smelting"
    amount: 1
    item: GOLD_INGOT
  task10:
    type: "smelting"
    amount: 1
    item: NETHERITE_SCRAP

Now I'm facing the problem of how to convey to the player how far they've come across all the tasks. The best solution I found is this:

display:
  name: "&aSmelt all Ores"
  lore-started:
    - "&#dddd63A 1 below means you've completed"
    - "&#dddd63one kind. All need to be 1s to"
    - "&#dddd63finish this challenge:"
    - "  &#dddd63{task1:progress}{task2:progress}{task3:progress}{task4:progress}{task5:progress}{task6:progress}{task7:progress}{task8:progress}{task9:progress}{task10:progress}"

This isn't exactly pretty which is why I was thinking it'd be a nice addition if it was possible to do something like this:

  display:
    lore-started:
      - "Your progress: {alltasks:progress}"

Which would simply say 10% if you've done one of the tasks and 70% when 7 are done.

This obviously gets much more complicated when you have tasks with amounts greater than 1. So perhaps you want to come up with two different progress placeholders. One which adds to the percentage only when the entire task is done and one which adds to the percentage for each individual amount of the task.

Reason for Addition

There's no pretty way to do this currently other than perhaps adding one quest per task and ultimately a quest which requires all the other ones to be finished but that seems janky as well.

Alternative Solutions

See above (there is no solution that really satisfied me)

Agreements

  • I am running the latest version of Quests
  • I am certain this request is unique and a similar issue is not currently open

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions