Code: Select all
while box_numb_count < 49:
if box_[col_Count][row_Count] == "none":
if row[row_Count]_Col_repeat != "pink2" or col_Col_repeat != "pink2":
python:
collor_match_list.append("pink")
elif row[row_Count]_Col_repeat == "pink2":
if row_Count == 1:
$ row1_Col_repeat = "none"
elif row_Count == 2:
$ row2_Col_repeat = "none"
elif row_Count == 3:
$ row3_Col_repeat = "none"
elif row_Count == 4:
$ row4_Col_repeat = "none"
elif row_Count == 5:
$ row5_Col_repeat = "none"
elif row_Count == 6:
$ row6_Col_repeat = "none"
elif row_Count == 7:
$ row7_Col_repeat = "none"
elif col_Col_repeat == "pink2":
$ col_Col_repeat = "none"
if row[row_Count]_Col_repeat != "red2" or col_Col_repeat != "red2":
python:
collor_match_list.append("red")
elif row[row_Count]_Col_repeat == "red2":
if row_Count == 1:
$ row1_Col_repeat = "none"
elif row_Count == 2:
$ row2_Col_repeat = "none"
elif row_Count == 3:
$ row3_Col_repeat = "none"
elif row_Count == 4:
$ row4_Col_repeat = "none"
elif row_Count == 5:
$ row5_Col_repeat = "none"
elif row_Count == 6:
$ row6_Col_repeat = "none"
elif row_Count == 7:
$ row7_Col_repeat = "none"
elif col_Col_repeat == "red2":
$ col_Col_repeat = "none"
if row[row_Count]_Col_repeat != "blue2" or col_Col_repeat != "blue2":
python:
collor_match_list.append("blue")
elif row[row_Count]_Col_repeat == "blue2":
if row_Count == 1:
$ row1_Col_repeat = "none"
elif row_Count == 2:
$ row2_Col_repeat = "none"
elif row_Count == 3:
$ row3_Col_repeat = "none"
elif row_Count == 4:
$ row4_Col_repeat = "none"
elif row_Count == 5:
$ row5_Col_repeat = "none"
elif row_Count == 6:
$ row6_Col_repeat = "none"
elif row_Count == 7:
$ row7_Col_repeat = "none"
elif col_Col_repeat == "blue2":
$ col_Col_repeat = "none"
if row[row_Count]_Col_repeat != "green2" or col_Col_repeat != "green2":
python:
collor_match_list.append("green")
elif row[row_Count]_Col_repeat == "green2":
if row_Count == 1:
$ row1_Col_repeat = "none"
elif row_Count == 2:
$ row2_Col_repeat = "none"
elif row_Count == 3:
$ row3_Col_repeat = "none"
elif row_Count == 4:
$ row4_Col_repeat = "none"
elif row_Count == 5:
$ row5_Col_repeat = "none"
elif row_Count == 6:
$ row6_Col_repeat = "none"
elif row_Count == 7:
$ row7_Col_repeat = "none"
elif col_Col_repeat == "green2":
$ col_Col_repeat = "none"
if row[row_Count]_Col_repeat != "yellow2" or col_Col_repeat != "yellow2":
python:
collor_match_list.append("yellow")
elif row[row_Count]_Col_repeat == "yellow2":
if row_Count == 1:
$ row1_Col_repeat = "none"
elif row_Count == 2:
$ row2_Col_repeat = "none"
elif row_Count == 3:
$ row3_Col_repeat = "none"
elif row_Count == 4:
$ row4_Col_repeat = "none"
elif row_Count == 5:
$ row5_Col_repeat = "none"
elif row_Count == 6:
$ row6_Col_repeat = "none"
elif row_Count == 7:
$ row7_Col_repeat = "none"
elif col_Col_repeat == "yellow2":
$ col_Col_repeat = "none"
$ box_[col_Count][row_Count] = renpy.random.choice(['collor_match_list'])
if box_[col_Count][row_Count] == row[row_Count]_Col_repeat:
if row[row_Count]_Col_repeat == "red":
if row_Count == 1:
$ row1_Col_repeat = "red2"
elif row_Count == 2:
$ row2_Col_repeat = "red2"
elif row_Count == 3:
$ row3_Col_repeat = "red2"
elif row_Count == 4:
$ row4_Col_repeat = "red2"
elif row_Count == 5:
$ row5_Col_repeat = "red2"
elif row_Count == 6:
$ row6_Col_repeat = "red2"
elif row_Count == 7:
$ row7_Col_repeat = "red2"
if row[row_Count]_Col_repeat == "blue":
if row_Count == 1:
$ row1_Col_repeat = "blue2"
elif row_Count == 2:
$ row2_Col_repeat = "blue2"
elif row_Count == 3:
$ row3_Col_repeat = "blue2"
elif row_Count == 4:
$ row4_Col_repeat = "blue2"
elif row_Count == 5:
$ row5_Col_repeat = "blue2"
elif row_Count == 6:
$ row6_Col_repeat = "blue2"
elif row_Count == 7:
$ row7_Col_repeat = "blue2"
if row[row_Count]_Col_repeat == "yellow":
if row_Count == 1:
$ row1_Col_repeat = "yellow2"
elif row_Count == 2:
$ row2_Col_repeat = "yellow2"
elif row_Count == 3:
$ row3_Col_repeat = "yellow2"
elif row_Count == 4:
$ row4_Col_repeat = "yellow2"
elif row_Count == 5:
$ row5_Col_repeat = "yellow2"
elif row_Count == 6:
$ row6_Col_repeat = "yellow2"
elif row_Count == 7:
$ row7_Col_repeat = "yellow2"
if row[row_Count]_Col_repeat == "pink":
if row_Count == 1:
$ row1_Col_repeat = "pink2"
elif row_Count == 2:
$ row2_Col_repeat = "pink2"
elif row_Count == 3:
$ row3_Col_repeat = "pink2"
elif row_Count == 4:
$ row4_Col_repeat = "pink2"
elif row_Count == 5:
$ row5_Col_repeat = "pink2"
elif row_Count == 6:
$ row6_Col_repeat = "pink2"
elif row_Count == 7:
$ row7_Col_repeat = "pink2"
if row[row_Count]_Col_repeat == "green":
if row_Count == 1:
$ row1_Col_repeat = "green2"
elif row_Count == 2:
$ row2_Col_repeat = "green2"
elif row_Count == 3:
$ row3_Col_repeat = "green2"
elif row_Count == 4:
$ row4_Col_repeat = "green2"
elif row_Count == 5:
$ row5_Col_repeat = "green2"
elif row_Count == 6:
$ row6_Col_repeat = "green2"
elif row_Count == 7:
$ row7_Col_repeat = "green2"
if box_[col_Count][row_Count] == col_Col_repeat:
if col_Col_repeat == "red":
$ col_Col_repeat = "red2"
if col_Col_repeat == "blue":
$ col_Col_repeat = "blue2"
if col_Col_repeat == "yellow":
$ col_Col_repeat = "yellow2"
if col_Col_repeat == "pink":
$ col_Col_repeat = "pink2"
if col_Col_repeat == "green":
$ col_Col_repeat = "green2"
if row_Count == 1:
$ row1_Col_repeat = box_[col_Count][row_Count]
elif row_Count == 2:
$ row2_Col_repeat = box_[col_Count][row_Count]
elif row_Count == 3:
$ row3_Col_repeat = box_[col_Count][row_Count]
elif row_Count == 4:
$ row4_Col_repeat = box_[col_Count][row_Count]
elif row_Count == 5:
$ row5_Col_repeat = box_[col_Count][row_Count]
elif row_Count == 6:
$ row6_Col_repeat = box_[col_Count][row_Count]
elif row_Count == 7:
$ row7_Col_repeat = box_[col_Count][row_Count]
$ col_Col_repeat = box_[col_Count][row_Count]
python:
collor_match_list = []
else:
pass
$ box_numb_count += 1
$ row_Count += 1
if row_Count < 7:
$ row_Count = 1
$ col_Col_repeat = "none"
$ col_Count += 1
$ row_Count = 1
$ col_Count = 1
$ box_numb_count = 1
$ row1_Col_repeat = "none"
$ row2_Col_repeat = "none"
$ row3_Col_repeat = "none"
$ row4_Col_repeat = "none"
$ row5_Col_repeat = "none"
$ row6_Col_repeat = "none"
$ row7_Col_repeat = "none"
$ col_Col_repeat = "none"
return
EDIT: Managed to work out a working solution. Thanks for the help to those who pitched in.