Hello,
I am using Opsive's Third Person Controller and Behavior Designer along with Dialogue System. I have successfully managed to add some enemy barks based on various conditions in the Behavior Tree.
However, I am still not sure how to advance a quest in case of an item pickup (i.e. a sword) or using an ability or mounting a horse by the player. So far I have been using the Quest Trigger script with On Trigger Enter, but this leaves loopholes as the player may get near the sword but not equip it, and may still continue the quest.
Is there any integration element that I missed between DS and TPC that enables item pick-up or use? Or should I try to add a behavior tree to the player and try to sort this out inside the tree?
Thank you for the directions.
Quest Trigger on Item Pickup
Re: Quest Trigger on Item Pickup
I have just figured out how to take care of the weapon pick up trigger. I used "on disable" on the weapon pick up object instead of trigger, and that took care of it.
I also tried to place a box collider trigger on the saddle of the horse to complete a "mount your horse" sub-quest, but that somehow did not cause any trigger. I actually duplicated from a previously working script and changed the quest name, but could not get it to work.
I also tried to place a box collider trigger on the saddle of the horse to complete a "mount your horse" sub-quest, but that somehow did not cause any trigger. I actually duplicated from a previously working script and changed the quest name, but could not get it to work.
Re: Quest Trigger on Item Pickup
If it were a regular interaction (using the Interact ability), you could add a Dialogue System Interactable, and have it send an OnUse message to your Quest Trigger,
Ride is a separate action, though. I'll check this out. You may need to make a subclass of Ride with an extra line of code that notifies the Dialogue System. I'll post back here with an answer later today.
Ride is a separate action, though. I'll check this out. You may need to make a subclass of Ride with an extra line of code that notifies the Dialogue System. I'll post back here with an answer later today.
Re: Quest Trigger on Item Pickup
Thank you for looking into this. In the meantime, I will give a second try to making the collider trigger work over the saddle.
Re: Quest Trigger on Item Pickup
I can add an event listener to TPC that listens for ability changes such as changing to the Ride ability. I'll add this later today and post a download link for the updated TPC Support package.
Re: Quest Trigger on Item Pickup
That is great. I just realized that the mount ability simply works by adding the player character into the hierarchy of the horse rig after relocating the player and playing the mount animation. So I am not sure if that works the same way as other intractable skills work.
I managed to get the mount your horse quest to work by adding the quest trigger on top of the horse. Adding the trigger to the horse's hierarchy made it not work, since when the player mounts, he becomes part of the horse object, and I think the requirement to assign the accepted game object as player causes that not to work. If I make the accepted object as the horse, then it triggers itself. Yet, keeping the trigger above the horse without adding it to the hierarchy is good enough at this point.
I managed to get the mount your horse quest to work by adding the quest trigger on top of the horse. Adding the trigger to the horse's hierarchy made it not work, since when the player mounts, he becomes part of the horse object, and I think the requirement to assign the accepted game object as player causes that not to work. If I make the accepted object as the horse, then it triggers itself. Yet, keeping the trigger above the horse without adding it to the hierarchy is good enough at this point.
Re: Quest Trigger on Item Pickup
Hi,
The Dialogue System Extras page has an updated Opsive Third Person Controller support package. You can also download it directly here: TPC_Support_2018-03-18.unitypackage
To set up the "mount your horse" quest, add an Ability Start Event and Quest Trigger to the player, similar to below:
The Dialogue System Extras page has an updated Opsive Third Person Controller support package. You can also download it directly here: TPC_Support_2018-03-18.unitypackage
To set up the "mount your horse" quest, add an Ability Start Event and Quest Trigger to the player, similar to below:
Re: Quest Trigger on Item Pickup
That is wonderful. I will do that.
Thank you for looking into this.
Thank you for looking into this.