Changeset 353 for trunk/game


Ignore:
Timestamp:
10/28/09 17:49:59 (10 years ago)
Author:
orlandov
Message:

Ticket by or1andov: Update and clean up the dialogue files

  • Add support for new dialogue directives (meet, take_stuff, get_stuff etc)
  • Commit dialogue schema which I had forgotten to check in before
  • Dialogue files can be verified by running:

kwalify -lf dialogue_schema.yaml dialogue/*.yaml

Location:
trunk/game
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/dialogue/drunkard.yaml

    r350 r353  
    6666         - start_quest: quests/beer.yaml 
    6767         - responses: 
    68            -  
    69              - "You aren't even going to offer me a reward?" 
    70              - reward_query 
    71            -  
    72              - "Well, I'll get right on it.  Finally, a worthwhile test of my scrounging skills." 
    73              - old_pals 
     68             - 
     69               - "You aren't even going to offer me a reward?" 
     70               - reward_query 
     71             - 
     72               - "Well, I'll get right on it.  Finally, a worthwhile test of my scrounging skills." 
     73               - old_pals 
    7474              
    7575    old_pals: 
    7676         - say: "So what can I do for you?" 
    7777         - responses: 
    78            - 
    79              - "Hey, Bart - here is my shopping list I need to brew us up something tasty.  Can you help?" 
    80              - help_beer 
    81              - quest.hasQuest("beer") 
    82              # and howtobeer.state == "read" - howtobeer is an object the PC starts with, it has to be read for the PC to know what he needs to make beer. 
    83            - 
    84              - "By the way, Bart, I am looking for a chap named 'Pekko', you know were I can find him?" 
    85              - help_fedex 
    86              - quest.hasQuest("fedex") 
    87            - 
    88              - "Hey, try my fantastic brew!" 
    89              - beer_tasting 
    90              - ('beer' in pc.inventory) 
    91              # this is a bug in parser, bare string 'beer' cannot be first token 
    92            - 
    93              - "Did you hear about Pekko?" 
    94              - dead_pekko 
    95            - 
    96              - "Well, I am off to make some beer, wish me luck!" 
    97              - end 
    98              - quest.hasQuest('beer') 
    99            - 
    100              - "Adios, Bart" 
    101              - end 
    102              - not quest.hasQuest('beer') 
    103            - 
    104              - "Pekko was murdered.  And someone's responsible." 
    105              - murder_accuse 
    106              #- some conditional specifying that PC has found Pekko's body 
    107              # for these conditionals, we need some way of checking "partial" state of the  
    108              # quest - that the PC has found the dead Pekko, but for now we'll assume it's true 
     78             - 
     79               - "Hey, Bart - here is my shopping list I need to brew us up something tasty.  Can you help?" 
     80               - help_beer 
     81               - quest.hasQuest("beer") 
     82               # and howtobeer.state == "read" - howtobeer is an object the PC starts with, it has to be read for the PC to know what he needs to make beer. 
     83             - 
     84               - "By the way, Bart, I am looking for a chap named 'Pekko', you know were I can find him?" 
     85               - help_fedex 
     86               - quest.hasQuest("fedex") 
     87             - 
     88               - "Hey, try my fantastic brew!" 
     89               - beer_tasting 
     90               - ('beer' in pc.inventory) 
     91               # this is a bug in parser, bare string 'beer' cannot be first token 
     92             - 
     93               - "Did you hear about Pekko?" 
     94               - dead_pekko 
     95             - 
     96               - "Well, I am off to make some beer, wish me luck!" 
     97               - end 
     98               - quest.hasQuest('beer') 
     99             - 
     100               - "Adios, Bart" 
     101               - end 
     102               - not quest.hasQuest('beer') 
     103             - 
     104               - "Pekko was murdered.  And someone's responsible." 
     105               - murder_accuse 
     106               #- some conditional specifying that PC has found Pekko's body 
     107               # for these conditionals, we need some way of checking "partial" state of the  
     108               # quest - that the PC has found the dead Pekko, but for now we'll assume it's true 
    109109 
    110110    help_beer: 
  • trunk/game/dialogue/fguard.yaml

    r343 r353  
    116116         - get_stuff: box 
    117117         - responses: 
    118            -  
    119              - "Why can't I open the box?" 
    120              - why_no_open 
    121            -  
    122              - "You got it, boss." 
    123              - old_pals 
     118             -  
     119               - "Why can't I open the box?" 
     120               - why_no_open 
     121             -  
     122               - "You got it, boss." 
     123               - old_pals 
    124124  
    125125    why_no_open: 
     
    267267       - say: "Give me that back! [Janie takes boots from PC and rewraps them].  Now, here.  And don't open it again." 
    268268       - take_stuff: boots 
    269        - give_stuff: box 
     269       - get_stuff: box 
    270270       - responses: 
    271271          - 
  • trunk/game/dialogue_demo.py

    • Property svn:executable set to *
Note: See TracChangeset for help on using the changeset viewer.