Hi,
I am having an issue with dragging an inventory item onto an NPC's Hotspot named Johnathon. The goal is to give him a total of four inventory items. I have placed an the integer variable on the "Cutscene onstart". The issue is that nothing happens when I try to drag and drop the items that are in the inventory. If there is a easier way to get my goal done I will take any advice. Below is the link to my imgur. Please and Thank you for your time.
Unity version: 2017.3.1f1
Adventure creator version: 1.75.2
https://imgur.com/a/drag-drop-inventory-item-problem-VXNVekl
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Share screenshots of the NPC's root and Hotspot objects - this is what determines their interactivity.
Does the Interaction run correctly when run manually from the Inspector?
If your variable is used to keep track of how many items have been given, use the Variable: Set Action's Increase By Value method - not Set Value - to increase it by 1 each time. You can then check if it = 4 to see if all items have been given.
Hi,
Yes, I went ahead and uploaded the photos on imgur. The Variables to increase are set after the statue is given to the priest as seen on the "Inventory Interaction" photo. I set the New Photos with the word "New" at the beginning to lessen the confussion. Please let me know if there is anything else you may need from my end.
I'm sending the link again.
I tested it out and for some reason the last one doesn't show the new photos.
https://imgur.com/a/78vC8ST
Apologies for the mix up. Imgur is flagging something on my posts. I messaged them to find out what it might be and please let me know if you are not able to see this post.
I'm not clear on the need to show the OnStart cutscene - though in there you're setting the value to 4 and then checking if it is such.
Does the interaction run correctly when run manually from its Inspector?
Do other Hotspots have issues when dropping items on them, or is it just this NPC?
Try unchecking "Turn root object in 3D?" in the NPC's Inspector.
Hello,
I followed what you told me to do with unchecking the hotspot turn root object in 3D but I am still encountering the issue.
https://imgur.com/a/PCfUKmq
I'm sending you a new link that shows the full "cutscene onstart" action list along with the variables.
The cutscene in the same scene named "Lisa has gun" also has a drag and drop component and the drag and drop action is not working either and neither do an action.
There seems to be multiple icons when I hover over the items, I don't know if thats part of the issue.
I am still not clear why you are sharing images of your OnStart cutscene, and a list of Variables. The issue is to do with Hotspot inventory interactions.
Are you able to PM me a project zip with instructions on how to reproduce the issue?
Bear in mind that your AC version is extremely old - if it's due to an AC bug, it is likely that it has since been fixed.
Hello,
Yes, I updated unity and adventure creator and found what I needed to do.
I had to go to Inventory Manager and choose the inventory item I was working on. Then created an unhandled interaction in "Give to NPC".
Then I went to the NPC's child and made an Inventory Interaction.
And now during gameplay I am able to drag and drop the item onto the desired NPC's Hotspot.
Thanks again for your time and you have a wonderful rest of your day!
-Very Respectfully,
))
Asuna