ID:1653883
 
(See the best response by GhostAnime.)
Code:
        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

Best response
How are you calling this proc? You might be missing a comma, causing the "icon_state" to enter in the Buff field.

You can also output all arguments to verify if everything is passed correctly.
i see what you ment the verb had a incorrect format