I'm looking for a friendship/affinity script that also has different endings based on who has max affinity.
Ex: max affinity with character A will get an ending involving them, however you can ONLY choose an ending if a character has max affinity/friendship.
Couldn't you do this fairly easily with variables?
Yeah, this doesn't require a plugin at all, just very basic eventing. The most confusing part I guess would be if you wanted to display the affinity on a gauge or something (like dragon age) which could also be done with just events and paint.net but there are a few plugins that allow that, I know OrangeHUD does for one.
If you are stumped on something specific then I'd be happy to help if you tell me precisely what you are having trouble with, as there are a lot of ways you could go about this and I don't want to try to guess at what you are going for specifically beyond 'affinity system'.
In general terms though, you'd just select a variable for each person you can have an affinity with and add to it whenever you say something that actor likes and subtract from it when the player says something that upsets them. Then at your end game you'd just apply a conditional branch to check your affinities and have the endings run based on where the variables are at. Checking that affinity could be as easy as making an item that checks and then displays those values via \V[] in the notebox or like I said there are at least a couple plugins out there that allow you to display gauges based on variable values already available.
Maybe a 2? Or 3? It's very easy, whenever you have an event that should increase someone's friendship rating, add a line that adds +whatever to the corresponding variable. And then at the end, run an event that has a conditional check with the variables, and that determines which ending you get. "If variable Relationship With <Character> >= 10, show ending 1" or whatever