Page 1 of 1
[Resolved] Lua error
Posted: 25 Oct 2018, 21:53
by ElephantEthan
What am I doing wrong here?
Code: Select all
function script.nextMonth()
Builder.buildTree("$tree00", 1, 0, 0)
end
Re: Lua error
Posted: 25 Oct 2018, 22:52
by CommanderABab
Where did you define $tree00?
Re: Lua error
Posted: 26 Oct 2018, 07:46
by ElephantEthan
CommanderABab wrote: ↑25 Oct 2018, 22:52
Where did you define $tree00?
It's the default tree ID. I don't have any plugins that replace it.
Re: Lua error
Posted: 27 Oct 2018, 08:23
by JustAnyone
I think you need to load draft first.
Re: Lua error
Posted: 27 Oct 2018, 16:58
by ElephantEthan
JustAnyone wrote: ↑27 Oct 2018, 08:23
I think you need to load draft first.
Thanks! It works now!
Code:
Code: Select all
function script.nextMonth()
Draft.getDraft("$tree00")
Builder.buildTree("$tree00", 1, 0, 0)
end
Result: