#levelcount[Alchemist].value
Should be just:
#levelcount[Alchemist]
Anything with a # in front of it is a macro, and doesn't need a .value or .text after it, that is handled within the processes of the macro. Try this:
Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
var levels as number
levels = #totallevelcount[] - #levelcount[Alchemist]
field[trkMax].value += round(levels/2,0,-1)