I've been investigating a few combat systems as of late to figure out how to develop my own for a personal project.
One of the combat systems I've been focussing on has been the one in the KOTOR games. To my understanding behind the scenes it uses what is essentially the d20 system - which I have yet to really learn, mind you. So far I've made sense of attack rolls and saving throws but the damage roll is something I'm still not sure about. I spent some time looking around on the internet and got a lot of information about what the damage roll is but not how damage is actually calculated, which is what I care about.
How exactly does rolling for damage work in KOTOR? More specifically, if a weapon has a damage of "5-12", how is that damage applied during combat?