# HG changeset patch # User jasoka@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1215952854 0 # Node ID 097996ee0b3df1edc6c0d35aff39992315f547b4 # Parent b3838661971fec7dfa2e56786cadc89aaec861ea fixed talk functionality in techdemo diff -r b3838661971f -r 097996ee0b3d clients/rio_de_hola/scripts/world.py --- a/clients/rio_de_hola/scripts/world.py Sun Jul 13 11:20:39 2008 +0000 +++ b/clients/rio_de_hola/scripts/world.py Sun Jul 13 12:40:54 2008 +0000 @@ -107,7 +107,7 @@ self.instance_to_agent[self.girl.agent.getFifeId()] = self.girl self.girl.start() - self.beekeepers = create_anonymous_agents(self.model, 'Beekeeper', self.agentlayer, Beekeeper) + self.beekeepers = create_anonymous_agents(self.model, 'beekeeper', self.agentlayer, Beekeeper) for beekeeper in self.beekeepers: self.instance_to_agent[beekeeper.agent.getFifeId()] = beekeeper beekeeper.start() @@ -236,10 +236,10 @@ self.hide_instancemenu() instance = self.instancemenu.instance self.hero.talk(instance.getLocationRef()) - if instance.getObject().getId() == 'Beekeeper': + if instance.getObject().getId() == 'beekeeper': txtindex = random.randint(0, len(TDS.beekeeperTexts) - 1) instance.say(TDS.beekeeperTexts[txtindex], 5000) - if instance.getObject().getId() == 'Girl': + if instance.getObject().getId() == 'girl': txtindex = random.randint(0, len(TDS.girlTexts) - 1) instance.say(TDS.girlTexts[txtindex], 5000)