QuestCreator - Basics : preconditions - Historical

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

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
Basic : quest flow - tasks
Basics : quest flow - objectives


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.

Completed quest precondition
quest_completed [quest id] [amount of completions needed]


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

mcmmo_level [skill_name] [operation] [value]
(operations EQUALS, DIFFERENT, ATLEAST or INFERIOR)

SkillAPI preconditions
skillapi_class [class_name]

skillapi_group [group_name]

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

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

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

Heroes preconditions
heroes_class [class_name] [type]
(types PRIMARY or SECONDARY)

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

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