Deed Reaction Events not Triggering
Deed Reaction Events not Triggering
Hello,
I was trying to trigger Deed Reaction Events, such as Playing ParticleSystem and Audio Clip when NPC is Happy(Deed 25 to 100), as shown on above screenshot, but it didn't work.
I can see that Deed Report was working and PAD was showing correct values but the event wasn't triggering.
May I know How to make it work, please.
Regards,
Michael
Re: Deed Reaction Events not Triggering
Hi,
Can you confirm that Quest Giver Wendy is witnessing the event? Some reasons why she might not be witnessing it:
Can you confirm that Quest Giver Wendy is witnessing the event? Some reasons why she might not be witnessing it:
- If she's the one committing the deed, and the Faction Manager "Can Witness Self" checkbox is unticked.
- If the deed has a distance limit and she's outside the radius.
- If you're using eyesight raycasts and something is blocking her from seeing the deed.
- If the time between reactions (i.e., time between witnessed events) is under 10 seconds.
Re: Deed Reaction Events not Triggering
Thanks Tony for your reply, I was using VRIF, using all three Pixel Crushers assets Dialogue System,Quest Machine, Love Hate, intergrating each others as per your tutorial.
I noticed that there was an exclamation mark message on console as below.
Love/Hate: PlayerController.Rumor isn't memorable actor:Player target:Police affinityChange:0.00
UnityEngine.Debug:Log (object,UnityEngine.Object)
PixelCrushers.LoveHate.FactionMember:DefaultEvaluateRumor (PixelCrushers.LoveHate.Rumor,PixelCrushers.LoveHate.FactionMember) (at Assets/Plugins/Pixel Crushers/LoveHate/Scripts/Core/Faction Members/FactionMember.cs:1058)
PixelCrushers.LoveHate.FactionMember:WitnessDeed (PixelCrushers.LoveHate.Deed,PixelCrushers.LoveHate.FactionMember,bool,PixelCrushers.Dimension) (at Assets/Plugins/Pixel Crushers/LoveHate/Scripts/Core/Faction Members/FactionMember.cs:761)
PixelCrushers.LoveHate.FactionManager:Update () (at Assets/Plugins/Pixel Crushers/LoveHate/Scripts/Core/Faction Members/FactionManager.cs:516)
Please also see the Screenshots of Debug Canvas during game play and Faction Database.
Thank you.
I noticed that there was an exclamation mark message on console as below.
Love/Hate: PlayerController.Rumor isn't memorable actor:Player target:Police affinityChange:0.00
UnityEngine.Debug:Log (object,UnityEngine.Object)
PixelCrushers.LoveHate.FactionMember:DefaultEvaluateRumor (PixelCrushers.LoveHate.Rumor,PixelCrushers.LoveHate.FactionMember) (at Assets/Plugins/Pixel Crushers/LoveHate/Scripts/Core/Faction Members/FactionMember.cs:1058)
PixelCrushers.LoveHate.FactionMember:WitnessDeed (PixelCrushers.LoveHate.Deed,PixelCrushers.LoveHate.FactionMember,bool,PixelCrushers.Dimension) (at Assets/Plugins/Pixel Crushers/LoveHate/Scripts/Core/Faction Members/FactionMember.cs:761)
PixelCrushers.LoveHate.FactionManager:Update () (at Assets/Plugins/Pixel Crushers/LoveHate/Scripts/Core/Faction Members/FactionManager.cs:516)
Please also see the Screenshots of Debug Canvas during game play and Faction Database.
Thank you.
Re: Deed Reaction Events not Triggering
Yes, I can confirm that
If she's the one committing the deed, and the Faction Manager "Can Witness Self" checkbox is unticked.
If she's the one committing the deed, and the Faction Manager "Can Witness Self" checkbox is unticked.
If the deed has a distance limit and she's outside the radius.[Ticked]
If you're using eyesight raycasts and something is blocking her from seeing the deed.[Nope]
If the time between reactions (i.e., time between witnessed events) is under 10 seconds.[Nope]
[I tried from value 0 to 10, all the way back to 300 and waited, but nothing happeded.]
Re: Deed Reaction Events not Triggering
Hi,
I see the "Quest Giver Wendy.WitnessDeed" message in your Console screenshot.
The Deed Reaction Events component has an undocumented requirement (which I'll remove in version 1.10.47) that the witness must have an Animator in its hierarchy. If Quest Giver Wendy doesn't have an Animator on itself or a child or parent GameObject, try adding one and then test again.
I see the "Quest Giver Wendy.WitnessDeed" message in your Console screenshot.
The Deed Reaction Events component has an undocumented requirement (which I'll remove in version 1.10.47) that the witness must have an Animator in its hierarchy. If Quest Giver Wendy doesn't have an Animator on itself or a child or parent GameObject, try adding one and then test again.
Re: Deed Reaction Events not Triggering
Still didn't trigger
Wendy is now a fully animated CC4 character, I attached Faction Member screenshot below.
Thanks.
Re: Deed Reaction Events not Triggering
For some reasons, after restarting the project, Deed Reaction Events are working now
Thank you Tony, really love using your Assets
Re: Deed Reaction Events not Triggering
Thanks! I don't know what was going on there, but I'm glad restarting Unity fixed it. Maybe some old data was cached in the Library folder.