function onFreeCapacityChange(localPlayer, freeCapacity)
setSkillValue('capacity', freeCapacity * 100)
checkAlert('capacity', freeCapacity, localPlayer:getTotalCapacity(), 20)
end
function onTotalCapacityChange(localPlayer, totalCapacity)
checkAlert('capacity', localPlayer:getFreeCapacity(), totalCapacity * 100, 20)
end