Quests Example
Config
name: '{centered}&c&lBob'
starts_with:
- NPC named Bob
block_movement: true
slow_effect: false
save_conversation_progress: false
start_conversation_radius: 0
end_conversation_radius: 5
requires_permission: false
conversation:
conversation1:
dialogue:
dialogue1:
text:
- '{centered}&c&lBob &f:'
- '{centered}&7Hello, can you help me with something?'
time: 2
show_name: false
conditional_dialogue:
conditional_dialogue1:
requires:
- '%quests_player_has_completed_quest_bob_the_king% == true'
start_conversation: conversation6
conditional_dialogue2:
requires:
- '%quests_player_has_current_quest_bob_the_king% == Yes'
start_conversation: conversation4
options:
option1:
text: '&eSure.'
start_conversation: conversation2
option2:
text: '&eNot now.'
start_conversation: conversation3
random_dialogue: false
conversation2:
dialogue:
dialogue1:
text:
- '{centered}&c&lBob &f:'
- '{centered}&7Could you bring me an iron ingot please?'
- ' '
- ' '
time: 2
show_name: false
dialogue2:
text:
- '{centered}&eQUEST STARTED!'
- '{centered}&f&nBob the King'
- '{centered}'
- '{centered}&6Objective:'
- '{centered}&7Bring x1 Iron Ingot to Bob on Kryngel city.'
time: 2
actions:
- 'title: 20;40;20;&6QUEST STARTED!;&fBob the King'
- 'console_command: questadmin give %player% bob_the_king'
show_name: false
save_dialogue_to_player: true
random_dialogue: false
conversation3:
dialogue:
dialogue1:
text:
- '{centered}&c&lBob &f:'
- '{centered}&7Ok no problem.'
time: 2
show_name: false
random_dialogue: false
conversation4:
dialogue:
dialogue1:
text:
- '{centered}&c&lBob &f:'
- '{centered}&7I don''t see an iron ingot with you.'
- '{centered}&7Please hurry!'
time: 2
show_name: false
conditional_dialogue:
conditional_dialogue1:
requires:
- '%checkitem_mat:IRON_INGOT,amt:1% == yes'
start_conversation: conversation5
random_dialogue: false
conversation5:
dialogue:
dialogue1:
text:
- '{centered}&c&lBob &f:'
- '{centered}&7You have the iron ingot? Perfect, thanks!'
time: 2
actions:
- 'remove_item: IRON_INGOT;1'
- 'console_command: questadmin finish %player% bob_the_king'
show_name: false
actions_after_dialogue: true
random_dialogue: false
conversation6:
dialogue:
dialogue1:
text:
- '{centered}&c&lBob &f:'
- '{centered}&7Thank you again for the iron ingot. Have'
- '{centered}&7a nice day.'
time: 2
show_name: false
random_dialogue: false
Explanation
Interactions Quests Module
Last updated