Page 1 of 1
Get Temperament (ORK)
Posted: Wed Sep 19, 2018 3:04 pm
by aotihav
Hi! First of all thank you so much for the help the other day! It really made my day!
I'm using Love/Hate with ORK to display an interaction HUD of NPCs' current temperaments, however when I go to use the variable I'm saving the temperament to in order to modify the display settings, nothing happens? I have an ORK Faction Manager, ORK Faction Member, and Emotional State that correctly updates with the current temperament. Am I going about this wrong?
Thanks so much!
Re: Get Temperament (ORK)
Posted: Wed Sep 19, 2018 4:18 pm
by Tony Li
Hi,
It was a bug. Sorry about that. You can download the fix here: [see below]
Re: Get Temperament (ORK)
Posted: Wed Sep 19, 2018 6:35 pm
by aotihav
Unfortunately, I still can't get it to update the HUDs via temperament. I'm probably missing something simple haha
Re: Get Temperament (ORK)
Posted: Wed Sep 19, 2018 7:22 pm
by Tony Li
Hi,
Does the Event Object (Actor 0) have a Faction Member component?
Are there any errors or warnings in the Console window / output log file?
Re: Get Temperament (ORK)
Posted: Wed Sep 19, 2018 8:18 pm
by aotihav
There is an ORK faction member component on the object I placed the interaction event on, and there are no errors or warnings in the console.
Re: Get Temperament (ORK)
Posted: Wed Sep 19, 2018 9:45 pm
by Tony Li
In this unitypackage, I added a
debug checkbox to the Get Temperament event: [see below]
If you tick the checkbox, it will log a line like this to the Console:
Code: Select all
Love/Hate: GetTemperament - setting variable Global emotion to Exuberant (Temperament on Player(Clone) (PixelCrushers.LoveHate.ORKFrameworkSupport.OrkFactionMember))
This may help you verify that the correct GameObject is being used for Actor 0.
If that doesn't help, please feel free to send an example project to tony (at) pixelcrushers.com. You can zip up the Assets and ProjectSettings folders; the other folders aren't necessary.
Re: Get Temperament (ORK)
Posted: Wed Sep 19, 2018 10:55 pm
by aotihav
Ah! I think the custom emotion model I'm using isn't being applied- the console logs the value as "Exuberant", but I'm using a different model that would output "Joy" for the current PAD.
Re: Get Temperament (ORK)
Posted: Thu Sep 20, 2018 8:22 am
by Tony Li
This package adds a new "Get Emotional State" step:
LH_ORK_Support_2018-09-20.unitypackage
It's like "Get Temperament" except it returns the emotional state from a custom emotion model.
Re: Get Temperament (ORK)
Posted: Thu Sep 20, 2018 11:15 am
by aotihav
Thank you so much! It works now.
Re: Get Temperament (ORK)
Posted: Thu Sep 20, 2018 12:40 pm
by Tony Li
Glad to help!