changeset 185:c3dfcd241c3a

actor
author Adrianna Pińska <adrianna.pinska@gmail.com>
date Wed, 06 Apr 2011 20:36:58 +0200
parents e7413a565421
children 72e92893ccb8
files data/npcs/actor.json skaapsteker/dialogue.py
diffstat 2 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/data/npcs/actor.json	Wed Apr 06 20:36:58 2011 +0200
@@ -0,0 +1,18 @@
+{
+    "start" : {
+        "text" : "Finally, my chance at a starring role in this play. I’d better not mess this one up. Now that the other actors have left me alone to guard the costumes and masks, I have a proper chance to rehearse my lines. Ahem...",
+        "auto_next": "state.bother"
+    },
+    "bother" : {
+        "text" : "“Upon a thousand heights had gathered the inexplicable cloud. Swept by, uh... the rain, the moon is just come to light the high house. A clean and... and...” Oh bother, this is hard.",
+        "events" : [
+            { "matches" : "world.masks_destroyed()", "next": "state.no" }
+        ]
+    },
+    "no" : {
+        "text" : "NO! What have you done? The others are going to kill me when they see this mess. Fame and fortune are just not worth that. Aiiii!",
+        "auto_next": "state.gone"
+    },
+    "gone" : {
+    }
+}
--- a/skaapsteker/dialogue.py	Wed Apr 06 20:34:45 2011 +0200
+++ b/skaapsteker/dialogue.py	Wed Apr 06 20:36:58 2011 +0200
@@ -132,6 +132,8 @@
         self._fish_in_house = False
         self._torn_kimono = False
 
+        self._masks_destroyed = False
+
         self.npcs = {}
 
     def npc_is(self, npc_name, state):
@@ -160,3 +162,6 @@
 
     def torn_kimono(self):
         return self._torn_kimono
+
+    def masks_destroyed(self):
+        return self._masks_destroyed