A framework for roleplaying games