Page 1 of 1
Deed Reaction Events not Triggering
Posted: Sun Jun 09, 2024 10:50 am
by Mchaint
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
Posted: Sun Jun 09, 2024 12:22 pm
by Tony Li
Hi,
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.
If those all check out, are there any errors or warnings in the Console window?
Re: Deed Reaction Events not Triggering
Posted: Sun Jun 09, 2024 10:42 pm
by Mchaint
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.
Re: Deed Reaction Events not Triggering
Posted: Sun Jun 09, 2024 10:46 pm
by Mchaint
Yes, I can confirm that
If she's the one committing the deed, and the Faction Manager "Can Witness Self" checkbox is unticked.
[Ticked]
If the deed has a distance limit and she's outside the radius.
[Nope]
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.
[I tried from value 0 to 10, all the way back to 300 and waited, but nothing happeded.]
Re: Deed Reaction Events not Triggering
Posted: Mon Jun 10, 2024 8:09 am
by Tony Li
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.
Re: Deed Reaction Events not Triggering
Posted: Tue Jun 11, 2024 10:02 pm
by Mchaint
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
Posted: Tue Jun 11, 2024 10:56 pm
by Mchaint
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
Posted: Wed Jun 12, 2024 8:11 am
by Tony Li
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.