I
am new to the whole API thing and I need some help in creating a piece
of code, I don't know what to do. What the code is meant to do is: Take an input in the form of "distance to target". Take that input and compare it to a table to obtain a DC which depends on that distance. Make a skill check using a characters modifier. Compare the check to the DC, and for each point above the DC, the character rolls a damage roll (up to a maximum of 5). I have no idea where to begin with this so please help me.