WIP: Giving perfume advice and laying perfumes
Added 2021-08-07 23:39:26 +0000 UTCThe recent days I have been working with the interaction to give perfume advice to other Sims, as mentioned in the other post. I wanted to see how much I could actually do of my vision. It was a bit tricky to get things right, and some things I couldn't do at all because it doesn't seem to be constructed like that in the game itself.
The things I struggled with was:
1. Getting notifications and loots while actor isn't the played sim. (Made a work arround instead)
2. See what picked object I had in a continuation. It was empty even if the game itself seemed to have the exact same code, but didn't work for me. (Could use another more hideous solution instead)
3. Creating a scheduled drama node that partly added some traits on my target sim and after that called my actor telling how well the perfume advice had worked out, to simulate them actually following my advice trying it out. (This was only a vision but I wasn't surprised the game code had not been set up for a scenario like this. It could actually add loots on played Sims, but didn't seem to do that for other Sims. I simply just didn't do this part, and made the response directly.)
So the function is now: when your Sim has level 3 in Scent Knowledge skill, they can "Give perfume advice" to other Sims. They will start talking and a picker will pop up for you as a player to select what perfume you want to advice to the other Sim. Then some tests will run and the sim answer you different things depending on their preferences on the scent accords in that perfume. If they know all of them, it will be an answer that they already know it plus a reaction about what they think, and both Sims will get a different buff. If they don't know all accords it will be counted as an advice they are interested in trying out if they like some of them already. All responses are supposed to come with a bad and a good version.
I have some parts of this feature still to do, like come up with interesting responses and create all needed buffs.
When a Sim is giving another sim a perfume advice, this popup will show up so you can select the one you want to suggest.
Next thing I have been working on (today actually) is to layering perfumes. This is a part of the skill, and unlocks at level 5. And it makes it possible for your sim to layer 2 different perfumes. The sim won't know if it is a good or bad combination to begin with, but will learn by trying it out and in some other ways. When they know of a combination, it will show on the menu marked in red or green, telling you if it is a good or bad combination before doing it. I made it so that perfumes not sharing any accords will be a bad combination. It will work if your sim already wearing a perfume, then when clicking another perfume bottle, this interaction will show up. I couldn't really make custom categories in the notebook as I first wanted, so this menu fix is instead. This feature is pretty early in development, and I still need to do much things with it, and I hope there won't be too many issues or anything that will break the function totally.
When a Sim has learned that two perfumes works bad together it will be showed like this.
And when they have learned it is a good combination it looks like this.