The code is part of one of the files, I've modded the mod extensively. I was giving you the bit because I thought you were looking into adding the code to your modifications. I think you could incorporate this check in SD_Cache in vanilla to pass the position when defining the values. I would recommend using some A.I. agent like Claude. for little bits like this, they do a decent job. Just remember to make backups. they fix almost as many things as they break
I attach my .json file for the prompts. You'll see it has sections that are not on the original promt files, like a dedicated loras, or sections for face details and such. those are part of the changes I've been doing to the mod to create a bit more varied faces. I think they can be there and ignored and it won't break the vanilla mod, just remember to move the lora from its section to the positive or style sections if you wanna use it.
I've set the link to the base nova mature xl, but the name of the checkpoint is my personal blend, just use your own and see if you get good results

let us know how it goes.
I was thinking to have separate "prompt generators" for scenes with multiple people. was gonna start with 2, get the details, and create custom "poses" in the prompt file for the interactions. then try to build the prompt with details of A + action + details with B.
It's always easier before starting, then it gets bad