I think you might have a "role-playing game" in mind. There are many existing role-playing "systems" that you can start off with. 

https://en.wikipedia.org/wiki/Category:Role-playing_game_systems

In general, you need to define at least the following:
* The initial conditions - what resources do the players and environment start with
* For each turn:
    * What information is the player given
    * what actions is the player allowed to take
    * compute the effects these actions have on the environment and other players
* Game-end conditions

Please ask me for more details for any of these phases, or more details on any specific role-playing system that I might know about.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence