QuestCreator - Basics - quest requirements - Historical

Applied By PYRRH4: Feb 12, 2018 at 1:21 AM

QuestCreator - Basics - quest requirements
[​IMG]

Table of contents :

Commands and permissions
Plugin storage
Create a quest
Basics : variables
Basics : preconditions
Basics : quest settings
> Basics : quest requirements
Basics : quest rewards
Basics : quest flow
Basic : quest flow - tasks
Basics : quest flow - objectives


The basics : quest requirements


A requirement is something that the player needs to be able to start the quest.
All requirements for the quest are located under the requirements section.
A requirement is considered as a configuration section with its own settings.

Code (Text):
requirements:
  1:
    # settings
  2:
    # settings
  # etc

Item requirement
Code (Text):
requirements:
  1:
    type: ITEM
    item:
      type: STONE
      amount: 32
    error_message: '&cYou need 32 stones to start this quest.'
You can even add to the item name (text) or data (number).

Money requirement
Code (Text):
requirements:
  2:
    type: MONEY
    money: 500.5

Permission requirement
Code (Text):
requirements:
  3:
    type: PERMISSION
    permission: permission.node


Precondition requirement
Code (Text):
requirements:
  4:
    type: PRECONDITION
    precondition: 'var [variable] [operation] [value]'
    error_message: '&cWhatever'