Options in Dialogue Example
Last updated
Last updated
This configuration provides a full example of how to implement Options in Dialogue. This allow to create more customizables options and insert them directly within the dialogue.
name: '&b&lHegror'
starts_with:
- NPC with id 10
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}&8&m000 &8&m000'
- '{centered}#fffa9c&lHegror'
- '{centered}#dbdbdbWelcome my friend! Welcome to the island!'
- ' '
- ' %next%'
- '{centered}&8&m000 &8&m000'
time: 6
show_name: false
dialogue2:
text:
- '{centered}&8&m000 &8&m000'
- '{centered}#fffa9c&lHegror'
- '{centered}#dbdbdbIf I am not wrong, you are &b%player% #dbdbdbright?'
- ' '
- ' %option_1%'
- ' %option_2%'
- '{centered}&8&m000 &8&m000'
time: 0
show_name: false
options:
option1:
text: '&7Yes'
start_conversation: conversation2
option2:
text: '&7No'
start_conversation: conversation3
options_in_dialogue: true
conversation2:
dialogue:
dialogue1:
text:
- '{centered}&8&m000 &8&m000'
- '{centered}#fffa9c&lHegror'
- '{centered}#dbdbdbPerfect! Nice to meet you.'
- ' '
- ' %next%'
- '{centered}&8&m000 &8&m000'
time: 6
show_name: false
start_conversation: conversation4
options_in_dialogue: true
conversation3:
dialogue:
dialogue1:
text:
- '{centered}&8&m000 &8&m000'
- '{centered}#fffa9c&lHegror'
- '{centered}#dbdbdbThen I must be confusing you with someone else.'
- '{centered}#dbdbdbPardon for my ignorance!'
- ' '
- ' %next%'
- '{centered}&8&m000 &8&m000'
time: 6
show_name: false
start_conversation: conversation4
conversation4:
dialogue:
dialogue1:
text:
- '{centered}&8&m000 &8&m000'
- '{centered}#fffa9c&lHegror'
- '{centered}#dbdbdbMy wife is the leader around here, so'
- '{centered}#dbdbdbI suggest you to talk to her inmediately.'
- ' '
- ' %next%'
- '{centered}&8&m000 &8&m000'
time: 6
show_name: false
dialogue2:
text:
- '{centered}&8&m000 &8&m000'
- '{centered}#fffa9c&lHegror'
- '{centered}#dbdbdbShe will inform you about what''s going on.'
- ' '
- ' %option_1%'
- ' %option_2%'
- '{centered}&8&m000 &8&m000'
time: 0
show_name: false
options:
option1:
text: '&7Where can I find her?'
start_conversation: conversation5
option2:
text: '&7Thanks'
start_conversation: conversation6
options_in_dialogue: true
conversation5:
dialogue:
dialogue1:
text:
- '{centered}&8&m000 &8&m000'
- '{centered}#fffa9c&lHegror'
- '{centered}#dbdbdbJust follow this main path, there is a building'
- '{centered}#dbdbdbat the end.'
- ' '
- ' %next%'
- '{centered}&8&m000 &8&m000'
time: 6
show_name: false
start_conversation: conversation6
conversation6:
dialogue:
dialogue1:
text:
- '{centered}&8&m000 &8&m000'
- '{centered}#fffa9c&lHegror'
- '{centered}#dbdbdbBye! Have a nice day.'
- ' '
- ' %next%'
- '{centered}&8&m000 &8&m000'
time: 6
show_name: false