Attack(mob/User, mob/Target, Type = "Str", Stat="Hp", Chance=100, Cure=0, CD=0, Buff=0, IconState="Attack1")
if(prob(Chance))
flick(IconState,User)
switch(Type)
if("Str")
dmg = User.str - (Target.defense)
dmg += Buff
if("Nen")
dmg = User.nen - (Target.defense)
dmg += Buff
if("StrNen")
StrNen2 = User.nen / 2
StrNen = User.str + User.StrNen2
dmg = User.StrNen - (Target.defense)
dmg += Buff <--- problem is here
Problem description:i get a runtime error, mismatch ik that math doesnt make sense, what im trying to do is make the value of buff add to dmg
You can also output all arguments to verify if everything is passed correctly.