Shiroyasha2910, regarding combat scripts, there is an excellent guide from the respected }{0TT@6bI4: combat scripts - guide
And regarding your idea, I haven't done anything like that myself yet, but as I see it, you should try using the HasHeroSkill() function, and save the result in a variable using the SetGameVar() function, and then retrieve it in the combat script file using GetGameVar(). There might be another way, but this seems to be the most obvious one.
Auto-translated