QuestCreator - Basics : quest rewards

Feb 12, 2018
QuestCreator - Basics : quest rewards
  • [​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
    Basics : quest flow - tasks
    Basics : quest flow - objectives
    Developpers API

    The basics : quest rewards


    A reward is something that will be given to the player when he finished the quest (won't be given if he fails it).
    All rewards for the quest are located under the rewards section.
    A reward is considered as a configuration section with its own settings.

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

    Reward command
    Code (Text):
    rewards:
      1:
        type: COMMAND
        command: 'say $PLAYER succeed !'

    Reward item
    Code (Text):
    rewards:
      2:
        type: ITEM
        item:
          type: STONE
          amount: 64
    You can even add to the item name (text), data (number), lore (list) or enchants (list of enchants/levels, example DAMAGE_ALL,1).

    Reward money
    Code (Text):
    rewards:
      3:
        type: MONEY
        money: 100.5

    Reward variable
    This is similar to the preconditions but only uses QuestCreator's variables (for the player).

    Code (Text):
    rewards:
      4:
        type: VARIABLE
        action: 'var [variable] [operation] [value]'
    [variable] is the variable name
    [value] is the value
    [operation] is the operation that'll be applied to the variable

    Available operations : SET, INCREMENT
    INCREMENT will only work if the value is a number and if the current variable value is also a number

    Reward XP
    Code (Text):
    rewards:
      5:
        type: XP
        xp: 100
    It'll give minecraft experience.

    Task
    Code (Text):
    rewards:
      6:
        type: TASK
        task:
          type: SEND_MESSAGE
          message: '&aThis is a task, ran as a reward !'
  • Loading...
  • Loading...