For me, as somebody who GMs far more than he plays, roleplaying is all about rolling with the punches. You obviously can’t predict 100% what your players will do, and you can’t predict die rolls, or whatever random element is important in your system. Basically, shit happens, and you’ll have to deal with it. Here are a few tips I’ve found to make that easier:
