def Statup(self, Flavor=0, Check=100, Value=1, Greater=0, Type=0, Overflow=0, BStat=0, XPOS = 0.75):
# $ Player.Statup("Focus", 90, 5)
Type = getattr(self,Flavor)
if Greater:
#this checks if it's greater or less than the intended value
#if it fails, the value is zeroed out, canceling the rest
if Type >= Check:
#If it passes the check, add Value to it
Type += Value
else:
#If not, don't add Value and set Value to 0
Value = 0
else:
if Type <= Check:
Type += Value
else:
Value = 0
if Value:
Color = "#FFFFFF"
# show pop-up
CallHolder(Value, Color, XPOS)
#end "if value is positive"
Type = 100 if Type > 100 else Type
setattr(self,Flavor,Type)
return
#End Statup