Ejemplo n.º 1
0
def CombineInChars():
    global masterLineList
    tempLine = makeLineObj(masterLineList[0])
    previousLine = LineObj(
        tempLine.script, 0, 0, "DIRECTION",
        tempLine.script)  #to keep lines in pairs, call and response
    for jline in masterLineList:
        line = makeLineObj(jline)
        #print "checking Line"
        found = False
        AddToStructures(line)
        tempPlay = getPlayinList(scriptWatcher)
        for actor in tempPlay.charList:
            if actor.name == line.character:  #Find the character in the char list
                found = True
                actor.lines.append([previousLine, line])
        if not found:
            tempPlay.charList.append(
                DataStructures.CharacterObject(line.character))
            for actor in tempPlay.charList:
                if actor.name == line.character:  #Find the character in the char list
                    found = True
                    actor.lines.append([previousLine, line])
        previousLine = line