table change to your call in . moon?

Asked

Viewed 73 times

2

have this table below

tabela = {
    ["Maquina"] = {
        {name = "susu", level = 600},
        {name = "camel", level = 600},
        {name = "juju", level = 600},
    },
    ["bruno"] = {
        {name = "fada", level = 600},
        {name = "pinoquio", level = 600},
        {name = "jupter", level = 600},
    }
}

how can I do for how much I call her values always change ex below

tabela = {
    ["Maquina"] = {
        {name = "camel", level = 600},
        {name = "juju", level = 600},
        {name = "susu", level = 600},
    },
    ["bruno"] = {
        {name = "pinoquio", level = 600},
        {name = "fada", level = 600},
        {name = "jupter", level = 600},
    }
}
  • 1

    Your question makes no sense, in Lua a table is not "called".

  • Friend, from what I understand you want is just to change the ordering? correct?

  • yes , exactly

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.