i want to inseart some entries in an table, but all my tries failed. So this is the table:
Code: Select all
this.planetValue = {
["cor"] = { victory = 60, defeat = 20, turn = 3 },
["dag"] = { victory = 50, defeat = 20, turn = 3 },
["fel"] = { victory = 50, defeat = 20, turn = 3 },
["geo"] = { victory = 100, defeat = 35, turn = 10 },
["hot"] = { victory = 60, defeat = 20, turn = 3 },
["kas"] = { victory = 50, defeat = 20, turn = 3 },
["kam"] = { victory = 100, defeat = 35, turn = 10 },
["mus"] = { victory = 60, defeat = 20, turn = 3 },
["myg"] = { victory = 50, defeat = 20, turn = 3 },
["nab"] = { victory = 60, defeat = 20, turn = 3 },
["pol"] = { victory = 50, defeat = 20, turn = 3 },
["tat"] = { victory = 50, defeat = 20, turn = 3 },
["uta"] = { victory = 60, defeat = 20, turn = 3 },
["yav"] = { victory = 50, defeat = 20, turn = 3 },
}
Code: Select all
["bes"] = { victory = 60, defeat = 20, turn = 3 },
["rhn"] = { victory = 50, defeat = 20, turn = 3 },
Code: Select all
this.planetMission = {
["cor"] = { ["con"] = "cor1r_con", },
["dag"] = { ["con"] = "dag1r_con", },
["fel"] = { ["con"] = "fel1r_con", },
["geo"] = { ["con"] = "geo1r_con", },
["hot"] = { ["con"] = "hot1r_con", },
["kam"] = { ["con"] = "kam1r_con", },
["kas"] = { ["con"] = "kas2r_con", },
["mus"] = { ["con"] = "mus1r_con", },
["myg"] = { ["con"] = "myg1r_con", },
["nab"] = { ["con"] = "nab2r_con", },
["pol"] = { ["con"] = "pol1r_con", },
["tat"] = { ["con"] = "tat2r_con", },
["uta"] = { ["con"] = "uta1r_con", },
["yav"] = { ["con"] = "yav1r_con", },
}
I want to add them optionaly, so i cannot simply add them to the list.



