Script to calculate monster's values