We’re doing a MUD like single player game where you run around and talk with various bots.
web page <—> prolog <—> chatscript
The game’s online, so of course we’re using the user ID to keep different player’s states separate.
The bots have a set of secret state variables.
The bots will also move around on their own. When they encounter each other they exchange information. So at some point, determined by the external system, arnold for player1 needs to give some info to bob for player1.
Obviously one way is to fake being the player, get the info from arnold, and give it to bob. But I’m wondering if there’s a more elegant way to do this. It looks like system variables are truly global, not per user, and bot variables are per bot, of course. So whats per user but global by bot?