targetname is player name who gets damaged.. man in this case.
damage val is value of damage that happens if attack action executed 10 in this case.
use random if enabled puts additional damage to the damage val..damageVal+random(number)
random max 10 is in range between 0 to 9...
so if random val is 9 and damageVal is 10 -total will be 19
ifRND0miss hit.. if random is 0 ..player gets no damage at all.if enabled.
critical hit not enabled in this script-- it will be used to freeze player if hit is 19 (means total) in this case. so player hit animation + maybe some camera shake or something i will figure out.