QuestCreator - Basics : preconditions

Mar 9, 2018
QuestCreator - Basics : preconditions
  • [​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 : preconditions


    A precondition is a condition needed to start a quest element (task or objective, see about that further), or needed to start the quest itself.

    You can use them in the configuration (quest elements, requirements, whatever) or you can type them in the chat while using the in-game GUI editor.

    Variable precondition
    var [variable] [operation] [value]

    It uses variables, either one from the plugin that you can assign differently for every player or a variable value from PlaceholderAPI.

    [variable] is the variable name, including the {} or %% if you use PlaceholderAPI
    [value] is the value needed
    [operation] is the operation that'll be checked

    Available operations : EQUALS, DIFFERENT, ATLEAST, INFERIOR, PAPI_EQUALS, PAPI_DIFFERENT, PAPI_ATLEAST, PAPI_INFERIOR

    ATLEAST and INFERIOR will only work if the value is a number
    If the operation contains PAPI_ it'll use PlaceholderAPI values.

    Code (Text):
    precondition: 'var example equals 15'
    Completed quest precondition
    quest_completed [quest id] [amount of completions needed]

    Code (Text):
    precondition: 'quest_completed myquest 1'


    MCMMO preconditions
    mcmmo_xp [skill_name] [operation] [value]
    (operations EQUALS, DIFFERENT, ATLEAST or INFERIOR)

    Code (Text):
    precondition: 'mcmmo_xp mining equals 250'
    mcmmo_level [skill_name] [operation] [value]
    (operations EQUALS, DIFFERENT, ATLEAST or INFERIOR)

    Code (Text):
    precondition: 'mcmmo_level mining atleast 10'
    SkillAPI preconditions
    skillapi_class [class_name]

    Code (Text):
    precondition: 'skill_class warrior'

    skillapi_group [group_name]

    Code (Text):
    precondition: 'skill_class warriors'


    skillapi_level [class_name] [operation] [value]
    (operations EQUALS, DIFFERENT, ATLEAST or INFERIOR)

    Code (Text):
    precondition: 'skillapi_level mining atleast 10'
    skillapi_points [class_name] [operation] [value]
    (operations EQUALS, DIFFERENT, ATLEAST or INFERIOR)

    Code (Text):
    precondition: 'skillapi_points mining atleast 55'
    skillapi_totalxp [class_name] [operation] [value]
    (operations EQUALS, DIFFERENT, ATLEAST or INFERIOR)

    Code (Text):
    precondition: 'skillapi_totalxp mining atleast 3000'
    Heroes preconditions
    heroes_class [class_name] [type]
    (types PRIMARY or SECONDARY)

    Code (Text):
    precondition: 'heroes_class warrior PRIMARY'


    heroes_skill [class_name] [type]
    (types PRIMARY or SECONDARY)

    Code (Text):
    precondition: 'heroes_skill warrior SECONDARY'


    Item precondition
    item [operation] [type] [data] [amount]
    (operations HAS or HASNOT)

    Code (Text):
    precondition: 'item has stone 0 64'
    item [operation] [name]
    (operations HAS or HASNOT)

    Code (Text):
    precondition: 'item has &aMySword'
  • Loading...
  • Loading...