I’m building a game where i want to use Rivescript for the NPCs (non-player characters).
I was thinking to have separate bots with separate brains for each NPC, to keep things a bit cleaner.
however, is there a way to share any type of User state between them?
eg if you talk to a npcA and get some coins, then go to spend these with npcB - is that something the system envisaged?
I saw that you can pass a “scope” when calling macros, so i could pass my own User object (from outside or RS) but how to easily allow bot scripts to do things like <set userCoins=30> and have that passed between bots?
The other method is to use Topics to control which bot you’re talking to and have nameSpacing effectively on the variables. eg npc1_mood and npc2_mood but thats very messy.
Thanks!