Is there a way to set the variables so that the more dexterity you have, the more less likely you're going to miss when you hit your opponent?
Is there a way to set up miss attacks, according to how much dexterity you have?
Yes.
Honestly though, you're just going to have to read the help articles and think about it logically. What you're asking is pretty simple to implement once you understand how the system works.
I agree with Killa. You can't just ask the community to write the back end of your storygame for you. Please make use of the articles and ask if you have more specific questions.