Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.29 KB | None | 0 0
  1. # QUESTER DIALOGUE FORMAT
  2.  
  3. exampletree:
  4.     message-prefix: '[NPC] '
  5.     user-prefix: '[You] '
  6.     # message sent by npc when dialogue is cancelled
  7.     cancel-message: 'Goodbye.'
  8.     # number of seconds to wait for user response
  9.     timeout: 30
  10.     # number of ticks between messages
  11.     delay: 20
  12.     # range in which dialogue will stay active
  13.     # range is centered on player when dialogue starts
  14.     range: 5
  15.     nodes:
  16.        '0':
  17.            type: BRANCH
  18.            text: 'Yo, I''m npc and I''m testing this dialogue thing.'
  19.            options:
  20.                '1': {}
  21.                '2': {}
  22.        '1':
  23.            type: RESPONSE
  24.            text: 'So, do you want to go to third node?'
  25.            options:
  26.                '3':
  27.                    applicable: ['yes', 'yeah', 'sure', 'of course', 'yup']
  28.                    response: 'Yes I do.'
  29.                '4':
  30.                    applicable: ['no', 'nah', 'nope', 'NEIN', 'naa']
  31.                    response: 'No I don't.'
  32.        '2':
  33.            type: BRANCH
  34.            text: 'This will never appear, because there are no conditions for node 1.'
  35.            options:
  36.        '3':
  37.            type: BRANCH
  38.            text: 'Here you go; third node.'
  39.        '4':
  40.            type: BRANCH
  41.            text: 'No? Well, have fourth one then.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement