Scn CriticalHit
Short RandomPercent
Short SkillVar
Ref Me
Float LuckSkill
Float BladeSkill
Begin ScriptEffectStart
If isEssential == 0
Set RandomPercent to getRandomPercent
Set LuckSkill to player.getActorValue Luck
Set BladeSkill to player.getActorValue Blade
Set SkillVar to (LuckSkill + BladeSkill) * 0.025
If SkillVar < 1
Set SkillVar to 1
Endif
If RandomPercent <= SkillVar
Message "Critical Hit"
;Set Me to getself
;your functions (eg. Player.Pushactoraway Me 100)
Endif
Endif
End
not sure how to empliment it. do i need to reference it to some other thing? a onhit? and how?