The basic mechanic is simple. Roll 4d6, a d20, or d100 (% roll), add/subtract modifiers, and compare to a target number to determine success. The target number may be an AC, an ability score, or a target percentage.
On success, determine results such as the damage caused by an attack, any spell effect, and so on.
Ready for more?