Skip to content

Instantly share code, notes, and snippets.

@orlandov
Created November 20, 2009 19:44
Show Gist options
  • Select an option

  • Save orlandov/239715 to your computer and use it in GitHub Desktop.

Select an option

Save orlandov/239715 to your computer and use it in GitHub Desktop.
---
NPC: Bart The Drunkard
AVATAR: gui/icons/npc.png
START: main_dialog
SECTIONS:
main_dialog:
- say: "Hey there, back up... no need to gang up on a poor guy!"
- responses:
-
- "Gang up? There's only one of me!"
- first_impression
- not pc.met('bart')
-
- "Glad to see you're feeling better."
- gratitude
- pc.met('bart') and not quest.hasFinishedQuest('beer')
-
- "Same old Bart, I see."
- old_pals
- pc.met('bart')
-
- "Ha, you better sleep it off, buddy."
- end
first_impression:
- say: "Oh... yeah... sorry. My vision goes a little funny sometimes. Name's Bart."
- meet: bart
- responses:
-
- "Are you drunk?"
- elaborate_beer
- not quest.hasQuest('beer') and not quest.hasFinishedQuest('beer')
# above should always be true since there is no other way to get the quest
-
- "Wow, you're really hammered. I'll come back when you're sober."
- end
elaborate_beer:
- say: "Well, not for much longer, unfortunately. My stash is just about run dry. That bastard, Jacob has a still, but who can afford his prices! He basically has a monopoly. No one else around here knows how to brew us up some more booze!"
- responses:
-
- "Wow, what a jerk. Well, I'll be glad to lend a hand to such a noble task. Assuming you guys will supply the raw materials."
- quest_beer
-
- "Hey, the man is entitled to run his business. I'm not going to mess up his meal ticket."
- old_pals
-
- "Alcohol is work of the Devil!!"
- end
quest_beer:
- say: "You sir, are a gentleman and a scholar. I am sure folks around here will help you find what you need."
- start_quest: quests/beer.yaml
- responses:
-
- "You aren't even going to offer me a reward?"
- reward_query
-
- "Well, I'll get right on it. Finally, a worthwhile test of my scrounging skills."
- old_pals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment