Let me start with what table i have created
And inside the script i want to do something like creature:getVocation() and depending on the vocation i want to setOutfits from the values start to stop and stop to last how can i take the values from table of this kind ?
Lua:
local outfitStates = {
goku = {
start = 10,
stop = 16,
last = 27
}
vegeta = {
start = 23,
stop = 26,
last = 29
}
brolly = {
start = 30,
stop = 36,
last = 37
}
}
And inside the script i want to do something like creature:getVocation() and depending on the vocation i want to setOutfits from the values start to stop and stop to last how can i take the values from table of this kind ?