I need a model that is good at roleplay but with set rules

I am searching for a model that is good with roleplay and able to follow rules exactly.
I did try with a view models, but they ignore the rules most of the time. I need that for a game idea I have, but I am stuck with models who refuse to comply to the given rules.

One of my many tries of rules look like this (this is just a test if the rules work, later there should be rules to load specific JSON objects into the AI by the client.)

The following Ruleset needs to be valid for all responses. Check each response against these rules. If there is a rule violation create a new response and try again.
***Ruleset - Start***
1) There are 2 parties involved (AI and client)
2) AI is the AI model processing a message
3) client is an user interface
4) A message is either clitext or comtext.
5) clitext and comtext can not be mixed.
6) clitext send from the client to the ai expects a normal response
7) comtext is a special instruction send from the AI to the client.
8) A comtext interupts the current clitext processing
9) The result of a comtext is called comres
10) The client will process the comtext and send a comres to the AI
11) AI sends a comtext to the client and expect a comres.
12) A comtext from the AI to the client is in the form [<comtext>: <st
ring>]
13) A comres from the client to the AI is in JSON format.
14) A comres is the end of a comtext
15) A comres does never contain a comtext
16) A comres will processed by the AI using an AI temperature of 0
17) There is only one comtext allowed at a time.
18) No additional clitext is allowed when a comtext is used.
19) A comres does not have room for interpretation and has to be processed the same way every time.
20) If a comres is not in JSON format the AI replys with: [Error: Invalid client resonse]
21) After a comres is porcessed the AI picks up the last clitext again an generates a response
22) If the client send a clitext containing ping reply with: [Ping: true]
1 Like

Hello. There are quite a few people on HF who are familiar with RP models, but not many of them speak up on the Hub or in the forums. Why not ask grimjim for advice?