Ignore:
Timestamp:
12/06/10 04:52:04 (9 years ago)
Author:
technomage
Message:

Patch by Technomage

  • Patched the dialogue files and renamed the (increase|decrease|set)_quest_value DialogueAction? keywords to (increase|decrease|set)_quest_variable. I updated the dialogueactions.py module a few patches ago, but forgot to update the dialogue files!
  • Fixed a bug in the YamlDialogueParser? class in the dialogueparsers.py module that prevented DialogueActions? with a single argument from being correctly parsed; the "keyword: argument" form for declaring DialogueActions? should now be correctly parsed.
File:
1 edited

Legend:

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

    r680 r683  
    1818START_SECTION: main_dialogue 
    1919SECTIONS: 
    20     - ID: main_dialogue 
    21       SAY: "The old man looks up at you from his chair with a dazed look 
    22         upon his face. 
     20-   ID: main_dialogue 
     21    SAY: "The old man looks up at you from his chair with a dazed look upon\ 
     22       \ his face.\n\"...Lucy?\"" 
     23    ACTIONS: 
     24    -   meet: 
     25        - old_man 
     26    RESPONSES: 
     27    -   REPLY: "Who's Lucy?" 
     28        GOTO: help_find_lucy 
    2329         
    24         \"...Lucy?\"" 
    25       ACTIONS: 
    26         - meet: old_man 
    27       RESPONSES: 
    28         - REPLY: "Who's Lucy?" 
    29           GOTO: help_find_lucy 
     30    -   REPLY: "I found your ring." 
     31        CONDITION: "quest.hasActiveQuest('memories') and\ 
     32           \ pc.inventory.hasItem('RustyWeddingRing')" 
     33        ACTIONS: 
     34        -   give_stuff: 
     35            - RustyWeddingRing 
     36        -   complete_quest: 
     37            - memories 
     38        GOTO: good_memories 
    3039         
    31         - REPLY: "I found your ring." 
    32           CONDITION: "quest.hasActiveQuest('memories') and 
    33             pc.inventory.hasItem('RustyWeddingRing')" 
    34           ACTIONS: 
    35             - give_stuff: 
    36                 - RustyWeddingRing 
    37             - complete_quest: memories 
    38           GOTO: good_memories 
     40    -   REPLY: "I don't have time for your delusions old man!" 
     41        GOTO: parting_shot 
    3942         
    40         - REPLY: "I don't have time for your delusions old man!" 
    41           GOTO: parting_shot 
    42      
    43     - ID: good_memories 
    44       SAY: "An intense expression of joy spreads across the old man's face 
    45         as you hand him the rusty wedding ring. He tries to mouth a 
    46         word of thanks but is so overcome that no words come out. The old 
    47         man begins caressing the ring, oblivious to the decay and rot of 
    48         the world around him." 
    49       RESPONSE: 
    50         - REPLY: "[Walk away.]" 
    51           GOTO: end 
    52      
    53     - ID: help_find_lucy 
    54       SAY: "The old man looks at you expectedly. 
     43-   ID: good_memories 
     44    SAY: "An intense expression of joy spreads across the old man's face as\ 
     45       \ you hand him the rusty wedding ring. He tries to mouth a word of\ 
     46       \ thanks but is so overcome that he cannot utter a sound. The old man\ 
     47       \ begins caressing the ring, oblivious to the decay and rot of the\ 
     48       \ world around him." 
     49    RESPONSES: 
     50    -   REPLY: "[Walk away.]" 
     51        GOTO: end 
    5552         
    56         \"Can you help me find Lucy?\"" 
    57       RESPONSES: 
    58         - REPLY: "Where is Lucy?" 
    59           GOTO: rusted_lockbox 
     53-   ID: help_find_lucy 
     54    SAY: "The old man looks at you expectedly.\n\"Can you help me find\ 
     55       \ Lucy?\"" 
     56    RESPONSES: 
     57    -   REPLY: "Where is Lucy?" 
     58        GOTO: rusted_lockbox 
    6059         
    61         - REPLY: "I have better things to do." 
    62           GOTO: parting_shot 
    63      
    64     - ID: rusted_lockbox 
    65       SAY: "The old man gazes over his shoulder to the far side of the 
    66         shanty where a metal lockbox rests on the floor. 
     60    -   REPLY: "I have better things to do." 
     61        GOTO: parting_shot 
    6762         
    68         \"Can't open it any more... rusted...\"" 
    69       RESPONSES: 
    70         - REPLY: "I'll see what I can do." 
    71           ACTIONS: 
    72             - start_quest: memories 
    73           GOTO: parting_shot 
     63-   ID: rusted_lockbox 
     64    SAY: "The old man gazes over his shoulder to the far side of the shanty\ 
     65       \ where a metal lockbox rests on the floor.\n\"Can't open it any\ 
     66       \ more... rusted...\"" 
     67    RESPONSES: 
     68    -   REPLY: "I'll see what I can do." 
     69        ACTIONS: 
     70        -   start_quest: 
     71            - memories 
     72        GOTO: parting_shot 
    7473         
    75         - REPLY: "Fix your own problems, old man!" 
    76           ACTIONS: 
    77           GOTO: parting_shot 
    78      
    79     - ID: parting_shot 
    80       SAY: "The old man sighs and begins to stare remorsefully at the 
    81         smouldering embers in the fireplace." 
    82       RESPONSES: 
    83         - REPLY: "[Walk away.]" 
    84           GOTO: end 
    85      
     74    REPLY: "Fix your own problems, old man!" 
     75        GOTO: parting_shot 
     76         
     77-   ID: parting_shot 
     78    SAY: "The old man sighs and begins to stare remorsefully at the\ 
     79       \ smouldering embers in the fireplace." 
     80    RESPONSES: 
     81    -   REPLY: "[Walk away.]" 
     82        GOTO: end 
     83         
     84... 
Note: See TracChangeset for help on using the changeset viewer.