I'd like for a client (using the client ExecuteCloudScript API) to be able to create up to a max of X (say 4) characters on their account - so 4 character slots. If they delete a character then it frees up a character slot. So, at any time a player can have 0 to 4 characters created.
In addition, have a token that players can purchase which can each increase their max character slots to to some final max count (say 10 character slots).
Any hints or examples as to how to implement something like this via cloud script? It's still confusing to me, so any tips would be greatly appreciated.