Forum rules - please read before posting.

Use NPC as an item on other items

Hello,

I'm trying to create a feature where the player can click an NPC, the cursor switches as if it's using an item, and then use it on any hotspot. The problem is that the engine is not letting me use the NPC as an item, unless it is on the inventory.

Is there a way in the engine to achieve this, or will I need a custom script?

PS: The closest I've gotten up until now is to add the NPC as an item to the inventory after clicking on him, and remove him after use. But if I hover over the inventory while it's selected, the NPC will show up there. I don't want to lock the inventory since I want to combine or use this NPC in items.
Another try was to simply add the item, select it and remove it right after, but the engine is not letting me use an item which is not in the inventory.

Comments

  • edited April 2017
    VitorOliveira. Well, I think adding the NPC as an Item is the best choice here. If it's a matter of item visibility, you could try to create two Item categories. One for all your regular inventory items, one for your "NPC items", then you could have your main inventory only show regular inventory items (there's an option called Limit by Category you can use for this, you can find it under your inventory box element). This way only regular items will be shown in your inventory. 
  • Oh, perfect solution! Many thanks!

    I guess I still have many options to research about Adventure Creator.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.