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

New techdemo dialogue files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.