changeset 48:097996ee0b3d

fixed talk functionality in techdemo
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 13 Jul 2008 12:40:54 +0000
parents b3838661971f
children 61d7a0a881bd
files clients/rio_de_hola/scripts/world.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)