QuestCreator - Basics : quest flow - Historical
Applied By GuillaumeVDN: Feb 12, 2018 at 1:23 AM
(History)
QuestCreator - Basics : quest flow
![[IMG]](http://proxy.spigotmc.org/49e4b4f9370ec777b30e573c3bb5344a1e4ee399?url=http%3A%2F%2Fimage.noelshack.com%2Ffichiers%2F2017%2F13%2F1491070130-banner.png)
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 flow
It's the most important part of the configuration : what will happen in this quest ?
Every element that happen in the quest is located under the flow section.
An element is considered as a configuration section with its own settings.
Code (Text):
flow:
1:
# settings
2:
# settings
# etc
1:
# settings
2:
# settings
# etc
There are two element types :
- task, elements that will execute actions (send a message, place a block, teleport an NPC, drop an item, etc). The player has no influence on those.
- objective, elements that the player will have to do (walk on X blocs, kill a mob, break a block, enchant an item, throw a potion, sneak, enter a vehicle, etc)
Quest flow : settings
Every element can have "universal" settings regardless of his type.
wait
Code (Text):
flow:
1:
wait: 1
1:
wait: 1
preconditions
Code (Text):
flow:
1:
preconditions: 'var [variable] [operation] [value]'
1:
preconditions: 'var [variable] [operation] [value]'
For details about [variable], [operation] and [value], see Requirement precondition upper.
This is optional.
name
Code (Text):
flow:
1:
name: '&aDisplay name of this thing'
1:
name: '&aDisplay name of this thing'
forbidden
Code (Text):
flow:
1:
forbidden:
- PICKUP_ITEM
- DROP_ITEM
1:
forbidden:
- PICKUP_ITEM
- DROP_ITEM
Complete list of forbidden actions types :
Code (Text):
MOVE
ITEM_PICKUP
ITEM_DROP
ITEM_ENCHANT
ITEM_CONSUME
BLOCK_PLACE
BLOCK_BREAK
ENTITY_TAME
ENTITY_MOUNT
ENTITY_SHEAR
COMMAND
CHAT
INTERACT
BED_ENTER
FISH
VEHICLE_ENTER
VEHICLE_EXIT
drop_item
Code (Text):
flow:
1:
drop_item:
item:
type: STONE
amount: 16
location: world,0,0,0
1:
drop_item:
item:
type: STONE
amount: 16
location: world,0,0,0
You can even add to the item name (text), data (number), lore (list) or enchants (list of enchants/levels, example DAMAGE_ALL,1).
This is optional.
custom_actionbar
Code (Text):
flow:
1:
custom_actionbar: '&a$QUEST | &a$OBJECTIVE'
1:
custom_actionbar: '&a$QUEST | &a$OBJECTIVE'
This is optional.
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM