Code: Select all
if round(75-pTarget.getValue("Speed")+self.user.getValue("Critical Hit")*100.0) <= RndInt(0,100)
pTarget=target!
as usual the critical is multiplied by 100 but only because internally is a float, so if attacker's critical is 30, the result will be 30.