---------------------------------------- -- client side script on the the prisoner in cages in the caves -- -- created by brandi... 6/28/11 ---------------------------------------- -- table of chat strings for the villagers to say before they escape the cage -- TODO - Get Jordan to write chat strings local chatStrings = { "VILLAGER_CHAT_1", "VILLAGER_CHAT_2", "VILLAGER_CHAT_3", "VILLAGER_CHAT_4", "VILLAGER_CHAT_5", "VILLAGER_CHAT_6", "VILLAGER_CHAT_7", "VILLAGER_CHAT_8", "VILLAGER_CHAT_9" } function onNotifyClientObject(self,msg) if msg.name == "TimeToChat" then -- set the random seed math.randomseed(os.time()) -- use random to get a chat string from the table local ChatString = math.random(table.maxn(chatStrings)) self:DisplayChatBubble{wsText = Localize(chatStrings[ChatString])} end end