so I've been trying to store some values within array that consists of multiple arrays, like that:
Code: Select all
dest = {1 = { 1, 25, 12, 0},
2 = { 1, 27, 12, 0}}
Or I'm just doing something wrong ?
Code: Select all
dest = {1 = { 1, 25, 12, 0},
2 = { 1, 27, 12, 0}}
Code: Select all
local a= {
{1,2,3,4},
{5,6,7,8}
}
Code: Select all
local a= {
red = {1,2,3,4},
fish = {5,6,7,8}
}
Associative works, so long as it's not what it numerical key would of been
OT: I guess it's for your teleporter scroll, isn't it? becasue it was first thing in my mind when I read your post about thatBlichew wrote:Thanks I forgot about the fact thatAssociative works, so long as it's not what it numerical key would of been
Code: Select all
teleport_scroll_targets = {"teleport_scroll_1",1,25,12,0, -- {scrollID,level,X,Y,elevation}
"teleport_scroll_2",1,27,12,0}
Code: Select all
dest = {
["red"] = { 1, 25, 12, 0},
["fish"] = {1, 27, 12, 0}
}
Code: Select all
teleport_scroll_targets = {"teleport_scroll_1",1,25,12,0, -- {scrollID,level,X,Y,elevation}
"teleport_scroll_2",1,27,12,0}
Code: Select all
dialogs = {
npc01 = {
line01 = {text = "Sentance 01.", dialog = "npc02"},
line02 = {text = "Sentance 02.", dialog = "npc02"},
line03 = {text = "Sentance 03.", dialog = "npc02"}
},
npc02 = {
line01 = {text = "Sentance 01.", dialog = "npc01"},
line02 = {text = "Sentance 02.", dialog = "npc01"},
line03 = {text = "Sentance 03.", dialog = "npc01"}
}
}