Get Temperament (ORK)

Announcements, support questions, and discussion for Love/Hate.
Post Reply
aotihav
Posts: 6
Joined: Thu Sep 13, 2018 6:35 pm

Get Temperament (ORK)

Post by aotihav »

Hi! First of all thank you so much for the help the other day! It really made my day! :D

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?

Image

Image

Image

Thanks so much!
User avatar
Tony Li
Posts: 20718
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get Temperament (ORK)

Post by Tony Li »

Hi,

It was a bug. Sorry about that. You can download the fix here: [see below]
aotihav
Posts: 6
Joined: Thu Sep 13, 2018 6:35 pm

Re: Get Temperament (ORK)

Post by aotihav »

Unfortunately, I still can't get it to update the HUDs via temperament. I'm probably missing something simple haha ;)
User avatar
Tony Li
Posts: 20718
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get Temperament (ORK)

Post 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?
aotihav
Posts: 6
Joined: Thu Sep 13, 2018 6:35 pm

Re: Get Temperament (ORK)

Post 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.
User avatar
Tony Li
Posts: 20718
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get Temperament (ORK)

Post 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.
aotihav
Posts: 6
Joined: Thu Sep 13, 2018 6:35 pm

Re: Get Temperament (ORK)

Post 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.
User avatar
Tony Li
Posts: 20718
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get Temperament (ORK)

Post 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.
aotihav
Posts: 6
Joined: Thu Sep 13, 2018 6:35 pm

Re: Get Temperament (ORK)

Post by aotihav »

Thank you so much! It works now. :D
User avatar
Tony Li
Posts: 20718
Joined: Thu Jul 18, 2013 1:27 pm

Re: Get Temperament (ORK)

Post by Tony Li »

Glad to help!
Post Reply