Skip to content

Instantly share code, notes, and snippets.

@matt11matthew
Created April 8, 2017 21:06
Show Gist options
  • Save matt11matthew/f4db5938334c210e118fa12c883f94c1 to your computer and use it in GitHub Desktop.
Save matt11matthew/f4db5938334c210e118fa12c883f94c1 to your computer and use it in GitHub Desktop.
name: Tutorial Quest
defaultStage: 'start'
stageList:
- 'start'
- 'not_level'
- 'started'
- 'turn_in'
- 'reward'
stages:
reward:
npc: 'Tutorial Quest'
questBookEntry:
- 'Go back to tutorial npc to collect reward.'
dialog:
restartDialogConditions:
- 'quit'
- 'time'
- 'distance'
attributes:
- 'start_to_finish'
messages:
- 'You''ve completed the tutorial.'
- 'Take this reward'
onComplete:
- 'ADD_ITEM(EMERALD, 10, %player%)'
- 'TELEPORT_PLAYER(%player%, [world,0,2,3])'
- 'SET_STAGE(completed)'
turn_in:
npc: 'Tutorial Quest'
dialog:
restartDialogConditions:
- 'quit'
- 'time'
- 'distance'
attributes:
- 'start_to_finish'
messages:
- 'You''ve completed the tutorial.'
- 'Take this reward'
completeConditions:
- 'move_10'
onComplete:
- 'SET_STAGE(reward)'
start:
npc: 'Tutorial Quest'
dialog:
restartDialogConditions:
- 'quit'
- 'time'
- 'distance'
attributes:
- 'start_to_finish'
messages:
- 'Hello, welcome to your first quest.'
- 'Complete the tutorial.'
onComplete:
- 'SET_STAGE(turn_in)'
completed:
npc: 'Tutorial Quest'
dialog:
restartDialogConditions:
- 'quit'
- 'time'
- 'distance'
attributes:
- 'random'
messages:
- 'Thanks for your help!'
- 'Thank you for helping!'
onComplete: []
not_level:
npc: 'Tutorial Quest'
dialog:
restartDialogConditions:
- 'quit'
- 'time'
- 'distance'
atributes:
- 'start_to_finish'
messages:
- 'Come back to me when you reach level 10'
- 'Try killing monsters...'
- 'Leave me alone!'
onComplete: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment