Hello.
18:19:03.606:stack traceback:
[C]: in metamethod 'newindex'
[string "(30,57)"]:9: in function 'setAnimFrames'
[string "(8,33905)"]:17: in main chunk
18:19:03.606:Unknown data-field "FirstFrame" for object (-1,-1) Unnamed.
18:19:03.607:1
18:19:03.607:stack traceback:
[C]: in metamethod 'newindex'
[string "(30,57)"]:8: in function 'setAnimFrames'
[string "(8,33905)"]:18: in main chunk
18:19:03.607:Unknown data-field "LastFrame" for object (-1,-1) Unnamed.
and so on...
My script is placed in the first frame of object animation (call action function):
local val = Values["choice"].Int
if val == 1 then
setAnimFrames("char1", 2)
setAnimFrames("char2", 1)
setAnimFrames("char3", 1)
setAnimFrames("char4", 1)
setAnimFrames("char5", 1)
setAnimFrames("char6", 1)
elseif val == 2 then
setAnimFrames("char1", 1)
setAnimFrames("char2", 2)
setAnimFrames("char3", 1)
setAnimFrames("char4", 1)
setAnimFrames("char5", 1)
setAnimFrames("char6", 1)
elseif val == 3 then
setAnimFrames("char1", 1)
setAnimFrames("char2", 1)
setAnimFrames("char3", 2)
setAnimFrames("char4", 1)
setAnimFrames("char5", 1)
setAnimFrames("char6", 1)
elseif val == 4 then
setAnimFrames("char1", 1)
setAnimFrames("char2", 1)
setAnimFrames("char3", 1)
setAnimFrames("char4", 2)
setAnimFrames("char5", 1)
setAnimFrames("char6", 1)
elseif val == 5 then
setAnimFrames("char1", 1)
setAnimFrames("char2", 1)
setAnimFrames("char3", 1)
setAnimFrames("char4", 1)
setAnimFrames("char5", 2)
setAnimFrames("char6", 1)
elseif val == 6 then
setAnimFrames("char1", 1)
setAnimFrames("char2", 1)
setAnimFrames("char3", 1)
setAnimFrames("char4", 1)
setAnimFrames("char5", 1)
setAnimFrames("char6", 2)
else
setAnimFrames("char1", 1)
setAnimFrames("char2", 1)
setAnimFrames("char3", 1)
setAnimFrames("char4", 1)
setAnimFrames("char5", 1)
setAnimFrames("char6", 1)
end
Can you suggest what could be the problem??
Thanks