I've had similar issues with global and private variables in expressions. To fix it, specify in the expression what the type of the variable is: int, float or str.
change this
-> System: Set global variable 'Maxhealth' to global('Constitution')*32
to this
-> System: Set global variable 'Maxhealth' to int(global('Constitution'))*32
-cheers