Changeset 379 for trunk/game


Ignore:
Timestamp:
11/17/09 18:53:19 (10 years ago)
Author:
zenbitz
Message:

New techdemo dialogue files

Location:
trunk/game/dialogue
Files:
2 added
2 edited

Legend:

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

    r371 r379  
    5353  
    5454    elaborate_beer: 
    55         - say: "Well, not for much longer, unfortunately.  My stash is just about run dry.  But no one around here knows how to brew us up some more booze!" 
     55        - 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!" 
    5656        - responses:  
    5757            -  
    58               - "Well, I'll be glad to lend a hand to such a noble task. Assuming you guys will supply the raw materials." 
     58              - "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." 
    5959              - quest_beer 
     60            -  
     61              - "Hey, the man is entitled to run his business.  I'm not going to mess up his meal ticket." 
     62              - old_pals 
    6063            -  
    6164              - "Alcohol is work of the Devil!!" 
     
    7982               - "Hey, Bart - here is my shopping list I need to brew us up something tasty.  Can you help?" 
    8083               - 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. 
     84               - quest.hasQuest('beer') and quest['beer'].isGoalValue('beer_instructions') and not quest.hasFinishedQuest('beer') 
    8385             - 
    8486               - "By the way, Bart, I am looking for a chap named 'Pekko', you know were I can find him?" 
    8587               - help_fedex 
    86                - quest.hasQuest("fedex") 
     88               - quest.hasQuest('fedex') and not quest.hasFinishedQuest('fedex') 
    8789             - 
    8890               - "Hey, try my fantastic brew!" 
    8991               - beer_tasting 
    90                - ('beer' in pc.inventory) 
    91                # this is a bug in parser, bare string 'beer' cannot be first token 
     92               - quest['beer'].getValue('beer_quality') != 0 
    9293             - 
    9394               - "Did you hear about Pekko?" 
     
    9697               - "Well, I am off to make some beer, wish me luck!" 
    9798               - end 
    98                - quest.hasQuest('beer') 
     99               - quest.hasQuest('beer') and not quest.hasFinishedQuest('beer') 
    99100             - 
    100101               - "Adios, Bart" 
    101102               - end 
    102                - not quest.hasQuest('beer') 
     103               - not quest.hasQuest('beer') or quest.hasFinishedQuest('beer') 
    103104             - 
    104105               - "Pekko was murdered.  And someone's responsible." 
    105106               - 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 
    109  
     107               - quest['fedex'].isGoalValue('found_pekko') 
     108  
    110109    help_beer: 
    111110        - say: "Well, what do you need?" 
     
    114113             - "Where do you folks get water from.  The more pure, the better." 
    115114             - help_water 
    116              #- I would like this option to disappear after it's been asked once 
     115             - not quest['fedex'].isGoalValue('drunkard_water_asked') 
    117116             # the idea is that Bart's odd response is the clue that he killed Pekko 
    118              # and put the body in the tank. 
     117             # and put the body in the tank.  The conditional is to delete this option 
     118             # after it's been asked once. 
    119119           - 
    120120             - "Some kind of grain, or fruit or something." 
     
    181181    snow_melting: 
    182182        - say: "Like I said, I never drink the stuff." 
     183        - set_value: 
     184            quest: 'fedex' 
     185            variable: "drunkard_water_asked" 
     186            value: 1 
     187 
    183188        - responses: 
    184189            - 
     
    227232     
    228233    help_fedex: 
    229        - say: "That's what was in the package. [Janie takes boots out of the package, and gives them to you]" 
    230        - get_stuff: boots 
    231        - responses: 
    232           - 
    233             - "Oh.  I must be missing something..." 
    234             - explain_boots 
    235  
    236     explain_boots: 
    237         - say: "HI I AM INCOMPLETE DIALOGUE TEXT, PLEASE FIX ME" 
    238         - responses: 
    239  
    240             - 
    241               - I WILL 
    242               - back 
     234       - say: "No, I think maybe he left town." 
     235       - responses: 
     236          - 
     237            - "Really?  Do you know when he'll back" 
     238            - where_pekko 
     239     
     240    help_fedex: 
     241       - say: "No idea." 
     242       - responses: 
     243          - 
     244            - "Thanks..." 
     245            - back old_pals 
    243246     
    244247    murder_accuse: 
    245248       - say: "Wait... so .. you are the junior detective now?  How do you know he was murdered?" 
     249       - set_value: 
     250            quest: 'fedex' 
     251            variable: 'reported_murder' 
     252            value: quest['fedex'].getValue('reported_murder).add('pekko') 
     253            # I suspect that will not work, it certainly could be cleaner. 
    246254       - responses: 
    247255          - 
     
    268276    accuse_bart: 
    269277        - say: "Look, stranger...  I don't know who you think you are but this isn't your place.  The fact is, Pekko didn't have many friends, and even his friends didn't even really like him." 
     278        - set_value: 
     279            quest: 'fedex' 
     280            variable: 'accused_of_murder' 
     281            value: 'pekko' 
    270282        - responses: 
    271283            -  
     
    332344       - say: "You are a genius, sir, a genius. [Bart holds bottle up to the light]  Looks great. How did it come out?" 
    333345       - responses: 
    334           # hardcoding the value here until the inventory code can be used in 
    335           # game 
    336           - 
    337             - "I think it's just about perfect" 
    338             - best_beer 
    339 #             - beer.quality >= 5 
    340 #           - 
    341 #             - "It took some doing, but I think I got it down." 
    342 #             - good_beer 
    343 #             - beer.quality == 4 
    344 #           - 
    345 #             - "I am pretty happy about it, given the circumstances." 
    346 #             - decent_beer 
    347 #             - beer.quality == 3 
    348 #           - 
    349 #             - "It's not my best work, but it will get you hammered." 
    350 #             - ok_beer 
    351 #             - beer.quality == 2 
    352 #           - 
    353 #             - "I hope it turned out OK." 
    354 #             - bad_beer 
    355 #             - beer.quality == 1 
    356 #           - 
    357 #             - "No promises on the the taste..." 
    358 #             - poisonous_beer 
    359 #             - beer.quality < 1 
     346           - 
     347             - "I think it's just about perfect" 
     348             - best_beer 
     349             - quest['beer'].getValue('beer_quality') >= 5 
     350           - 
     351             - "It took some doing, but I think I got it down." 
     352             - good_beer 
     353             - quest['beer'].getValue('beer_quality') == 4 
     354           - 
     355             - "I am pretty happy about it, given the circumstances." 
     356             - decent_beer 
     357             - quest['beer'].getValue('beer_quality') == 3 
     358           - 
     359             - "It's not my best work, but it will get you hammered." 
     360             - ok_beer 
     361             - quest['beer'].getValue('beer_quality') == 2 
     362           - 
     363             - "I hope it turned out OK." 
     364             - bad_beer 
     365             - quest['beer'].getValue('beer_quality') == 1 
     366           - 
     367             - "No promises on the the taste..." 
     368             - poisonous_beer 
     369             - quest['beer'].getValue('beer_quality') < 0 
    360370             
    361371    best_beer:  
     
    402412        - say: "[ Bart drinks the beer, then sits down fast.] Oh... I uh... hmmm... are.. uh, you sure you did this right? [vomits]" 
    403413        #- npc('Bart').poison('beer') 
    404         #- quest('beer').reset  
    405         # Not sure how to implement these yet; may not be necessary for the demo 
    406         # "quest.reset" would mean to basically allow the PC to try again 
     414        # Not sure how to implement poisoning; may not be necessary for the demo 
     415        - delete_quest: beer 
     416        - start_quest: quests/beer.yaml  
    407417        - responses: 
    408418           -  
     
    411421             
    412422    gratitude:  
    413         - say: "Ah, Mysterious Stranger, Braumeister of the Frozen North.   Now, if we can only get that still up and runnning my good chap!" 
     423        - say: "Ah, Mysterious Stranger, Braumeister of the Frozen North.   Now, if we can only get that still up and running my good chap!" 
    414424        - responses: 
    415425           -  
  • trunk/game/dialogue/fguard.yaml

    r371 r379  
    3030              - "I'm the beer savior, remember?" 
    3131              - gratitude 
    32               - pc.hasSatisfiedQuest('beer')  
     32              - quest.hasFinishedQuest('beer') and quest['beer'].getValue('beer_quality') >= 1 
    3333            -  
    3434              - "It's me - don't you remember?" 
     
    4747              - "Yeah, just blew in with the last storm." 
    4848              - elaborate_fedex 
    49               - pc.canAcceptQuest('fedex') 
     49              - not quest.hasQuest('fedex') and not quest.hasFinishedQuest('fedex') 
    5050            # above should always be true since there is no other way to get the quest   
    5151            - 
     
    113113         # Need some way of triggering the change in game state; package moving from Janie's inventory to yours] 
    114114         - say:  "You should be able to find Pekko in the main compound area.  If anyone asks you why you are looking for him, 'say that he promised you something'.  Pekko's always making promises.  Oh, and don't open the box. [ Janie hands you the package ]" 
    115          - start_quest: fedex 
     115         - start_quest: quests/fedex.yaml 
    116116         - get_stuff: box 
     117         # I suspect the "get_box" should be rolled into start_quest 
    117118         - responses: 
    118119             -  
     
    136137             - "I'm trying to make beer, can you help me find some stuff?" 
    137138             - help_beer 
    138              - pc.questIsCurrent("beer") 
     139             - quest.hasQuest('beer') and not quest.hasFinishedQuest('beer') 
    139140           - 
    140141             - "I guess I'll see if I can't find this Pekko character for you." 
    141142             - end 
    142              - pc.questIsCurrent("fedex") 
     143             - quest.hasQuest('fedex') and not quest.hasFinishedQuest('fedex') 
    143144           - 
    144145             - "So long, Janie.  Catch you later." 
    145146             - end 
    146              - not pc.questIsCurrent("fedex") 
     147             - not quest.hasQuest('fedex') or quest.hasFinishedQuest('fedex') 
    147148           - 
    148149             - "Uh, I opened the box." 
    149150             - open_box 
    150              #- pc.questIsCurrent('fedex') and 'box' in pc.inventory and box.isOpen 
    151              - box.state == "open" 
     151             - quest['fedex'].getValue('open_box') 
    152152           - 
    153153             - "I have some bad news.  I found your friend, Pekko.  In the water tank.  Dead." 
    154154             - dead_pekko 
    155              - pc.questIsCurrent('fedex')  
    156              # for this last conditional, we need some way of checking "partial" state of the  
    157              # quest - that the PC has found the dead Pekko, but for now we'll assume it's true 
     155             - quest['fedex'].isGoalValue('found_pekko')  
    158156 
    159157    help_beer: 
     
    220218             - "Well, I figured since Pekko was dead and all..." 
    221219             - dead_pekko 
    222              - pc.questIsCurrent('fedex')  
    223              # pc.hasQuest("fedex") == "deadPekko" again might be tested here 
     220             - quest['fedex'].isGoalValue('found_pekko') 
    224221           - 
    225222             - "I'm sorry, I was just curious." 
     
    236233    discuss_murder: 
    237234       - say: "Look.  Just stay out of it.  It's not really your business anyway, Stranger.  Just forget we ever talked." 
     235       # this could possibly be expanded to allow PC to accuse someone 
    238236       - responses: 
    239237           - 
     
    258256            - "What boots?" 
    259257            - boot_gift 
    260             - box.state == 'closed' 
     258            - not quest['fedex'].getValue('open_box') 
    261259          - 
    262260            - "Yeah, I figured he wouldn't need them.  Why did you send him boots, anyway?" 
    263261            - explain_boots 
    264             - box.state == 'open' or 'boots' in pc.inventory 
     262            - quest['fedex'].getValue('open_box') 
    265263     
    266264    rewrap_box: 
    267265       - say: "Give me that back! [Janie takes boots from PC and rewraps them].  Now, here.  And don't open it again." 
     266       # reset the quest: Note we need to make sure we don't generate an infinite supply of combat boots! 
    268267       - take_stuff: boots 
    269        - get_stuff: box 
     268       - delete_quest: fedex 
     269       - start_quest: quests/fedex.yaml 
     270       - get_stuff: box  
     271       # I suspect this should be rolled into "start_quest" 
    270272       - responses: 
    271273          - 
    272274            - "OK, It will never happen again." 
    273275            - old_pals 
    274             - box.close  
    275             # (always returns true) 
    276             # PC has to get a rewrapped box, and box must be set to "closed" again. 
    277276 
    278277    gratitude:  
    279         # if pc.hasSatisfiedQuest("beer") returns an integer representing  
    280         # quality of beer, we can add more varied responses 
    281278        - say: "Well aren't you just a thick slice of awesome." 
    282279        - responses: 
Note: See TracChangeset for help on using the changeset viewer.