Changeset 339 for trunk/game


Ignore:
Timestamp:
10/22/09 12:37:05 (10 years ago)
Author:
Kaydeth_parpg
Message:

Ticket #121. Patch by Zenbitz. I hacked up the dialogue-demo.py script so that I could test my fguard.yaml file. There were lots of bugs! I had to add several callbacks and functions to the dummy objects in the demo script. I also modified it so that it will use a .yaml file as the first command line argument instead of hard-coded dialogues/sample.yaml (still the default).

Location:
trunk/game
Files:
2 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/run.py

    r315 r339  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python 
    22 
    33#   This program is free software: you can redistribute it and/or modify 
  • trunk/game/run_tests.py

    r284 r339  
    1 #!/usr/bin/python 
     1#!/usr/bin/env python 
    22 
    33#   This program is free software: you can redistribute it and/or modify 
  • trunk/game/scripts/dialogue.py

    r317 r339  
    210210                                                 command.get("complete_quest")) 
    211211 
     212            elif command.get("meet"): 
     213                self.callbacks["meet"](state, \ 
     214                                                 command.get("meet")) 
     215 
     216            elif command.get("get_stuff"): 
     217                self.callbacks["get_stuff"](state, \ 
     218                                                 command.get("get_stuff")) 
     219 
     220            elif command.get("take_stuff"): 
     221                self.callbacks["take_stuff"](state, \ 
     222                                                 command.get("take_stuff")) 
     223                 
    212224            elif command.get("dialogue"): 
    213225                command = command.get("dialogue") 
Note: See TracChangeset for help on using the changeset viewer.