QuestCreator - Basics : tasks

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


    The task settings are located in the element configuration section, after all the upper settings.

    Code (Text):
    flow:
      1:
        task:
          # settings

    Task types and settings are listed below.

    Code (Text):
    # change a block somewhere
    task:
      type: BLOCK_PLACE
      block_type: STONE
      block_data: 0
      location: world,0,0,0

    # change the player's tab
    task:
      type:
      tab:
        header: '&aTab header'
        footer: '&aTab footer'

    # send a choice to the player
    task:
      type: CHOICE
      message: '&aChoose something'
      choices:
        # for every choice you can specify first the appearance of the choice then the consequences it has (variables operationns)
        1:
          - '&bChoice 1'
          - 'var [variable] [operation] [value]'
        2:
          - '&bChoice 2'
          - 'var [variable] [operation] [value]'

    # execute the command as the player
    task:
      type: COMMAND_AS
      command: 'me Hello'

    # execute a command for the player
    task:
      type: COMMAND_FOR
      command: 'give $PLAYER stone 64'

    # delete entities around somewhere
    task:
      type: ENTITY_DELETE
      location: world,0,0,0
      radius: 5.5
      # optional : entity type
      entity_type: PIG

    # spawn an entity somewhere
    task:
      type: ENTITY_SPAWN
      location: world,0,0,0
      entity_type: PIG
      # optional : entity name
      entity_name: '&aCustom piggy'

    # teleport a named entity somewhere
    task:
      type: ENTITY_TELEPORT
      entity_name: '&aCustom piggy'
      location: world,0,0,0

    # create an explosion somewhere
    task:
      type: EXPLOSION_CREATE
      location: world,0,0,0
      power: 0.3

    # change XP in a Heroes class
    task:
      type: HEROES_XP
      class: class_name
      amount: 10.0
      operation: ADD, SET or TAKE

    # drop an item somewhere
    task:
      type: ITEM_DROP
      location: world,0,0,0
      item:
        type: STONE
        name: '&6Awesome stone, yes ?'

    # give an item to the player
    task:
      type: ITEM_GIVE
      item:
        type: STONE
        name: '&dAnother awesome stone o/'

    # remove an item from the player
    task:
      type: ITEM_REMOVE
      item:
        type: STONE
        amount: 32

    # change XP in a MCMMO skill
    type: MCMMO_XP
    task:
      skill: skill_name
      operation: ADD_RAW, ADD_MULTIPLIED, ADD_MODIFIED, SET or TAKE
      amount: 1.0

    # change levels in a MCMMO skill
    task:
      type: MCMMO_LEVEL
      skill: skill_name
      operation: ADD, SET or TAKE
      amount: 1

    # spawn a MythicMobs spawn
    task:
      type: MYTHICMOBS_SPAWN
      mob_name: your_mythicmob_name
      amount: 5
      location: world,0,0,0

    # make a NPC disappear
    task:
      type: NPC_HIDE
      id: 0

    # reveal a NPC
    task:
      type: NPC_SHOW
      id: 0

    # move a NPC
    task:
      type: NPC_MOVE
      id: 0
      location: world,0,0,0

    # move a NPC and wait for him to be at the location to start the next element
    task:
      type: NPC_MOVE_WAIT
      id: 0
      location: world,0,0,0

    # teleport a NPC
    task:
      type: NPC_TELEPORT
      id: 0
      location: world,0,0,0

    # spawn a particle somewhere
    task:
      type: PARTICLE_SPAWN
      particle_type: REDSTONE
      amount: 10
      speed: 1.5
      location: world,0,0,0

    # clear the player
    task:
      type: PLAYER_CLEAR

    # damage the player
    task:
      type: PLAYER_DAMAGE
      damage: 1.5

    # teleport the player
    task:
      type: PLAYER_TELEPORT
      location: world,0,0,0

    # cancel the quest (fails it)
    task:
      type: QUEST_CANCEL

    # send an actionbar to the player
    task:
      type: SEND_ACTIONBAR
      bar: '&dThis is an actionbar, yes ?'

    # send a message to the player
    task:
      type: SEND_MESSAGE
      # message (can also be a list)
      message: '&aMessage'

    # send a message and a sound to the player in the same task
    task:
      type: SEND_MESSAGE:CHEST_OPEN
      # message (can also be a list)
      message: '&aMessage'

    # send a title to the player
    task:
      type: SEND_TITLE
      title:
        title: '&aTitle o/'
        subtitle: '&dSubtitle \o'

    # play a sound to the player
    task:
      type: SOUND_PLAY
      sound: AMBIENCE_CAVE

    # change level in a SkillAPI class
    task:
      type: SKILLAPI_LEVEL
      class: class_name
      amount: 1
      operation: ADD, SET or TAKE

    # change points in a SkillAPI class
    task:
      type: SKILLAPI_POINTS
      class: class_name
      amount: 1
      operation: ADD, SET or TAKE

    # change XP in a SkillAPI class
    task:
      type: SKILLAPI_XP
      class: class_name
      amount: 1
      operation: ADD, SET or TAKE

    # profess a SkillAPI class
    task:
      type: SKILLAPI_PROFESS
      class: class_name

    # assign a variable to a value
    task:
      type: VARIABLE_CHANGE
      # action : same things as the preconditions but the operations are SET or INCREMENT
      action: 'var [variable] [operation] [value]'
     
  • Loading...
  • Loading...