Search found 6 matches

by haavard
Sun Aug 04, 2024 3:21 am
Forum: Love/Hate
Topic: Setting Personal Affinity - but database not updated
Replies: 7
Views: 2190

Re: Setting Personal Affinity - but database not updated

Thanks for the help - I see now what caused my problem. I set the relation in one script and do the count in another script. When I do the count in the same script as I set the relation, the count is correct.
by haavard
Sat Aug 03, 2024 3:23 am
Forum: Love/Hate
Topic: Setting Personal Affinity - but database not updated
Replies: 7
Views: 2190

Re: Setting Personal Affinity - but database not updated

Thanks for the reply.

I get the same behaviour as you describes - the new relationship is added as you show, but the problem is that when I use factionMember.faction.relationships.Count the new relationship is not included. Do you know why?
by haavard
Fri Aug 02, 2024 9:05 am
Forum: Love/Hate
Topic: Setting Personal Affinity - but database not updated
Replies: 7
Views: 2190

Re: Setting Personal Affinity - but database not updated

Hi, Thank you for the reply - feedback on the queries: - Are there any errors or warnings in the Console window? Answer: No errors in the Console window - Does your scene have a GameObject with a FactionManager component? Answer: yes, I have - Is your faction database assigned to the FactionManager ...
by haavard
Fri Aug 02, 2024 7:18 am
Forum: Love/Hate
Topic: Setting Personal Affinity - but database not updated
Replies: 7
Views: 2190

Setting Personal Affinity - but database not updated

Hi, In script I'm using "factionMember.SetPersonalAffinity(factionID, 0f)", to set a relationship with a NPC that the player meets in the game. But when I use factionMember.faction.relationships.Count to loop through all relationship the player has, the new relationship is not included. Ho...
by haavard
Mon Jan 30, 2023 1:08 pm
Forum: Dialogue System for Unity
Topic: Integration with Love/Hate
Replies: 3
Views: 321

Re: Integration with Love/Hate

Yes, that solved it - thank you very much for the quick reply.
by haavard
Mon Jan 30, 2023 11:16 am
Forum: Dialogue System for Unity
Topic: Integration with Love/Hate
Replies: 3
Views: 321

Integration with Love/Hate

Hi, I have a problem - when during a conversation, I'm using ReportDeed (like ReportDeed("Player", "Pink Girl", "Steal")), and then later in the conversation use a condition to check Affinity with GetAffinity (like this: GetAffinity("Pink Girl", "Player&q...