I'm trying to setup an internal area list for manipulation through scripting and posterior importing/exporting to a "physical" database.
I have a very small programming background, but I've been slowly beginning to do experiment with Lua and I've come up with the following (it's in my plugin file's script CDATA) in order to implement such a list:
It gives me no loading errors when I (re)install the plugin, but trying to execute the function gives me the following error:
I have a very small programming background, but I've been slowly beginning to do experiment with Lua and I've come up with the following (it's in my plugin file's script CDATA) in order to implement such a list:
area_list = {
area = {
name,
age_range = {
min,
max
},
coordinates = {
x,
y
},
monster_list = {},
task_list = {}
}
}
function fn_area_list()
i = 1
while area_list[i] do
Note(area_list[i]["name"])
i = i + 1
end
endIt gives me no loading errors when I (re)install the plugin, but trying to execute the function gives me the following error:
Compile error
World: longsword (master)
Immediate execution
[string "Command line"]:1: '=' expected near '<eof>'